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

Mirage2's choice-authority-control.xsl incorrectly treats collection IDs as integers

    Details

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

      Description

      Mirage 2's choice-authority-control.xsl file incorrectly treats the collection ID for context as an integer. Mirage1 and other theme's versions of this file were correctly modified to work with UUIDs, which basically means single quotes were added around the collection ID. That needs to be done for Mirage2, as well. This bug is experienced as a flaw in the Choice Authority Lookup button. If you configure a Choice Authority plugin in your inputforms.xml config file, and set it to use a lookup button, that lookup button will fail to work, and a JavaScript error will be visible in your browser's JavaScript console. The simple solution is to add single quotes around the collection ID, as was done for all the other XMLUI themes. I will submit a PR for this soon.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hardyoyo Hardy Pottinger
                Reporter:
                hardyoyo Hardy Pottinger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: