-
Notifications
You must be signed in to change notification settings - Fork 7
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
1888-opacLink #1906
1888-opacLink #1906
Conversation
The pattern in |
@blackwinter thanks. This seems to be a fix issue. The last commit highlights the problem: 4291810 |
You're calling the Also, all maps are referencing the |
4291810
to
d0e3745
Compare
@jens thanks a lot. |
Co-authored-by: Jens Wille <ww@blackwinter.de>
Co-authored-by: Jens Wille <ww@blackwinter.de>
This provides changes that can be reused for the opacUrl macro
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Co-authored-by: Jens Wille <ww@blackwinter.de>
6e71917
to
fadcd15
Compare
fadcd15
to
dca4580
Compare
There is one last change @blackwinter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting context.jsonld is not necessary I think? Please remove it. It brings conflicts, as discussed . There is hope so - the ordering of the context!
Since there are so many commits I am not able to kick the changes for this specific file out. @blackwinter or @dr0i are you able to help. |
I'm not exactly sure what conflicts you're talking about, but does 7c6fb57 help? |
thx @blackwinter! |
Will be deployed next Monday. |
This didn't work as expected. E.g. 990366624790206441: "hasItem" : [ {
// ...
"seeAlso" : [ "DE-Hag4HT020469610" ],
"id" : "http://lobid.org/items/990366624790206441:DE-Hag4:5378132900006461#!"
}, {
// ...
"seeAlso" : [ "DE-575HT020469610" ],
"id" : "http://lobid.org/items/990366624790206441:DE-575:53102917670006480#!"
} ], I couldn't find any link that was added correctly. |
Right, that was because gitsubmodules (since #1902 ) didnt't update the isil2opac (hbz/lookup-tables@19c5676). I've restarted the indexing, should be deployed tomorrow. |
Caused by missing file map: |
This PR does the following:
heldBy
so that the ISIL of the IZ is provided, that changes the order ofheldBy.isil
andheldBy.id
opacLink
assameAs
opacLink
tusing a submodule for prod and a local copy for testsameAs
for all mappedhasItem
-objects@acka47 do you have a better property than
opacLink
?Outdated:
First draft of opac link enrichment mechanism@blackwinter: my first design runs into an error, could you have a look at it:~Error-message~
``` [main] ERROR org.lobid.resources.AlmaMarc21XmlToLobidJsonMetafixTest - Errored when transforming org.metafacture.metafix.FixProcessException: Error while executing Fix expression (at file:/home/tobias/git/lobid-resources/src/main/resources/alma/fix/macros.fix, line 267): split_field("$i.@opacLink","{hbzid}") at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:249) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.RecordTransformer.lambda$null$14(RecordTransformer.java:183) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:116) at org.metafacture.metafix.FixMethod$10.apply(FixMethod.java:155) at org.metafacture.metafix.RecordTransformer.lambda$null$20(RecordTransformer.java:206) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.RecordTransformer.lambda$null$17(RecordTransformer.java:197) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.FixBind$1.lambda$execute$1(FixBind.java:40) at org.metafacture.metafix.Value.asList(Value.java:190) at org.metafacture.metafix.Value.asList(Value.java:184) at org.metafacture.metafix.FixBind$1.execute(FixBind.java:33) at org.metafacture.metafix.RecordTransformer.lambda$null$4(RecordTransformer.java:138) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:116) at org.metafacture.metafix.FixMethod$1.apply(FixMethod.java:60) at org.metafacture.metafix.RecordTransformer.lambda$null$20(RecordTransformer.java:206) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) at org.metafacture.metafix.RecordTransformer.lambda$transform$2(RecordTransformer.java:125) at java.lang.Iterable.forEach(Iterable.java:75) at org.metafacture.metafix.RecordTransformer.transform(RecordTransformer.java:124) at org.metafacture.metafix.Metafix.endRecord(Metafix.java:222) at org.metafacture.monitoring.StreamBatchLogger.endRecord(StreamBatchLogger.java:129) at org.metafacture.biblio.marc21.MarcXmlHandler.endElement(MarcXmlHandler.java:132) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1781) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2966) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:601) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:504) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213) at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:69) at org.metafacture.xml.XmlDecoder.process(XmlDecoder.java:43) at org.metafacture.io.FileOpener.process(FileOpener.java:158) at org.metafacture.io.FileOpener.process(FileOpener.java:41) at org.metafacture.files.DirReader.dir(DirReader.java:99) at org.metafacture.files.DirReader.process(DirReader.java:75) at org.lobid.resources.AlmaMarc21XmlToLobidJsonMetafixTest.transformFile(AlmaMarc21XmlToLobidJsonMetafixTest.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367) at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121) Caused by: java.util.regex.PatternSyntaxException: Illegal repetition {hbzid} at java.util.regex.Pattern.error(Pattern.java:1969) at java.util.regex.Pattern.closure(Pattern.java:3171) at java.util.regex.Pattern.sequence(Pattern.java:2148) at java.util.regex.Pattern.expr(Pattern.java:2010) at java.util.regex.Pattern.compile(Pattern.java:1702) at java.util.regex.Pattern.(Pattern.java:1352) at java.util.regex.Pattern.compile(Pattern.java:1028) at org.metafacture.metafix.FixMethod$43.apply(FixMethod.java:595) at org.metafacture.metafix.RecordTransformer.lambda$null$20(RecordTransformer.java:206) at org.metafacture.metafix.RecordTransformer.lambda$null$22(RecordTransformer.java:226) at org.metafacture.metafix.RecordTransformer.lambda$null$1(RecordTransformer.java:125) at org.metafacture.metafix.RecordTransformer.tryRun(RecordTransformer.java:237) ... 103 more Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.088 sec <<< FAILURE! - in UnitTests ```