Bugzilla – Attachment 4032 Details for
Bug 6294
Add {BIBLIONUMBER} parsing support to SearchForTitleIn syspref
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
signed off patch
0001-SIGNED-OFF-Bug-6294-BIBLIONUMBER-parsing-for-SearchF.patch (text/plain), 2.39 KB, created by
Nicole C. Engard
on 2011-05-03 15:48:40 UTC
(
hide
)
Description:
signed off patch
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-05-03 15:48:40 UTC
Size:
2.39 KB
patch
obsolete
>From ac7ddad0256a1e11e1e4fcf01da13595d9e29c01 Mon Sep 17 00:00:00 2001 >From: Ian Walls <ian.walls@bywatersolutions.com> >Date: Tue, 3 May 2011 11:37:46 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 6294: {BIBLIONUMBER} parsing for SearchForTitleIn > >Adds support for parsing of the biblionumber into the SearchForTitleIn system preference, allowing >external sites with APIs (like Facebook or Twitter) to do link-backs to the details page for the >title. > >Sample code for implementing Facebook "like" links and Twitter "tweet this" are included on the bug report > >Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com> >--- > .../prog/en/modules/admin/preferences/opac.pref | 2 +- > opac/opac-detail.pl | 1 + > 2 files changed, 2 insertions(+), 1 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >index 98c3611..7f92cd6 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref >@@ -154,7 +154,7 @@ OPAC: > class: code > - > - 'Include a "More Searches" box on the detail pages of items on the OPAC, with the following HTML (leave blank to disable):' >- - '<br />Note: The placeholders {CONTROLNUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record.' >+ - '<br />Note: The placeholders {BIBLIONUMBER}, {CONTROLNUMBER}, {TITLE}, {ISBN} and {AUTHOR} will be replaced with information from the displayed record.' > - pref: OPACSearchForTitleIn > type: textarea > class: code >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 3e4c76c..b357a56 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -562,6 +562,7 @@ if (my $search_for_title = C4::Context->preference('OPACSearchForTitleIn')){ > $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; > $marccontrolnumber ? $search_for_title =~ s/{CONTROLNUMBER}/$marccontrolnumber/g : $search_for_title =~ s/{CONTROLNUMBER}//g; >+ $search_for_title =~ s/{BIBLIONUMBER}/$biblionumber/g; > $template->param('OPACSearchForTitleIn' => $search_for_title); > } > >-- >1.7.2.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6294
: 4032