Bugzilla – Attachment 39170 Details for
Bug 8688
Add a recall button to the biblio record details page.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 8688: Cleaned up pointless parameter passing
SIGNED-OFF-Bug-8688-Cleaned-up-pointless-parameter.patch (text/plain), 2.02 KB, created by
Bernardo Gonzalez Kriegel
on 2015-05-14 00:37:08 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 8688: Cleaned up pointless parameter passing
Filename:
MIME Type:
Creator:
Bernardo Gonzalez Kriegel
Created:
2015-05-14 00:37:08 UTC
Size:
2.02 KB
patch
obsolete
>From b6c62406183e3176f407a21c049983bc3a3ae278 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Sat, 18 Apr 2015 15:34:09 -0400 >Subject: [PATCH] [SIGNED-OFF] Bug 8688: Cleaned up pointless parameter passing > >It does not make sense to $template->param( 'foo' => 'bar' ); >when in the template file we can Koha.Preference('foo') in order >to get 'bar'. > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > catalogue/detail.pl | 1 - > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- > 2 files changed, 1 insertion(+), 2 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index b2fde1f..2cf6e22 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -91,7 +91,6 @@ if (C4::Context->preference("XSLTDetailsDisplay") ) { > } > > $template->param( 'SpineLabelShowPrintOnBibDetails' => C4::Context->preference("SpineLabelShowPrintOnBibDetails") ); >-$template->param( 'ShowRecallButton' => C4::Context->preference("ShowRecallButton") ); > $template->param( ocoins => GetCOinSBiblio($record) ); > > # some useful variables for enhanced content; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >index b592683..97a08a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -686,7 +686,7 @@ function verify_images() { > </a> > [% END %] > : due [% item.datedue %] >- [% IF ( ShowRecallButton ) %] >+ [% IF ( Koha.Preference('ShowRecallButton') ) %] > <input type="button" id="recall_[% item.itemnumber %]" name="recall_[% item.itemnumber %]" value="Recall" onclick="recall_item([% item.itemnumber %]);" /> > [% END %] > </span> >-- >1.9.1
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 8688
:
11827
|
11828
|
11913
|
11914
|
11915
|
11916
|
17740
|
36741
|
38111
|
38118
|
38119
|
39169
| 39170 |
39171
|
39172
|
39173
|
46155
|
46158