Catmandu::Fix::viaf_search3pm
Perform a search for a name in viaf
Usage
viaf_search(authorName, -lang:'nl-NL', -fallback_lang:'en-US')
Overview
Perform a search for a name. Both mainHeadingEl and the local.personalNames are queried. The fix will return the prefLabel in the provided "lang", or "fallback_lang" if one in "lang" does not exist. If "fallback_lang" also doesn't exist, the prefLabel will be empty.
The fix returns a list, with elements in the following form:
{'dcterms:identifier' => 'The identifier','guid' => 'The VIAF URL','schema:birthDate' => 'Birth date, if provided','schema:deathDate' => 'Death date, if provided','schema:description' => 'Description, if provided','skos:prefLabel' => 'prefLabel, in lang or fallback_lang'}
Parameters
Required parameters
- "path"
-
Path to the name.
Optional parameters
- "lang"
-
Language of the returned
"skos:prefLabel". Falls back to"fallback_lang"if none was found. Use IETF language tags <https://en.wikipedia.org/wiki/IETF_language_tag>.
- "fallback_lang"
-
Fallback language.
Releases
Unchanged in 2 releases since Debian 12 (Bookworm).