pkiraly / qa-catalogue

QA catalogue – a metadata quality assessment tool for library catalogue records (MARC, PICA)
GNU General Public License v3.0
76 stars 18 forks source link

Split exported MARC schemas #411

Open nichtich opened 5 months ago

nichtich commented 5 months ago

The current result of export-schema-files into marc-schema.json is a mix of field definitions from several sources. There is at least one case of clash of definitions (Tag997.java in both bltags and kbrtags) leading to a contradictory schema. The Avram export should be split into:

pkiraly commented 5 months ago

I have two questions:

nichtich commented 5 months ago

There should be one valid Avram file for each institution with custom elements, e.g. marc-bibliographic.json, marc-b3kat.json...

The files can either be complete (merge of standard fields and custom fields) or only contain custom fields or fields modified by custom additions. I'd prefer the first to not duplicate data and to have a better overview of custom fields but that's a matter of taste. I created a basic HTML-to-Avram script (call avram-js with option -d html), see https://gbv.github.io/avram-js/ - such tables could be generated for each customization from the schema files.