-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue #99: implementing B3Kat union catalogue local defined data elem…
…ents.
- Loading branch information
Showing
18 changed files
with
582 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/de/gwdg/metadataqa/marc/definition/general/codelist/B3KatIdentifiers.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package de.gwdg.metadataqa.marc.definition.general.codelist; | ||
|
||
import de.gwdg.metadataqa.marc.utils.EncodedValueFileReader; | ||
|
||
/** | ||
* Übersicht über die am B3Kat beteiligten Bibliotheken | ||
* https://www.bib-bvb.de/BibList/b3kat-biblist.html | ||
*/ | ||
public class B3KatIdentifiers extends CodeList { | ||
|
||
private void initialize() { | ||
name = "MARC Organization Codes"; | ||
url = "http://www.loc.gov/marc/organizations/orgshome.html"; | ||
codes = EncodedValueFileReader.fileToCodeList("marc/b3kat.isil.csv"); | ||
indexCodes(); | ||
} | ||
|
||
private static B3KatIdentifiers uniqueInstance; | ||
|
||
private B3KatIdentifiers() { | ||
initialize(); | ||
} | ||
|
||
public static B3KatIdentifiers getInstance() { | ||
if (uniqueInstance == null) | ||
uniqueInstance = new B3KatIdentifiers(); | ||
return uniqueInstance; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/main/java/de/gwdg/metadataqa/marc/definition/tags/b3kattags/Tag049.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package de.gwdg.metadataqa.marc.definition.tags.b3kattags; | ||
|
||
import de.gwdg.metadataqa.marc.codes.B3KatIdentifierReader; | ||
import de.gwdg.metadataqa.marc.definition.Cardinality; | ||
import de.gwdg.metadataqa.marc.definition.general.codelist.B3KatIdentifiers; | ||
import de.gwdg.metadataqa.marc.definition.general.codelist.OrganizationCodes; | ||
import de.gwdg.metadataqa.marc.definition.general.validator.RegexValidator; | ||
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition; | ||
import de.gwdg.metadataqa.marc.definition.structure.Indicator; | ||
|
||
/** | ||
* Besitznachweis (ISIL) | ||
* https://www.bib-bvb.de/web/b3kat/open-data | ||
*/ | ||
public class Tag049 extends DataFieldDefinition { | ||
|
||
private static Tag049 uniqueInstance; | ||
|
||
private Tag049() { | ||
initialize(); | ||
postCreation(); | ||
} | ||
|
||
public static Tag049 getInstance() { | ||
if (uniqueInstance == null) | ||
uniqueInstance = new Tag049(); | ||
return uniqueInstance; | ||
} | ||
|
||
private void initialize() { | ||
|
||
tag = "049"; | ||
label = "Besitznachweis (ISIL)"; | ||
mqTag = "BesitznachweisISIL"; | ||
cardinality = Cardinality.Repeatable; | ||
descriptionUrl = "https://www.bib-bvb.de/web/b3kat/open-data"; | ||
// setCompilanceLevels("O"); | ||
|
||
ind1 = new Indicator(); | ||
|
||
ind2 = new Indicator(); | ||
|
||
setSubfieldsWithCardinality( | ||
"a", "Besitznachweis", "R" | ||
); | ||
|
||
// TODO: validator: possible ISIL numbers: https://www.bib-bvb.de/BibList/b3kat-biblist.html | ||
getSubfield("a") | ||
.setMqTag("Besitznachweis") | ||
.setCodeList(B3KatIdentifiers.getInstance()); | ||
; | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/main/java/de/gwdg/metadataqa/marc/definition/tags/b3kattags/Tag940.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package de.gwdg.metadataqa.marc.definition.tags.b3kattags; | ||
|
||
import de.gwdg.metadataqa.marc.definition.Cardinality; | ||
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition; | ||
import de.gwdg.metadataqa.marc.definition.structure.Indicator; | ||
|
||
/** | ||
* Regionale und lokale Kodierungen (MAB 078) | ||
* https://www.bib-bvb.de/web/b3kat/open-data | ||
*/ | ||
public class Tag940 extends DataFieldDefinition { | ||
|
||
private static Tag940 uniqueInstance; | ||
|
||
private Tag940() { | ||
initialize(); | ||
postCreation(); | ||
} | ||
|
||
public static Tag940 getInstance() { | ||
if (uniqueInstance == null) | ||
uniqueInstance = new Tag940(); | ||
return uniqueInstance; | ||
} | ||
|
||
private void initialize() { | ||
|
||
tag = "940"; | ||
label = "Regionale und lokale Kodierungen (MAB 078)"; | ||
mqTag = "RegionaleUndLokaleKodierungen"; | ||
cardinality = Cardinality.Nonrepeatable; | ||
descriptionUrl = "https://www.bib-bvb.de/web/b3kat/open-data"; | ||
// setCompilanceLevels("O"); | ||
|
||
ind1 = new Indicator("") | ||
.setCodes( | ||
"1", "", | ||
"2", "" | ||
); | ||
|
||
ind2 = new Indicator(); | ||
|
||
setSubfieldsWithCardinality( | ||
"f", "Selektionskennzeichen Sprachkreis", "NR", | ||
"n", "Selektionskennzeichen bibliotheksübergreifende Bibliographien und Projekte", "NR", | ||
"q", "Bibliotheksspezifische Selektionskennzeichen", "NR", | ||
"r", "ISIL der redigierenden Bibliothek (VD18-Kontext, MAB 088 Unterfeld r)", "NR" | ||
); | ||
|
||
getSubfield("f").setMqTag("SelektionskennzeichenSprachkreis"); | ||
getSubfield("n").setMqTag("SelektionskennzeichenBibliotheksübergreifendeBibliographienUndProjekte"); | ||
getSubfield("q").setMqTag("BibliotheksspezifischeSelektionskennzeichen"); | ||
getSubfield("r").setMqTag("ISIL"); | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
src/main/java/de/gwdg/metadataqa/marc/definition/tags/b3kattags/Tag941.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package de.gwdg.metadataqa.marc.definition.tags.b3kattags; | ||
|
||
import de.gwdg.metadataqa.marc.definition.Cardinality; | ||
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition; | ||
import de.gwdg.metadataqa.marc.definition.structure.Indicator; | ||
|
||
/** | ||
* Strukturierte Quellenangabe (unselbständige Publikationen) | ||
* https://www.bib-bvb.de/web/b3kat/open-data | ||
*/ | ||
public class Tag941 extends DataFieldDefinition { | ||
|
||
private static Tag941 uniqueInstance; | ||
|
||
private Tag941() { | ||
initialize(); | ||
postCreation(); | ||
} | ||
|
||
public static Tag941 getInstance() { | ||
if (uniqueInstance == null) | ||
uniqueInstance = new Tag941(); | ||
return uniqueInstance; | ||
} | ||
|
||
private void initialize() { | ||
|
||
tag = "941"; | ||
label = "Strukturierte Quellenangabe (unselbständige Publikationen)"; | ||
mqTag = "StrukturierteQuellenangabe"; | ||
cardinality = Cardinality.Nonrepeatable; | ||
descriptionUrl = "https://www.bib-bvb.de/web/b3kat/open-data"; | ||
// setCompilanceLevels("O"); | ||
|
||
ind1 = new Indicator(); | ||
|
||
ind2 = new Indicator(); | ||
|
||
setSubfieldsWithCardinality( | ||
"b", "", "NR", | ||
"h", "", "NR", | ||
"j", "", "NR", | ||
"m", "", "NR", | ||
"t", "", "NR", | ||
"r", "", "NR", | ||
"s", "", "NR" | ||
); | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/main/java/de/gwdg/metadataqa/marc/definition/tags/b3kattags/Tag942.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package de.gwdg.metadataqa.marc.definition.tags.b3kattags; | ||
|
||
import de.gwdg.metadataqa.marc.definition.Cardinality; | ||
import de.gwdg.metadataqa.marc.definition.structure.DataFieldDefinition; | ||
import de.gwdg.metadataqa.marc.definition.structure.Indicator; | ||
|
||
/** | ||
* DDC (Dewey Decimal Classification) analytisch | ||
* https://www.bib-bvb.de/web/b3kat/open-data | ||
*/ | ||
public class Tag942 extends DataFieldDefinition { | ||
|
||
private static Tag942 uniqueInstance; | ||
|
||
private Tag942() { | ||
initialize(); | ||
postCreation(); | ||
} | ||
|
||
public static Tag942 getInstance() { | ||
if (uniqueInstance == null) | ||
uniqueInstance = new Tag942(); | ||
return uniqueInstance; | ||
} | ||
|
||
private void initialize() { | ||
|
||
tag = "942"; | ||
label = "DDC (Dewey Decimal Classification) analytisch"; | ||
mqTag = "DDCAnalytisch"; | ||
cardinality = Cardinality.Nonrepeatable; | ||
descriptionUrl = "https://www.bib-bvb.de/web/b3kat/open-data"; | ||
// setCompilanceLevels("O"); | ||
|
||
ind1 = new Indicator("") | ||
.setCodes("1", ""); | ||
|
||
ind2 = new Indicator("") | ||
.setCodes("1", ""); | ||
|
||
setSubfieldsWithCardinality( | ||
"c", "Grundnotation (Sachaspekt)", "NR", | ||
"f", "Notation aus Hilfstafel 1 (Zeitaspekt)", "NR", | ||
"g", "Notation aus Hilfstafel 2 (Geographischer Aspekt)", "NR", | ||
"e", "Angabe der zugrunde liegenden DDC-Ausgabe", "NR" | ||
); | ||
|
||
getSubfield("c").setMqTag("Grundnotation"); | ||
getSubfield("f").setMqTag("NotationAusHilfstafel1Zeitaspekt"); | ||
getSubfield("g").setMqTag("NotationAusHilfstafel2GeographischerAspekt"); | ||
getSubfield("e").setMqTag("AngabeDerZugrundeLiegendenDDCAusgabe"); | ||
} | ||
} |
Oops, something went wrong.