Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split exported MARC schemas #411

Open
nichtich opened this issue Jan 21, 2024 · 2 comments
Open

Split exported MARC schemas #411

nichtich opened this issue Jan 21, 2024 · 2 comments
Labels

Comments

@nichtich
Copy link
Collaborator

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:

  • Common MARC fields
  • Custom or additional fields and rules for individual libraries/catalogs
    • b3kat
    • fennica
    • nkcr
    • szte
    • bl
    • dnb
    • gent
    • kbr
    • oclc
@pkiraly
Copy link
Owner

pkiraly commented Jan 22, 2024

I have two questions:

  • should the JSON have the following top level structure?
{
  "common": {. . .},
  "b3kat": {. . .},
  "fennica": {. . .},
  . . .
}
  • there are non field level custom data elements, such as subfields. Should we also separete them? It might be problematic in some cases, e.g. KBR introduced multilingual and numbering subfields for all fields, so we should replicate almost the whole list of fields.

@nichtich
Copy link
Collaborator Author

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.

@nichtich nichtich added the avram label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants