From a9d66228913162db6f187b41a21f7635c18f8df2 Mon Sep 17 00:00:00 2001 From: MajoBerger <88670521+MajoBerger@users.noreply.github.com> Date: Mon, 13 May 2024 07:16:18 +0200 Subject: [PATCH] fix problems displaying oai in various formats (#653) fixed wrong number of parameters expected in java code and wrong number of parameters sent in xsl file --- .../resources/functions/StringXSLFunction.java | 2 +- .../oai/metadataFormats/metasharev2.xsl | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dspace-oai/src/main/java/org/dspace/xoai/services/impl/resources/functions/StringXSLFunction.java b/dspace-oai/src/main/java/org/dspace/xoai/services/impl/resources/functions/StringXSLFunction.java index b472c485abbd..de9a31133855 100644 --- a/dspace-oai/src/main/java/org/dspace/xoai/services/impl/resources/functions/StringXSLFunction.java +++ b/dspace-oai/src/main/java/org/dspace/xoai/services/impl/resources/functions/StringXSLFunction.java @@ -55,7 +55,7 @@ final public SequenceType getResultType() { final public SequenceType[] getArgumentTypes() { return new SequenceType[]{ SequenceType.makeSequenceType( - ItemType.STRING, OccurrenceIndicator.ONE)}; + ItemType.STRING, OccurrenceIndicator.ZERO_OR_MORE)}; } @Override diff --git a/dspace/config/crosswalks/oai/metadataFormats/metasharev2.xsl b/dspace/config/crosswalks/oai/metadataFormats/metasharev2.xsl index cf43751882d8..e716844112e6 100644 --- a/dspace/config/crosswalks/oai/metadataFormats/metasharev2.xsl +++ b/dspace/config/crosswalks/oai/metadataFormats/metasharev2.xsl @@ -139,7 +139,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -178,7 +178,7 @@ test="doc:metadata/doc:element[@name='local']/doc:element[@name='contact']/doc:element[@name='person']/doc:element/doc:field[@name='value']"> - + @@ -199,7 +199,7 @@ - + @@ -251,7 +251,7 @@ - + @@ -270,7 +270,7 @@ - + @@ -456,7 +456,7 @@ - + @@ -473,7 +473,7 @@ - +