Skip to content

Commit

Permalink
Merge #1902 from branch '1893-addSubmodules' of https://github.com/hb…
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Sep 25, 2023
2 parents b1676a3 + 8338ca9 commit 078eac9
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 18 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
4 changes: 4 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ If you've added and commited everything, check again if all is ok:

This should result in *BUILD SUCCESS*. Push your changes. You're done :)

h2. Tables as gitsubmodules
Some lookup tables are provided through gitsubmodules. To make a @git pull@ also
update these tables you can e.g. do @git config --local submodule.recurse true@ once.

h2. Propagate the context.json to lobid-resources-web

The generated _context.jsonld_ is automatically written to the proper directory
Expand Down
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,23 +116,21 @@ 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", "./maps/deweyLabels.tsv");
fixVariables.put("dnbSachgruppen", "./maps/dnbSachgruppen.tsv");
fixVariables.put("nwbib-spatial", "./../nwbib-spatial.tsv");
fixVariables.put("wd_itemLabelTypesCoordinates", "./../wd_itemLabelTypesCoordinates.tsv");
fixVariables.put("dnbSachgruppen", "./maps/dnbSachgruppen.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 @@ -59,24 +59,22 @@ public void setup() {
fixVariables.put("catalogid", "DE-605");
fixVariables.put("createEndTime", "0"); // 0 <=> false
fixVariables.put("institution-code", "DE-605");
fixVariables.put("deweyLabels", "src/test/resources/deweyLabels.tsv");
fixVariables.put("deweyLabels", "src/test/resources/alma/maps/deweyLabels.tsv");
fixVariables.put("dnbSachgruppen", "src/main/resources/alma/maps/dnbSachgruppen.tsv");
fixVariables.put("nwbib-spatial", "src/main/resources/nwbib-spatial.tsv");
fixVariables.put("wd_itemLabelTypesCoordinates", "src/main/resources/wd_itemLabelTypesCoordinates.tsv");
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("suppressedLocations", "src/main/resources/alma/maps/generatedAlmaSuppressedLocations.tsv");
fixVariables.put("sublibraryIsil", "src/test/resources/alma/maps/generatedAlmaSublibraryCode2Isil.tsv");
fixVariables.put("suppressedLocations", "src/test/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.
File renamed without changes.
1 change: 1 addition & 0 deletions vocabs
Submodule vocabs added at 967ca1

0 comments on commit 078eac9

Please sign in to comment.