mdr2.vubis
Import and validate XML files from the library system
clean-raw-production
(clean-raw-production production)
Return a proper production based on a raw production, i.e. translate the language tag into proper ISO 639-1 codes
default-language
Default language to use if the language provided in the vubis export file is not known in iso-639-2-to-iso-639-1
get-subfield
(get-subfield record path)
Get the subfield text for the given path
in the given record
. Returns nil if there is no such subfield
iso-639-2-to-iso-639-1
read-file
(read-file file)
Read an export file from VUBIS and return a map with all the data
validate
(validate file)
Returns an empty list on successful validation of file
as a proper vubis export file or a list of error messages otherwise