[Koha-bugs] [Bug 12678] Link 780 & 785 fields to another records using $w

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sat Apr 18 14:20:57 CEST 2020


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

Katrin Fischer <katrin.fischer at bsz-bw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Nothing to do here actually - 780 and 785 already allow to link by $w.

            <xsl:choose>
                <xsl:when test="$UseControlNumber = '1' and
marc:subfield[@code='w']">
                    <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>
                        <xsl:value-of select="$f785"/>
                    </a>
                </xsl:when>
                <xsl:otherwise>
                    <a><xsl:attribute
name="href">/cgi-bin/koha/opac-search.pl?q=ti,phr:<xsl:value-of
select="str:encode-uri(translate($f785, '()', ''), true())"/></xsl:attribute>
                        <xsl:value-of select="$f785"/>
                    </a>
                </xsl:otherwise>
            </xsl:choose>

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


More information about the Koha-bugs mailing list