[Koha-bugs] [Bug 17853] New: MARC21: Don't remove () from link text for 780

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 5 16:52:28 CET 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17853

            Bug ID: 17853
           Summary: MARC21: Don't remove () from link text for 780
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: katrin.fischer at bsz-bw.de
        QA Contact: testopia at bugs.koha-community.org

To test: 
- Catalogue a record with 780, Indicators 00 and $a some text including
parentheses.
- Verify that the () are not shown in the link text and are not part of the
URL.

Problem: It's correct to remove () from the link, but the link text should
still include them. Problem exists in staff and OPAC.

>From the detail page XSLT, problem is in lines 1149 and 1154:

1146             <xsl:choose>
1147                 <xsl:when test="$UseControlNumber = '1' and
marc:subfield[@code='w']">
1148                     <a><xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=Control-number:<xsl:call-template
name="extractControlNumber"><xsl:with-param name="subfieldW"
select="marc:subfield[@code='w']"/></xsl:call-template></xsl:attribute>
1149                         <xsl:value-of select="translate($f780, '()',
'')"/>
1150                     </a>
1151                 </xsl:when>
1152                 <xsl:otherwise>
1153                     <a><xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of
select="translate($f780, '()', '')"/></xsl:attribute>
1154                         <xsl:value-of select="translate($f780, '()',
'')"/>
1155                     </a>
1156                 </xsl:otherwise>
1157             </xsl:choose>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list