Skip to content

Commit

Permalink
Add note[] #458
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasNx committed Jul 10, 2023
1 parent 979d5d5 commit 107cb71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions conf/fix-enriched.fix
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,13 @@ end
## </entity>
## </rules>
#
set_array("note[]")
do list(path: "047A","var":"$i")
do list(path:"$i.a","var":"$j")
copy_field("$j","note[].$append")
end
end
copy_field("id","mainEntityOfPage.id")
copy_field("001A.0","mainEntityOfPage.dateCreated")
copy_field("001B.0","mainEntityOfPage.dateModified")
Expand Down Expand Up @@ -987,6 +994,7 @@ retain(
"mainEntityOfPage",
"name",
"name_en",
"note[]",
"worldcatRegistryId",
"provides",
"rs",
Expand Down
4 changes: 2 additions & 2 deletions test/transformation/output/enriched-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
{"index":{"_index":"organisations","_type":"organisation","_id":"http://lobid.org/organisations/DBS-DB675#!"}}
{"rs":"032540021021","type":"Library","classification":{"id":"http://purl.org/lobid/libtype#n81","type":"Concept","label":{"de":"Wissenschaftliche Spezialbibliothek","en":"Academic Special Library"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/DBS-DB675#!"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://www.stadtarchiv-hildesheim.de","provides":"https://webopac.stadt-hildesheim.de/libero/WebOpac.cls","name":"Roemer-Museum, Bibliothek","location":[{"address":{"streetAddress":"Am Steine 1/2","addressLocality":"Hildesheim","postalCode":"31134","addressCountry":"DE","type":"PostalAddress"},"openingHoursSpecification":{"description":"Di. Mi.: 09.00 - 16.00 Uhr. Do: 09.00 - 18.00 Uhr","type":"OpeningHoursSpecification"},"type":"Place"}],"id":"http://lobid.org/organisations/DBS-DB675#!","fundertype":{"id":"http://purl.org/lobid/fundertype#n04","type":"Concept","label":{"de":"Gemeinde","en":"Commune"}},"collects":{"type":"Collection","extent":{"id":"http://purl.org/lobid/stocksize#n07","type":"Concept","label":{"de":"30.001 - 100.000","en":"30,001 - 100,000"}}},"dbsID":"DB675"}
{"index":{"_index":"organisations","_type":"organisation","_id":"http://lobid.org/organisations/ZDB-1-AAS4#!"}}
{"rs":"110000000000","availableChannel":[{"type":["ServiceChannel"],"serviceType":"Produktinfo","serviceUrl":"http://www.nationallizenzen.de/angebote/nlproduct.2011-05-11.8008587391"}],"alternateName":["Nationallizenz AAS Series4"],"type":"Collection","classification":{"id":"http://purl.org/lobid/libtype#n89","type":"Concept","label":{"de":"Paket elektronischer Ressourcen","en":"Collection of Electronic Resources"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/ZDB-1-AAS4#!","dateCreated":"25-05-11","dateModified":"08-06-15"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=h9k","name":"American Antiquarian Society (AAS)Historical Periodicals Collection : Series 4 (1853-1865)[Nationallizenz]","containedIn":"http://sws.geonames.org/6547539/","location":[{"address":{"streetAddress":"Staatsbibliothek zu Berlin - Preußischer\t\t\t\t\tKulturbesitz","addressLocality":"Berlin","postalCode":"10785","addressCountry":"DE","type":"PostalAddress"},"geo":{"lat":"52.50771","lon":"13.37063"},"type":"Place"}],"id":"http://lobid.org/organisations/ZDB-1-AAS4#!","isil":"ZDB-1-AAS4","sigel":"ZDB-1-AAS4","collects":{"subject":["E-Journals","Die American Antiquarian Society (AAS)\t\t\t\t\tHistorical Periodicals Collection dokumentiert das Leben der\t\t\t\t\tamerikanischen Bevölkerung und die amerikanische Perspektive auf\t\t\t\t\tdas Weltgeschehen und die Wissenschaften von der Kolonialära über\t\t\t\t\tden Bürgerkrieg bis zur Zeit des Wiederaufbaus im 19. Jahrhundert.\t\t\t\t\tDer vierte Teil der Kollektion deckt ca. 1.800 Zeitschriften aus\t\t\t\t\tdem Zeitraum von 1853 bis 1865 ab"]},"email":"mailto:[email protected]","sameAs":["https://ld.zdb-services.de/resource/organisations/ZDB-1-AAS4"]}
{"rs":"110000000000","note":["Datenbank. - Der deutschlandweite Zugriff\t\t\t\t\tauf dieses Produkt wird durch die Förderung der Deutschen\t\t\t\t\tForschungsgemeinschaft (DFG) ermöglicht und durch die\t\t\t\t\tStaatsbibliothek zu Berlin - Preußischer Kulturbesitz organisiert"],"availableChannel":[{"type":["ServiceChannel"],"serviceType":"Produktinfo","serviceUrl":"http://www.nationallizenzen.de/angebote/nlproduct.2011-05-11.8008587391"}],"alternateName":["Nationallizenz AAS Series4"],"type":"Collection","classification":{"id":"http://purl.org/lobid/libtype#n89","type":"Concept","label":{"de":"Paket elektronischer Ressourcen","en":"Collection of Electronic Resources"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/ZDB-1-AAS4#!","dateCreated":"25-05-11","dateModified":"08-06-15"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://search.ebscohost.com/login.aspx?authtype=ip,uid&profile=ehost&defaultdb=h9k","name":"American Antiquarian Society (AAS)Historical Periodicals Collection : Series 4 (1853-1865)[Nationallizenz]","containedIn":"http://sws.geonames.org/6547539/","location":[{"address":{"streetAddress":"Staatsbibliothek zu Berlin - Preußischer\t\t\t\t\tKulturbesitz","addressLocality":"Berlin","postalCode":"10785","addressCountry":"DE","type":"PostalAddress"},"geo":{"lat":"52.50771","lon":"13.37063"},"type":"Place"}],"id":"http://lobid.org/organisations/ZDB-1-AAS4#!","isil":"ZDB-1-AAS4","sigel":"ZDB-1-AAS4","collects":{"subject":["E-Journals","Die American Antiquarian Society (AAS)\t\t\t\t\tHistorical Periodicals Collection dokumentiert das Leben der\t\t\t\t\tamerikanischen Bevölkerung und die amerikanische Perspektive auf\t\t\t\t\tdas Weltgeschehen und die Wissenschaften von der Kolonialära über\t\t\t\t\tden Bürgerkrieg bis zur Zeit des Wiederaufbaus im 19. Jahrhundert.\t\t\t\t\tDer vierte Teil der Kollektion deckt ca. 1.800 Zeitschriften aus\t\t\t\t\tdem Zeitraum von 1853 bis 1865 ab"]},"email":"mailto:[email protected]","sameAs":["https://ld.zdb-services.de/resource/organisations/ZDB-1-AAS4"]}
{"index":{"_index":"organisations","_type":"organisation","_id":"http://lobid.org/organisations/DE-1a#!"}}
{"rs":"110000000000","linkedTo":{"id":"http://lobid.org/organisations/DE-601#!","label":"Verbundzentrale des GBV (VZG)"},"address":{"addressLocality":"Berlin","postalCode":"10772","addressCountry":"DE","type":"PostalAddress"},"availableChannel":[{"type":["ServiceChannel"],"serviceType":"Online-Auskunft","serviceUrl":"http://staatsbibliothek-berlin.de/service/auskunft/"}],"alternateName":["SBB-PK, Potsdamer Straße","Berlin SBB Haus Potsdamer Str"],"type":"Library","classification":{"id":"http://purl.org/lobid/libtype#n11","type":"Concept","label":{"de":"Nationalbibliothek","en":"National Library"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/DE-1a#!","dateCreated":"18-11-99","dateModified":"16-05-12"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://www.staatsbibliothek-berlin.de","provides":"http://stabikat.de","name":"Staatsbibliothek zu Berlin - Preußischer Kulturbesitz,Haus Potsdamer Straße","containedIn":"http://sws.geonames.org/6547539/","location":[{"address":{"streetAddress":"Potsdamer Str. 33","addressLocality":"Berlin","postalCode":"10785","addressCountry":"DE","type":"PostalAddress"},"openingHoursSpecification":{"description":"Mo-Fr 9.00-21.00, Sa 9.00-19.00","comment":"Öffnungszeiten besonderer Bereiche s. Homepage","type":"OpeningHoursSpecification"},"geo":{"lat":"52.50771","lon":"13.37063"},"type":"Place"}],"id":"http://lobid.org/organisations/DE-1a#!","isil":"DE-1a","fundertype":{"id":"http://purl.org/lobid/fundertype#n07","type":"Concept","label":{"de":"Körperschaft oder Stiftung des öffentlichen Rechts","en":"Corporate Body or Foundation under Public Law"}},"sigel":"1a","collects":{"type":"Collection","extent":{"id":"http://purl.org/lobid/stocksize#n10","type":"Concept","label":{"de":"1.000.001 und mehr","en":"1,000,001 and more"}},"subject":["Recht","Orientalistik","Osteuropa","Ostasien","Afrika","Amtsdruckschriften","Handschriften","Karten","Geistes- und Sozialwissenschaften"]},"email":"mailto:[email protected]","dbsID":"AK001","name_en":"Leibniz Institute for Zoo and Wildlife Research Berlin, Library","sameAs":["http://www.wikidata.org/entity/Q170109","https://ld.zdb-services.de/resource/organisations/DE-1a"]}
{"rs":"110000000000","linkedTo":{"id":"http://lobid.org/organisations/DE-601#!","label":"Verbundzentrale des GBV (VZG)"},"note":["UNO- und UNESCO-Depositärbibliothek.\t\t\t\t\tÜbernommene Bibliothek: B 3 (Bibliothek der ehemaligen Preußischen\t\t\t\t\tGeologischen Landesanstalt)"],"address":{"addressLocality":"Berlin","postalCode":"10772","addressCountry":"DE","type":"PostalAddress"},"availableChannel":[{"type":["ServiceChannel"],"serviceType":"Online-Auskunft","serviceUrl":"http://staatsbibliothek-berlin.de/service/auskunft/"}],"alternateName":["SBB-PK, Potsdamer Straße","Berlin SBB Haus Potsdamer Str"],"type":"Library","classification":{"id":"http://purl.org/lobid/libtype#n11","type":"Concept","label":{"de":"Nationalbibliothek","en":"National Library"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/DE-1a#!","dateCreated":"18-11-99","dateModified":"16-05-12"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://www.staatsbibliothek-berlin.de","provides":"http://stabikat.de","name":"Staatsbibliothek zu Berlin - Preußischer Kulturbesitz,Haus Potsdamer Straße","containedIn":"http://sws.geonames.org/6547539/","location":[{"address":{"streetAddress":"Potsdamer Str. 33","addressLocality":"Berlin","postalCode":"10785","addressCountry":"DE","type":"PostalAddress"},"openingHoursSpecification":{"description":"Mo-Fr 9.00-21.00, Sa 9.00-19.00","comment":"Öffnungszeiten besonderer Bereiche s. Homepage","type":"OpeningHoursSpecification"},"geo":{"lat":"52.50771","lon":"13.37063"},"type":"Place"}],"id":"http://lobid.org/organisations/DE-1a#!","isil":"DE-1a","fundertype":{"id":"http://purl.org/lobid/fundertype#n07","type":"Concept","label":{"de":"Körperschaft oder Stiftung des öffentlichen Rechts","en":"Corporate Body or Foundation under Public Law"}},"sigel":"1a","collects":{"type":"Collection","extent":{"id":"http://purl.org/lobid/stocksize#n10","type":"Concept","label":{"de":"1.000.001 und mehr","en":"1,000,001 and more"}},"subject":["Recht","Orientalistik","Osteuropa","Ostasien","Afrika","Amtsdruckschriften","Handschriften","Karten","Geistes- und Sozialwissenschaften"]},"email":"mailto:[email protected]","dbsID":"AK001","name_en":"Leibniz Institute for Zoo and Wildlife Research Berlin, Library","sameAs":["http://www.wikidata.org/entity/Q170109","https://ld.zdb-services.de/resource/organisations/DE-1a"]}
{"index":{"_index":"organisations","_type":"organisation","_id":"http://lobid.org/organisations/DE-294#!"}}
{"rs":"059110000000","linkedTo":{"id":"http://lobid.org/organisations/DE-605#!","label":"Hochschulbibliothekszentrum des Landes Nordrhein-Westfalen (hbz)"},"address":{"addressLocality":"Bochum","postalCode":"44780","addressCountry":"DE","type":"PostalAddress"},"alternateName":["Bochum UB"],"type":"Library","classification":{"id":"http://purl.org/lobid/libtype#n60","type":"Concept","label":{"de":"Zentrale Universitätsbibliothek","en":"Central University Library"}},"mainEntityOfPage":{"id":"http://lobid.org/organisations/DE-294#!","dateCreated":"18-11-99","dateModified":"24-04-12"},"@context":"http://lobid.org/organisations/context.jsonld","url":"http://www.ub.ruhr-uni-bochum.de","provides":"https://opac.ub.ruhr-uni-bochum.de/webOPACClient/start.do","name":"Ruhr-Universität Bochum,Universitätsbibliothek","containedIn":"http://sws.geonames.org/6553132/","location":[{"address":{"streetAddress":"Universitätsstr. 150","addressLocality":"Bochum","postalCode":"44801","addressCountry":"DE","type":"PostalAddress"},"openingHoursSpecification":{"description":"Mo-Fr 8.00-24.00, Sa 11.00-20.00, So 11.00-18.00","type":"OpeningHoursSpecification"},"type":"Place"}],"id":"http://lobid.org/organisations/DE-294#!","isil":"DE-294","fundertype":{"id":"http://purl.org/lobid/fundertype#n07","type":"Concept","label":{"de":"Körperschaft oder Stiftung des öffentlichen Rechts","en":"Corporate Body or Foundation under Public Law"}},"sigel":"294","collects":{"type":"Collection","extent":{"id":"http://purl.org/lobid/stocksize#n10","type":"Concept","label":{"de":"1.000.001 und mehr","en":"1,000,001 and more"}}},"email":"mailto:[email protected]","dbsID":"AB294","sameAs":["http://www.wikidata.org/entity/Q2496285","https://ld.zdb-services.de/resource/organisations/DE-294"]}
{"index":{"_index":"organisations","_type":"organisation","_id":"http://lobid.org/organisations/DE-38#!"}}
Expand Down
Loading

0 comments on commit 107cb71

Please sign in to comment.