The geographic facets are supported by making use of MODS hierarchicalGeographic fields.
Existing "geographic" subjects in the MODS are extracted and, if possible, assigned hierarchicalGeographic tags (splitting as necessary to do so). The elements supported are:
in that order. For example,
<subject> <geographic> United States--Alabama--Tuscaloosa County--Holt </geographic> </subject>
<subject authority="tgn"> <hierarchicalGeographic> <country>United States</country> <state>Alabama</state> <county>Tuscaloosa County</county> <city>Holt</city> </hierarchicalGeographic> </subject>
The intent is to allow users to drill down from the broadest categories to the narrowest, to refine search results.
The scripts live on libcontent in /srv/scripts/metadata/faceting . Testing mode is in the geo subdirectory (geoSplit, which works on the MODS in the MODS directory, and writes new versions to the newMODS directory.
The production version is in the /srv/scripts/metadata/faceting/lib/ directory, and is incorporated into the development versions of acumenFacets: acumenFacets_dev_dateNgeo and acumenFacets_dev_dateNgeoAllDirs (the latter to run over all of Acumen, and the former to run only on the MODS collected into the inMods directory by upload scripts).