Catman...search(3pm)
π Catmandu::Fix::viaf_match β aka the Catman...search(3pm) page, but make it cute π
okay bestie, listen up, because this one is a whole moment. It lives in the User Contributed Perl Documentation corner of the Catman...search(3pm) universe, and it's literally just "go find this person's name in VIAF" energy. Obsessed. π¦
πΈ NAME πΈ
Catmandu::Fix::viaf_match β perform a search for a name in VIAF π
β¨ SYNOPSIS β¨
like, this is how you'd actually call it:
viaf_search(authorName, -lang:'nl-NL', -fallback_lang:'en-US')
that's it. that's the vibe. π
π DESCRIPTION π
So what this fix does is it goes and performs a search for a name, no cap. And not just one place β it queries both mainHeadingEl and the local.personalNames. Like, thorough. It checks everywhere. Queen behavior. π
Then it hands you back the prefLabel in whatever lang you asked for, orrrr it falls back to fallback_lang if there's no label in your lang. And if fallback_lang also isn't there? Yeah, the prefLabel comes back empty. tragic, but that's the rules. π
And the fix returns a list, where each element is shaped like this:
{
'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'
}
look at those keys. so structured. so slay. β¨
π PARAMETERS π
Required parameters (you gotta, bestie)
pathβ the path to the name. that's the whole thing. no path, no search. π
Optional parameters (nice to have, not mandatory)
langβ the language of the returnedskos:prefLabel. If it can't find one, it falls back tofallback_lang. Use IETF language tags for this one β here's the link so you can be that girl who cites her sources: <https://en.wikipedia.org/wiki/IETF_language_tag> πfallback_langβ the fallback language. the backup bestie. the one who shows up when nobody else does. π«Ά
π AUTHOR π
Pieter De Praetere <pieter at packed.be > β icon, legend, the moment. π
πΈ COPYRIGHT πΈ
Copyright 2017- PACKED vzw β respect the legacy, fr fr. β¨
π LICENSE π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like, go off, but follow the rules. π
π¦ SEE ALSO π¦
CatmanduCatmandu::VIAFCatmandu::Store::VIAFCatmandu::Fix::viaf_match
iykyk. the whole family tree. π₯
and that's the page, bestie! π₯° this masterpiece was brought to you by perl v5.36.0, dated 2023-02-04, and it's the Catman...search(3pm) page β so if you ever forget where you read it, you know exactly where to look. mwah. ππΊβ
π¦ where this page comes from
- debian bookworm: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- debian trixie: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu noble: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu resolute: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- ubuntu stonking: libcatmandu-viaf-perl 0.05-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms