dataquest-dev / DSpace

(Official) The DSpace digital asset management system that powers your Institutional Repository
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

CMDI crosswalk is not working #610

Closed milanmajchrak closed 4 days ago

milanmajchrak commented 6 months ago
2024-04-04 09:15:00,636 ERROR unknown d4bd6bdf-f670-4367-b9c4-246fedfb558b org.dspace.xoai.controller.DSpaceOAIDataProvider @ A sequence of more than one item is not allowed as the first argument of fn:starts-with() ("#1-EuroMatrix Plus", "#2-Faust") 
com.lyncode.xoai.dataprovider.exceptions.OAIException: A sequence of more than one item is not allowed as the first argument of fn:starts-with() ("#1-EuroMatrix Plus", "#2-Faust") 
    at com.lyncode.xoai.dataprovider.handlers.ListRecordsHandler.createRecord(ListRecordsHandler.java:168) ~[xoai-3.4.0.jar:3.4.0]
    at com.lyncode.xoai.dataprovider.handlers.ListRecordsHandler.handle(ListRecordsHandler.java:124) ~[xoai-3.4.0.jar:3.4.0]
    at com.lyncode.xoai.dataprovider.OAIDataProvider.handle(OAIDataProvider.java:213) ~[xoai-3.4.0.jar:3.4.0]
    at org.dspace.xoai.controller.DSpaceOAIDataProvider.contextAction(DSpaceOAIDataProvider.java:131) [dspace-oai-7.6.1.jar:7.6.1]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
    at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
MajoBerger commented 5 months ago

The CMDI crosswalk must be reworked, to show the information correctly, as is the case in ufal.

MajoBerger commented 5 months ago
MajoBerger commented 5 months ago

I expect there are plethora of similar problems. We should make automated tests to see each file individually, or each collection, compare with current lindat, see the differences... Otherwise we cannot be even remotely sure this works. There are plenty possibilities for more edge cases that were not expected. This system is fragile. In certain places it can require special character, certain (most?) metadata fields cannot be duplicated and when they are, this error happens etc. etc.

Needs a lot of work to be even remotely confident in this functionality.

MajoBerger commented 5 months ago

find out more, why, how, what are the possibilities

MajoBerger commented 5 months ago

set max identifiers to more, to test all the items at once :) on top of xoai.xml