Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,200 of 9,200 pages
About the help in other languages
All help pages

Tagging and subject headings

How a library or archive keeps controlled subject headings with the eztags extension - a tag tree with broader and narrower terms, synonyms, closed and open vocabularies, translations, subject pages, lists by subject…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/businesses/libraries/tagging-and-subject-headings.md

On this page

Tagging and subject headings

This page is for the person who owns a library's or archive's vocabulary and for the catalogers who apply it. It shows how the eztags extension, which ships with Exponential, gives you controlled subject headings: a hierarchy of terms, synonyms, a page per subject and lists of records by subject. The setup steps are in Tagging content with eztags.

The Tags dashboard with the tag tree
The Tags dashboard with the tag tree

Contents

  1. What eztags gives a catalog
  2. Mapping a vocabulary onto the tag tree
  3. Closed and open vocabularies
  4. Applying headings to records
  5. Subject pages and lists by subject
  6. Headings in search
  7. Several languages
  8. Who may change the vocabulary
  9. Maintaining the vocabulary

What eztags gives a catalog

From the eztags feature page, in catalog terms:

eztags featureCatalog meaning
A tree hierarchy of tagsBroader and narrower terms
SynonymsNon-preferred terms that lead to the preferred heading
Add, edit, move, merge and delete in the admin (Tags, /tags/dashboard)Vocabulary maintenance in one place
Autocomplete in the edit form, edit views Default, Select or TreeCatalogers pick headings instead of typing them
A tag view (/tags/view/...)A public page per subject
An extended attribute filter for content/list and content/tree fetchesLists of records by subject anywhere on the site
Closed (predefined) and open classification, switchable laterA controlled list, free keywords, or both

se7enxweb/eztags is in the require block of composer.json, so it is part of a standard installation.

Mapping a vocabulary onto the tag tree

Thesaurus conceptIn the tag tree
Top termA top-level tag
Narrower termA child tag
Use / used forA synonym of the preferred tag
Related termNot a built-in relation between tags; describe it in the subject page's introduction or link it there

The last row is a limit to know: the feature page lists hierarchy and synonyms, not related-term links between tags. If your thesaurus depends on related terms, ask your developer how to represent them before you import.

The website creator's advice applies to catalogs too: "Keep the tree shallow; three levels are plenty for most sites", and "Merge duplicates and use synonyms rather than near-identical tags" (Good tagging practice). A library classification with many levels is often better kept in the library system, with only the levels readers browse brought into the tag tree.

Closed and open vocabularies

  • Closed: catalogers can only choose existing headings. Use it for subject headings.
  • Open: anybody with the right may add tags while editing. Use it for free keywords, if at all.
  • Both: a closed subjects field and an open keywords field in the same class.

The choice can be changed later (eztags). For a catalog, start closed: an open vocabulary grows near-duplicates quickly.

Applying headings to records

  1. Add a tags attribute to each record class (Setup > Classes), named for example "Subjects".
  2. Choose the edit view: Select or Tree suit a closed vocabulary; Default with autocomplete suits typing.
  3. Catalogers type or pick headings; autocomplete matches the start of a tag by default (AutoCompleteType=start) and shows up to 24 results (MaxResults).

Source: Tagging with eztags, Set it up.

Subject pages and lists by subject

  • Subject page: /tags/view/<tag> lists everything tagged with it. Its template can be overridden in your design like any other, so it can show an introduction, narrower terms and the records.
  • Lists by subject: the extended attribute filter lets a folder or block show, for example, "the latest five items tagged X" (Showing tags on a site).
  • Layouts: a dynamic collection of a layouts block can list content by query, for example "everything tagged with" a tag (Layouts reference); the tags collection query handler explayouts_tags_query (package se7enxweb/explayouts-tags-query in composer.json) is there for this.
  • Tag cloud: built from Solr when it is available (TagCloudOverSolr=enabled).

Tip

"Give each tag page an introduction, so it is a useful landing page for search engines" (same page). For a library, a short scope note per subject also helps readers.

eztags.ini [SearchSettings] decides what goes into the search index: IndexSynonyms is enabled and IndexParentTags is disabled by default (eztags, Settings). With synonyms indexed, a reader who types a non-preferred term still finds records under the preferred heading. Enabling IndexParentTags makes a search for a broader term find records tagged with narrower ones; discuss it with your catalogers, because it also widens every result list. See Catalog search.

Several languages

Tags can be translated; translating tags is on the website creator's practice list. DefaultAlwaysAvailable (default false) decides whether new tags are available in every language. Tag reads follow the translation rules described with the 2.3.4 database fix: main language when asked, else an explicit locale, else the site's language priority (eztags).

Who may change the vocabulary

The tags module has its own policies: read, dashboard, view, add (limited by tag), addsynonym, edit, editsynonym, delete, deletesynonym and more. Give visitors tags/read and tags/view so subject pages work for them; give catalogers add only below the tags they curate (Tagging with eztags, Permissions). Keep edit, delete and merging with the vocabulary owner.

Maintaining the vocabulary

  • To do: One named vocabulary owner; changes requested through them.
  • To do: New headings added before records need them, not during cataloging.
  • To do: Duplicates merged; synonyms added for spelling variants and former terms.
  • To do: Subject pages have a scope note.
  • To do: A yearly review of headings with no records and of headings with very many.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x