Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-11976

The unique id generated by search-default.xsl should use the zone Item Id

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.7.0
    • None
    • 1 - Middle term
    • 1 - Easy

      When we apply a specific behavior in JS using the callBack fonction. The id générated into the service change on each pages of résults. We need a unique ID that it will not change on each page of results.

      That occurs only when we use the callback, with pagination, with several search engine into the same zone.

      Instead of :

       <xsl:variable name="uniqueId" select="substring-after(math:random(), '.')"/>

      use :

      <xsl:variable name="uniqueId" select="translate(ametys:zoneItemId(), ':/-', '')"/> 

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: