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

Mirage2: Advanced Search Filters Do Not Display if one contains a "-"

    Details

    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      window.DSpace.i18n.discovery.filters.my-filter = 'x'

      needs to be

      window.DSpace.i18n.discovery.filters['my-filter'] = 'x'

      Earlier versions of XMLUI supported filter names containing dashes.

      The following change is needed in xsl/aspect/discovery/discovery.xsl

      <xsl:for-each select="dri:option">
      <xsl:text>window.DSpace.i18n.discovery.</xsl:text>
      <xsl:value-of select="$filter_name"/>
      <xsl:text>['</xsl:text>
      <xsl:value-of select="@returnValue"/>
      <xsl:text>']='</xsl:text>
      <xsl:copy-of select="./*"/>
      <xsl:text>';</xsl:text>
      </xsl:for-each>

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terrywbrady Terry Brady
                Reporter:
                terrywbrady Terry Brady
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: