Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2740

upload step fails when Sherpa/Romeo doesn't hold any copyright information

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      Originally reported to dspace-tech:
      https://groups.google.com/forum/#!topic/dspace-tech/bS5ngka0hyc

      We've come across an error related to the Sherpa/Romeo API under Mirage and Mirage2, using DSpace 5.3.
      It seems that the display of the whole "upload step" page fails when Sherpa/Romeo cannot find any copyright information for a journal.

      Example:
      "Clinical Journal of Gastroenterology" in dc.title.alternative leads to a proper display of the upload page, incl. Sherpa/Romeo details.
      "Journal of Brain Science" in dc.title.alternative or "1341-5301" (same journal) in dc.identifier.issn leads to an error. The upload step page fails to be displayed correctly. A quick check on http://www.sherpa.ac.uk/romeo/ revealed that Sherpa/Romeo doesn't hold any copyright information for this journal.
      Index: 0, Size: 0

      Java stacktrace:
      java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
      at java.util.LinkedList.get(LinkedList.java:476)
      at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.make_sherpaRomeo_submission(UploadStep.java:399)
      at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.addBody(UploadStep.java:254)
      at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145)
      at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223)
      ...
      ********

      I tried to test this behaviour on the demo machine (http://demo.dspace.org/xmlui/), but the Sherpa/Romeo API is not enabled there. Feedback from repositories that have Sherpa/Romeo enabled would be highly appreciated.

      Best regards,
      Franziska Ackermann

      https://github.com/DSpace/DSpace/blob/dspace-5.3/dspace-xmlui/src/main/java/org/dspace/app/xmlui/wing/AbstractWingTransformer.java#L223

      https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-xmlui/src/main/java/org/dspace/app/xmlui/aspect/submission/submit/UploadStep.java#L399

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              helix84 Ivan Masár
              Reporter:
              helix84 Ivan Masár
              Reviewer:
              Peter Dietz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: