Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

catalyst/cca_taxonomy_manager

Repository files navigation

CCA Taxonomy Manager

An experimental, Views-based taxonomy manager:

  • browse large taxonomies (assumes non-hierarchical vocabularies)
  • filter using Search API Database search (offers English stemming)
    • e.g. performer matches perform, performer, performance
  • apply Views Bulk Operations actions to terms
  • merge multiple terms to a single term
  • move term to a different vocabulary

Currently assumes use in the context of Islandora (https://islandora.ca).

Requirements

This module is a Drupal feature, and requires:

Installation

If you manage your site dependencies via Composer then this module's dependencies will be installed automatically once the module itself is installed via Composer.

After enabling the module, ensure all terms are indexed in the CCA Taxonomy Manager Term index /admin/config/search/search-api/index/cca_taxonomy_manager_term_index

Browe a taxonomy via path such as /admin/structure/taxonomy/manage/{vocabulary}/cca-search, e.g. /admin/structure/taxonomy/manage/person/cca-search.

Ensure the "Merge taxonomy terms" permission is assigned appropriately.

@todo: check if it is necessary to ensure users managing terms have Fedora Admin role to persist term changes into fcrepo.

Guide

  1. To move a term, browse or search within /admin/structure/taxonomy/manage/{vocabulary}/cca-search to locate the term(s).
  2. Check the (views bulk operations) checkbox on left of terms table.
  3. Choose "Move term" option from Action select widget.
  4. Click "Apply to selected items" button.
  5. Choose target vocabulary from select widget.
  6. Click "Apply" button.
  7. A batch process will start, "Performing Move term on selected entities"...

Warning: term move does not account for hierarchies, nor does it account for the possible difference in fields assigned to taxonomy terms in different vocabularies.

@todo: define what will survive a move, e.g. term name, description.

  1. To merge one or more terms, browse or search within /admin/structure/taxonomy/manage/{vocabulary}/cca-search to locate the term(s) to be merged (but not the target term).
  2. Check the (views bulk operations) checkbox on left of terms table.
  3. Choose "Merge terms" option from Action select widget.
  4. Click "Apply to selected items" button.
  5. Choose target term from Existimg term autocomplete widget.
  6. Click "Apply" button.

Warning: the patch for term_reference_change must be applied in order to update reference in typed_relation fields (e.g. Islandora Object Linked Agent field).

Warning: redirects are not added automatically, e.g. from old term to target term.

Override taxonomy term list

e.g. for a vocabulary tags:

  1. Visit view edit for CCA Taxonomy Manager search /admin/structure/views/view/cca_taxonomy_manager_search/edit/admin_page
  2. Duplicate page:
  3. On new display, set machine_name=tags`; this needs to match the machine name of the taxonomy that we are overriding the term listing for.
  4. Set path=admin/structure/taxonomy/manage/tags/overview (this is the path of the core term listing for tags)
  5. Set Menu to be Type=Menu tab, Menu link title=List, Parent=Structure > Taxonomy > Tags, Weight=-5 (i.e. under the default vocabulary list menu item)
  6. Click "Save" button.
  7. Visit admin/config/cca_taxonomy_manager/settings, check Keywords tags, click "Save configuration".
  8. Now visit admin/structure/taxonomy/manage/tags/overview to confirm List display is from CCA Taxonomy Manager tags display instead of the Drupal core taxonomy term listing.

To override additional taxonomy term lists, repeat the process of (a) add a view display, (b) adding a new menu tab for the List item, (c) updating CCA Taxonomy Manager settings to specify the taxonomy.

Known issues

  • Page title on cca-search view is vocabulary machine name, not human label.

Maintainers

About

Experimental views-based taxonomy manager including search, merge, and move terms. Now maintained at https://www.drupal.org/project/cca_taxonomy_manager

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages