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.

Contents
- What eztags gives a catalog
- Mapping a vocabulary onto the tag tree
- Closed and open vocabularies
- Applying headings to records
- Subject pages and lists by subject
- Headings in search
- Several languages
- Who may change the vocabulary
- Maintaining the vocabulary
What eztags gives a catalog
From the eztags feature page, in catalog terms:
| eztags feature | Catalog meaning |
|---|---|
| A tree hierarchy of tags | Broader and narrower terms |
| Synonyms | Non-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 Tree | Catalogers 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 fetches | Lists of records by subject anywhere on the site |
| Closed (predefined) and open classification, switchable later | A 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 concept | In the tag tree |
|---|---|
| Top term | A top-level tag |
| Narrower term | A child tag |
| Use / used for | A synonym of the preferred tag |
| Related term | Not 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
- Add a tags attribute to each record class (Setup > Classes), named for example "Subjects".
- Choose the edit view: Select or Tree suit a closed vocabulary; Default with autocomplete suits typing.
- 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(packagese7enxweb/explayouts-tags-queryincomposer.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.
Headings in search
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.
Related pages
- Libraries and catalogs
- Modeling catalog records
- Catalog search
- Tagging content with eztags
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
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.