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

FixScriptsAndUpdateElements #11

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion catalogues/hbz-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ $TYPE == "marc" ]]; then
MASK=*.mrc
elif [[ $TYPE == "xml" ]]; then
echo "xml"
TYPE_PARAMS="--marcVersion HBZ --marcxml --fixAlma --ignorableRecords DEL$a=Y --ignorableFields 964 940 941 942 944 945 946 947 948 949 950 951 952 955 956 957 958 959 966 967 970 971 972 973 974 975 976 977 978 978 979"
TYPE_PARAMS="--marcVersion HBZ --marcxml --fixAlma --ignorableRecords DEL$a=Y --ignorableFields 964,940,941,942,944,945,946,947,948,949,950,951,952,955,956,957,958,959,966,967,970,971,972,973,974,975,976,977,978,978,979"
MARC_DIR=${BASE_INPUT_DIR}/${NAME}/marc
MASK=*.gz
else
Expand Down
2 changes: 1 addition & 1 deletion catalogues/hbz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ $TYPE == "marc" ]]; then
MASK=*.mrc
elif [[ $TYPE == "xml" ]]; then
echo "xml"
TYPE_PARAMS="--marcVersion HBZ --marcxml --fixAlma --ignorableRecords DEL$a=Y --ignorableFields 964 940 941 942 944 945 946 947 948 949 950 951 952 955 956 957 958 959 966 967 970 971 972 973 974 975 976 977 978 978 979"
TYPE_PARAMS="--marcVersion HBZ --marcxml --fixAlma --ignorableRecords DEL$a=Y --ignorableFields 964,940,941,942,944,945,946,947,948,949,950,951,952,955,956,957,958,959,966,967,970,971,972,973,974,975,976,977,978,978,979"
MARC_DIR=${BASE_INPUT_DIR}/${NAME}/marc
MASK=*.gz
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,20 @@ private void initialize() {
cardinality = Cardinality.Repeatable;
descriptionUrl = "https://service-wiki.hbz-nrw.de/pages/viewpage.action?pageId=525369446";

ind1 = new Indicator();
ind2 = new Indicator();
ind1 = new Indicator("nicht definiert")
.setCodes( " ", "ISSN formal nicht geprüft",
"1", "ISSN formal richtig",
"2", "ISSN formal falsch"
)
.setMqTag("NichtDefiniert");

ind2 = new Indicator("nicht definiert")
.setCodes( "a", "Autorisierte ISSN",
"b", "ISSN der Ausgabe auf Datenträger",
"c", "ISSN der Internetausgabe",
"d", "ISSN der Druckausgabe"
)
.setMqTag("NichtDefiniert");

setSubfieldsWithCardinality(
"a", "Autorisierte ISSN", "NR",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ private void initialize() {

ind1 = new Indicator("Ausgabe")
.setCodes(
" ", "empty",
" ", "No information provided",
"0", "Vollversion",
"1", "Kurzausgabe"
)
.setMqTag("ausgabe");

ind2 = new Indicator("Nicht erstellt von LC")
.setCodes(
" ", "empty",
" ", "No information provided",
"4", "Erstellt nicht von LC"
)
.setMqTag("nichtVonLCERstellt");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ private void initialize() {
cardinality = Cardinality.Nonrepeatable;
descriptionUrl = "https://service-wiki.hbz-nrw.de/pages/viewpage.action?pageId=698777686";

ind1 = new Indicator();
ind1 = new Indicator("nicht definiert")
.setCodes(
"1", "Erstellungsdatum des Austauschsatzes",
"2", "letzte Transaktion"
)
.setMqTag("NichtDefiniert");
ind2 = new Indicator();

setSubfieldsWithCardinality(
"a", "Kennzeichnungen für Nationallizenzen und digitale Sammlungen", "NR",
"b", "Lizenzjahr", "NR"
"a", "Datum", "NR"
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ private void initialize() {

ind1 = new Indicator("undefined")
.setCodes(
"1", "...",
"2", "..."
"1", "Selektionskennzeichen",
"2", "LKR"
)
.setMqTag("undefined");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void initialize() {
"b", "Notation", "R",
"c", "Notation", "R",
"d", "Beschreibung", "R",
"z", "Herkunft", "NR"
"2", "Herkunft", "NR"
);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,23 @@ private void initialize() {
"8", "Feldverknüpfung und Reihenfolge", "NR"
);


getSubfield("c").setCodes(
"0", "kein Schaden",
"1", "leichter Schaden",
"2", "mittlerer Schaden",
"3", "schwerer Schaden"
);

getSubfield("d").setCodes(
"Ersatzbeschaffung geplant", "Ersatzbeschaffung geplant",
"restauriert", "restauriert",
"Schutzverpackung", "Schutzverpackung",
"Maßnahme geplant", "Maßnahme geplant"
);

getSubfield("p").setCodes(
"unvollständiger Provenienzvermerk", "unvollständiger Provenienzvermerk"
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private void initialize() {
"i", "Herstellungsjahr", "R",
"j", "Entstehungsort", "R",
"k", "Referenznummern/Nachweis", "R",
"l", " Bemerkungen ", "R",
"l", "Bemerkungen", "R",
"8", "Feldverknüpfung und Reihenfolge", "NR"
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private void initialize() {

ind1 = new Indicator("undefined")
.setCodes(
"1", "..."
"1", "Mikrocodierung"
)
.setMqTag("undefined");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ private void initialize() {

ind1 = new Indicator("undefined")
.setCodes(
" ", "...",
"4", "4"
" ", "Keine Information vorhanden",
"4", "HTTP"
)
.setMqTag("undefined");
.setMqTag("Zugangsmethode");

ind2 = new Indicator();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ private void initialize() {
));

putVersionSpecificSubfields(MarcVersion.HBZ, Arrays.asList(
new SubfieldDefinition("B", "Authority ID subfield", "NR")
new SubfieldDefinition("B", "Authority ID subfield", "NR"),
new SubfieldDefinition("9", "Feldzuordnung Aleph", "R")
));

sourceSpecificationType = SourceSpecificationType.Subfield2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ private void initialize() {
));

putVersionSpecificSubfields(MarcVersion.HBZ, Arrays.asList(
new SubfieldDefinition("B", "Authority ID subfield", "NR")
new SubfieldDefinition("B", "Authority ID subfield", "NR"),
new SubfieldDefinition("9", "Feldzuordnung Aleph", "R")
));
}
}
Loading