Skip to content

Commit

Permalink
Add MARC tags defined locally at Országygyűlési Könyvtár, Budapest #486
Browse files Browse the repository at this point in the history
  • Loading branch information
pkiraly committed Jun 13, 2024
1 parent bebfe86 commit 08a8413
Show file tree
Hide file tree
Showing 20 changed files with 735 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ Most of the analyses uses the following general parameters
* `B3KAT`, fields available at the B3Kat union catalogue of Bibliotheksverbundes Bayern (BVB)
and Kooperativen Bibliotheksverbundes Berlin-Brandenburg (KOBV)
* `KBR`, fields available at KBR, the national library of Belgium
* `ZB`, fields available at Zentralbibliothek Zürich
* `OGYK`, fields available at Országygyűlési Könyvtár, Budapest
* `-n`, `--nolog` do not display log messages
* parameters to limit the validation:
* `-i [record ID]`, `--id [record ID]` validates only a single record
Expand Down
2 changes: 1 addition & 1 deletion catalogues/bnf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

NAME=bnf
MARC_DIR=${BASE_INPUT_DIR}/bnf
TYPE_PARAMS="--emptyLargeCollectors --schemaType UNIMARC"
TYPE_PARAMS="--emptyLargeCollectors --schemaType UNIMARC --defaultEncoding UTF8"
MASK=P174_*.UTF8

. ./common-script
1 change: 1 addition & 0 deletions src/main/java/de/gwdg/metadataqa/marc/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static MarcVersion package2version(String packageName) {
case "b3kattags": version = MarcVersion.B3KAT; break;
case "kbrtags": version = MarcVersion.KBR; break;
case "zbtags": version = MarcVersion.ZB; break;
case "ogyktags": version = MarcVersion.OGYK; break;
default: version = MarcVersion.MARC21; break;
}
return version;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public enum MarcVersion {
UVA( "UVA", "University of Amsterdam"),
B3KAT( "B3KAT", "B3Kat union catalogue of Bibliotheksverbundes Bayern (BVB) and Kooperativen Bibliotheksverbundes Berlin-Brandenburg (KOBV)"),
KBR( "KBR", "KBR"),
ZB( "ZB", "Zentralbibliothek Zürich")
;
ZB( "ZB", "Zentralbibliothek Zürich"),
OGYK( "OGYK", "Országygyűlési Könyvtár, Budapest");

String code;
String label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public enum TagCategory {
B3KAT(22, "b3kattags", "B3Kat", "Locally defined tags of a German union cataogue B3Kat", false),
KBR(23, "kbrtags", "KBR", "Locally defined tags of the Royal Library of Belgium", false),
ZB(24, "zbtags", "ZB", "Locally defined tags of the Zentralbibliothek Zürich", false),
OGYK(25, "ogyktags", "OGYK", "Locally defined tags of the Országygyűlési Könyvtár, Budapest", false),

// PICA
PICA_0(50, "pica0", "0...", "PICA+ bibliographic description", false),
PICA_1(51, "pica1", "1...", "PICA+ holding", false),
PICA_2(52, "pica2", "2...", "PICA+ item", false),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package de.gwdg.metadataqa.marc.definition.tags.ogyktags;

import de.gwdg.metadataqa.marc.definition.Cardinality;
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition;
import de.gwdg.metadataqa.marc.definition.structure.Indicator;

/**
* Locally defined field in OGYK
*/
public class Tag592 extends DataFieldDefinition {

private static Tag592 uniqueInstance;

private Tag592() {
initialize();
postCreation();
}

public static Tag592 getInstance() {
if (uniqueInstance == null)
uniqueInstance = new Tag592();
return uniqueInstance;
}

private void initialize() {
tag = "592";
label = "Megjegyzés a különlenyomatról";
mqTag = "MegjegyzesKulonlenyomatrol";
cardinality = Cardinality.Repeatable;
descriptionUrl = "https://wiki.ogyk.hu/doku.php?id=ogyk:gyszo:katszab:konyv:592";

ind1 = new Indicator();
ind2 = new Indicator();

setSubfieldsWithCardinality(
"a", "Megjegyzés szövege", "NR"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package de.gwdg.metadataqa.marc.definition.tags.ogyktags;

import de.gwdg.metadataqa.marc.definition.Cardinality;
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition;
import de.gwdg.metadataqa.marc.definition.structure.Indicator;

/**
* Locally defined field in OGYK
*/
public class Tag596 extends DataFieldDefinition {

private static Tag596 uniqueInstance;

private Tag596() {
initialize();
postCreation();
}

public static Tag596 getInstance() {
if (uniqueInstance == null)
uniqueInstance = new Tag596();
return uniqueInstance;
}

private void initialize() {
tag = "596";
label = "Megjegyzés a szabványosításról, az adatgyűjtés lezárásáról és a hatályba lépésről";
mqTag = "MegjegyzesSzabvanyositasiAdatok";
cardinality = Cardinality.Repeatable;
descriptionUrl = "https://wiki.ogyk.hu/doku.php?id=ogyk:gyszo:katszab:konyv:596";

ind1 = new Indicator();
ind2 = new Indicator();

setSubfieldsWithCardinality(
"a", "Megjegyzés szövege", "NR"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package de.gwdg.metadataqa.marc.definition.tags.ogyktags;

import de.gwdg.metadataqa.marc.definition.Cardinality;
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition;
import de.gwdg.metadataqa.marc.definition.structure.Indicator;

/**
* Locally defined field in OGYK
*/
public class Tag597 extends DataFieldDefinition {

private static Tag597 uniqueInstance;

private Tag597() {
initialize();
postCreation();
}

public static Tag597 getInstance() {
if (uniqueInstance == null)
uniqueInstance = new Tag597();
return uniqueInstance;
}

private void initialize() {
tag = "597";
label = "Megjegyzés a megjelenésről";
mqTag = "MegjegyzesMegjelenesrol";
cardinality = Cardinality.Repeatable;
descriptionUrl = "https://wiki.ogyk.hu/doku.php?id=ogyk:gyszo:katszab:konyv:597";

ind1 = new Indicator();
ind2 = new Indicator();

setSubfieldsWithCardinality(
"a", "Megjegyzés szövege", "NR"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package de.gwdg.metadataqa.marc.definition.tags.ogyktags;

import de.gwdg.metadataqa.marc.definition.Cardinality;
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition;
import de.gwdg.metadataqa.marc.definition.structure.Indicator;

/**
* Locally defined field in OGYK
*/
public class Tag599 extends DataFieldDefinition {

private static Tag599 uniqueInstance;

private Tag599() {
initialize();
postCreation();
}

public static Tag599 getInstance() {
if (uniqueInstance == null)
uniqueInstance = new Tag599();
return uniqueInstance;
}

private void initialize() {
tag = "599";
label = "Példány- és verzióazonosító megjegyzés";
mqTag = "PeldanyMegjegyzes";
cardinality = Cardinality.Repeatable;
descriptionUrl = "https://wiki.ogyk.hu/doku.php?id=ogyk:gyszo:katszab:konyv:599";

ind1 = new Indicator();
ind2 = new Indicator();

setSubfieldsWithCardinality(
"a", "Megjegyzés szövege", "NR"
);
}
}
Loading

0 comments on commit 08a8413

Please sign in to comment.