Adds the support the the {BIBLIONUMBER} token to the MARC and ISBD views in the
OPAC, as well,
since that code section is not currently centralized.
Signed-off-by: Ian Walls <[email protected]>
---
opac/opac-ISBDdetail.pl | 1 +
opac/opac-MARCdetail.pl | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/opac/opac-ISBDdetail.pl b/opac/opac-ISBDdetail.pl
index b50947d..5a791c7 100755
--- a/opac/opac-ISBDdetail.pl
+++ b/opac/opac-ISBDdetail.pl
@@ -163,6 +163,7 @@ if (my $search_for_title =
C4::Context->preference('OPACSearchForTitleIn')){
$dat->{title} =~ s/\s+$//; # remove trailing space
$dat->{title} ? $search_for_title =~ s/{TITLE}/$dat->{title}/g :
$search_for_title =~ s/{TITLE}//g;
$isbn ? $search_for_title =~ s/{ISBN}/$isbn/g : $search_for_title =~
s/{ISBN}//g;
+ $search_for_title =~ s/{BIBLIONUMBER}/$biblionumber/g;
$template->param('OPACSearchForTitleIn' => $search_for_title);
}
diff --git a/opac/opac-MARCdetail.pl b/opac/opac-MARCdetail.pl
index 8e492aa..2940406 100755
--- a/opac/opac-MARCdetail.pl
+++ b/opac/opac-MARCdetail.pl
@@ -277,6 +277,7 @@ if (my $search_for_title =
C4::Context->preference('OPACSearchForTitleIn')){
$biblio->{title} =~ s/\s+$//; # remove trailing space
$biblio->{title} ? $search_for_title =~ s/{TITLE}/$biblio->{title}/g :
$search_for_title =~ s/{TITLE}//g;
$biblio->{isbn} ? $search_for_title =~ s/{ISBN}/$biblio->{isbn}/g :
$search_for_title =~ s/{ISBN}//g;
+ $search_for_title =~ s/{BIBLIONUMBER}/$biblionumber/g;
$template->param('OPACSearchForTitleIn' => $search_for_title);
}
--
1.5.6.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/