Skip to content

Commit

Permalink
Add lookup tables as git submodules (#1893)
Browse files Browse the repository at this point in the history
Do "git config --global submodule.recurse true" once in your checked out repo.
Further "git pull" will automatically update the submodule.
  • Loading branch information
dr0i committed Sep 22, 2023
1 parent 340add0 commit e0baa8a
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 13 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "lookup-tables"]
path = lookup-tables
url = https://github.com/hbz/lookup-tables
[submodule "vocabs"]
path = vocabs
url = https://github.com/lobid/vocabs
[submodule "link-templates"]
path = link-templates
url = https://github.com/hbz/link-templates
1 change: 1 addition & 0 deletions link-templates
Submodule link-templates added at 692c7a
1 change: 1 addition & 0 deletions lookup-tables
Submodule lookup-tables added at cdac92
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,20 @@ public void run() {
fixVariables.put("institution-code", "DE-605");
// the './' is mandatory to get play to use the "conf" directory. Base is the root directory of the fix, which is "alma":
fixVariables.put("deweyLabels", "./../deweyLabels.tsv");
fixVariables.put("nwbib-spatial", "./../nwbib-spatial.tsv");
fixVariables.put("wd_itemLabelTypesCoordinates", "./../wd_itemLabelTypesCoordinates.tsv");
fixVariables.put("maps-institutions.tsv", "./maps/institutions.tsv");
fixVariables.put("sublibraryIsil", "./maps/generatedAlmaSublibraryCode2Isil.tsv");
fixVariables.put("suppressedLocations", "./maps/generatedAlmaSuppressedLocations.tsv");
fixVariables.put("sublibraryIsil", "../../../../../../lookup-tables/data/almaSublibraryCode2Isil/generated/generatedAlmaSublibraryCode2Isil.tsv");
fixVariables.put("suppressedLocations", "../../../../../../lookup-tables/data/almaSuppressedLocations/generated/generatedAlmaSuppressedLocations.tsv");
fixVariables.put("picaCreatorId2Isil.tsv", "./maps/picaCreatorId2Isil.tsv");
fixVariables.put("nwbibWikidataLabelTypeCoords.tsv", "./maps/nwbibWikidataLabelTypeCoords.tsv");
fixVariables.put("classification.tsv", "./maps/classification.tsv");
fixVariables.put("formangabe.tsv", "./maps/formangabe.tsv");
fixVariables.put("almaMmsId2rpbId", "./maps/almaMmsId2rpbId.tsv");
fixVariables.put("almaMmsId2rpbId", "../../../../../../lookup-tables/data/almaMmsId2rpbId.tsv");
fixVariables.put("lobidOrganisationsMapping.tsv", "./maps/lobidOrganisationsMapping.tsv");
fixVariables.put("hbzowner2sigel.tsv", "./maps/hbzowner2sigel.tsv");
fixVariables.put("isilRedirect.tsv", "./maps/isilRedirect.tsv");
fixVariables.put("rpb2.ttl", "./maps/rpb2.ttl");
fixVariables.put("rpb-spatial.ttl", "./maps/rpb-spatial.ttl");
fixVariables.put("rpb.ttl", "./maps/rpb.ttl");
fixVariables.put("rpb2.ttl", "../../../../../../vocabs/rpb/rpb2.ttl");
fixVariables.put("rpb-spatial.ttl", "../../../../../../vocabs/rpb/rpb-spatial.ttl");
fixVariables.put("rpb.ttl", "../../../../../../vocabs/rpb/rpb.ttl");
fixVariables.put("hbzId2zdbId.tsv", "./maps/hbzId2zdbId.tsv.gz");

XmlElementSplitter xmlElementSplitter = new XmlElementSplitter();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ public void setup() {
fixVariables.put("classification.tsv", "src/main/resources/alma/maps/classification.tsv");
fixVariables.put("formangabe.tsv", "src/main/resources/alma/maps/formangabe.tsv");
fixVariables.put("maps-institutions.tsv", "src/main/resources/alma/maps/institutions.tsv");
fixVariables.put("sublibraryIsil", "src/main/resources/alma/maps/generatedAlmaSublibraryCode2Isil.tsv");
fixVariables.put("sublibraryIsil", "src/test/resources/alma/maps/generatedAlmaSublibraryCode2Isil.tsv");
fixVariables.put("suppressedLocations", "src/main/resources/alma/maps/generatedAlmaSuppressedLocations.tsv");
fixVariables.put("picaCreatorId2Isil.tsv", "src/main/resources/alma/maps/picaCreatorId2Isil.tsv");
fixVariables.put("nwbibWikidataLabelTypeCoords.tsv", "src/main/resources/alma/maps/nwbibWikidataLabelTypeCoords.tsv");
fixVariables.put("almaMmsId2rpbId", "src/main/resources/alma/maps/almaMmsId2rpbId.tsv");
fixVariables.put("almaMmsId2rpbId", "src/test/resources/alma/maps/almaMmsId2rpbId.tsv");
fixVariables.put("lobidOrganisationsMapping.tsv", "src/main/resources/alma/maps/lobidOrganisationsMapping.tsv");
fixVariables.put("hbzowner2sigel.tsv", "src/main/resources/alma/maps/hbzowner2sigel.tsv");
fixVariables.put("isilRedirect.tsv", "src/main/resources/alma/maps/isilRedirect.tsv");
fixVariables.put("rpb2.ttl", "src/main/resources/alma/maps/rpb2.ttl");
fixVariables.put("rpb-spatial.ttl", "src/main/resources/alma/maps/rpb-spatial.ttl");
fixVariables.put("rpb.ttl", "src/main/resources/alma/maps/rpb.ttl");
fixVariables.put("rpb2.ttl", "src/test/resources/alma/maps/rpb2.ttl");
fixVariables.put("rpb-spatial.ttl", "src/test/resources/alma/maps/rpb-spatial.ttl");
fixVariables.put("rpb.ttl", "src/test/resources/alma/maps/rpb.ttl");
fixVariables.put("hbzId2zdbId.tsv", "src/main/resources/alma/maps/hbzId2zdbId.tsv.gz");
}

Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions vocabs
Submodule vocabs added at 967ca1

0 comments on commit e0baa8a

Please sign in to comment.