From 26fa2de9146e1cdc0e086f85ff63264920c7ceca Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 27 Sep 2010 01:55:45 +0200 Subject: [PATCH] Bug 4506: Add links to other editions, some minor corrections A new label 'Other editions:' is added with links to other editions. The link starts a search for control number from 775$w in index control number. A check for existence of $w/001 is added to always provide a fallback to a search for the link text. Take care of repeated 773 fields. Signed-off-by: Colin Campbell --- .../en/xslt/MARC21slim2intranetDetail.xsl | 47 +++++++++++++++++-- .../prog/en/xslt/MARC21slim2OPACDetail.xsl | 47 +++++++++++++++++-- 2 files changed, 84 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl index 9218a12029..10cfc36bf2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl +++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl @@ -220,7 +220,7 @@ Volumes: - + /cgi-bin/koha/catalogue/search.pl?q=rcn: @@ -235,17 +235,23 @@ Set: + - - /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + /cgi-bin/koha/opac-search.pl?q=Control-number: - /cgi-bin/koha/catalogue/search.pl?q=Title: + /cgi-bin/koha/opac-search.pl?q=Title: - + + + + ; + + @@ -533,6 +539,37 @@ + + + Other Editions: + + + + i + + : + + + + + /cgi-bin/koha/catalogue/search.pl?q=Control-number: + + + /cgi-bin/koha/catalogue/search.pl?q=Title: + + + + t + + + + + ; + + + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl index 78a0a5c9d1..726134c318 100755 --- a/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl +++ b/koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACDetail.xsl @@ -239,7 +239,7 @@ Volumes: - + /cgi-bin/koha/opac-search.pl?q=rcn: @@ -254,17 +254,23 @@ Set: + - - /cgi-bin/koha/opac-search.pl?q=Control-number: + + /cgi-bin/koha/opac-search.pl?q=Control-number: - /cgi-bin/koha/opac-search.pl?q=Title: + /cgi-bin/koha/opac-search.pl?q=Title: - + + + + ; + + @@ -602,6 +608,37 @@ + + + Other Editions: + + + + i + + : + + + + + /cgi-bin/koha/opac-search.pl?q=Control-number: + + + /cgi-bin/koha/opac-search.pl?q=Title: + + + + t + + + + + ; + + + + + -- 2.39.5