[Koha-patches] [PATCH] This fixes links on the staff side XSLT for details.pl, before they linked to the OPAC

Nicole Engard nengard at gmail.com
Thu Apr 29 18:29:18 CEST 2010


This was patched already :
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4285

That said it's part of a bigger issue:
http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4423

On Thu, Apr 29, 2010 at 12:04 PM,  <darrellulm at smfpl.org> wrote:
> From: koha <koha at smfpl.org>
>
> ---
>  .../prog/en/xslt/MARC21slim2intranetDetail.xsl     |   24 ++++++++++----------
>  1 files changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
> index 0156f99..c5c4b73 100644
> --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
> +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl
> @@ -111,10 +111,10 @@
>         <a>
>         <xsl:choose>
>             <xsl:when test="marc:subfield[@code=9]">
> -                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
> +                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
>             </xsl:when>
>             <xsl:otherwise>
> -            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
> +            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
>             </xsl:otherwise>
>         </xsl:choose>
>         <xsl:call-template name="nameABCDQ"/></a>
> @@ -126,10 +126,10 @@
>         <a>
>         <xsl:choose>
>             <xsl:when test="marc:subfield[@code=9]">
> -                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
> +                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
>             </xsl:when>
>             <xsl:otherwise>
> -            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
> +            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
>             </xsl:otherwise>
>         </xsl:choose>
>         <xsl:call-template name="nameABCDN"/></a>
> @@ -140,10 +140,10 @@
>         <a>
>         <xsl:choose>
>             <xsl:when test="marc:subfield[@code=9]">
> -                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
> +                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
>             </xsl:when>
>             <xsl:otherwise>
> -            <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
> +            <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=au:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
>             </xsl:otherwise>
>         </xsl:choose>
>         <xsl:call-template name="nameACDEQ"/></a>
> @@ -177,7 +177,7 @@
>         <xsl:if test="marc:datafield[@tag=440 or @tag=490]">
>         <span class="results_summary"><span class="label">Series: </span>
>         <xsl:for-each select="marc:datafield[@tag=440]">
> -             <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
> +             <a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
>             <xsl:call-template name="chopPunctuation">
>                             <xsl:with-param name="chopString">
>                                 <xsl:call-template name="subfieldSelect">
> @@ -191,7 +191,7 @@
>         </xsl:for-each>
>
>         <xsl:for-each select="marc:datafield[@tag=490][@ind1=0]">
> -             <a href="/cgi-bin/koha/opac-search.pl?q=se:{marc:subfield[@code='a']}">
> +             <a href="/cgi-bin/koha/catalogue/search.pl?q=se:{marc:subfield[@code='a']}">
>                         <xsl:call-template name="chopPunctuation">
>                             <xsl:with-param name="chopString">
>                                 <xsl:call-template name="subfieldSelect">
> @@ -365,10 +365,10 @@
>             <a>
>             <xsl:choose>
>             <xsl:when test="marc:subfield[@code=9]">
> -                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
> +                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=an:<xsl:value-of select="marc:subfield[@code=9]"/></xsl:attribute>
>             </xsl:when>
>             <xsl:otherwise>
> -                <xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
> +                <xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=su:<xsl:value-of select="marc:subfield[@code='a']"/></xsl:attribute>
>             </xsl:otherwise>
>             </xsl:choose>
>             <xsl:call-template name="chopPunctuation">
> @@ -510,7 +510,7 @@
>                         <xsl:with-param name="codes">at</xsl:with-param>
>                     </xsl:call-template>
>                 </xsl:variable>
> -             <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
> +             <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f780, '()', '')"/></xsl:attribute>
>                 <xsl:value-of select="translate($f780, '()', '')"/>
>             </a>
>         </span>
> @@ -565,7 +565,7 @@
>                     </xsl:call-template>
>                 </xsl:variable>
>
> -                <a><xsl:attribute name="href">/cgi-bin/koha/opac-search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
> +                <a><xsl:attribute name="href">/cgi-bin/koha/catalogue/search.pl?q=<xsl:value-of select="translate($f785, '()', '')"/></xsl:attribute>
>                 <xsl:value-of select="translate($f785, '()', '')"/>
>             </a>
>
> --
> 1.5.6.5
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



More information about the Koha-patches mailing list