Bugzilla – Attachment 54762 Details for
Bug 13949
Add holding library to item search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13949 - Item search should have holding library
Bug-13949---Item-search-should-have-holding-librar.patch (text/plain), 2.49 KB, created by
Jonathan Druart
on 2016-08-23 10:30:51 UTC
(
hide
)
Description:
Bug 13949 - Item search should have holding library
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-23 10:30:51 UTC
Size:
2.49 KB
patch
obsolete
>From 95797895383abaa50c36f79f5e3fdb5ec6a5b4a0 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 15 Aug 2016 14:54:16 -0400 >Subject: [PATCH] Bug 13949 - Item search should have holding library > >This patch adds holding library ("current location") to the list of >fields available in the item search form. > >To test, apply the patch and go to Search -> Item search. > >- Perform a search using the "current location" option and verify that > it returns the correct results. >- Try other searches to confirm that they work as before. > >Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > catalogue/itemsearch.pl | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 6 ++++++ > 2 files changed, 7 insertions(+), 1 deletion(-) > >diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl >index 2e6608b..f0590bf 100755 >--- a/catalogue/itemsearch.pl >+++ b/catalogue/itemsearch.pl >@@ -101,7 +101,7 @@ if (scalar keys %params > 0) { > filters => [], > }; > >- foreach my $p (qw(homebranch location itype ccode issues datelastborrowed notforloan)) { >+ foreach my $p (qw(homebranch holdingbranch location itype ccode issues datelastborrowed notforloan)) { > if (my @q = $cgi->multi_param($p)) { > if ($q[0] ne '') { > my $f = { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >index e52780e..55f553e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt >@@ -14,6 +14,7 @@ > [% CASE 'isbn' %]<span>ISBN</span> > [% CASE 'issn' %]<span>ISSN</span> > [% CASE 'homebranch' %]<span>Home library</span> >+ [% CASE 'holdingbranch' %]<span>Current location</span> > [% CASE 'All libraries' %]<span>All libraries</span> > [% CASE 'location' %]<span>Shelving location</span> > [% CASE 'All locations' %]<span>All locations</span> >@@ -382,6 +383,11 @@ > empty_option = "All libraries" > %] > [% INCLUDE form_field_select >+ name="holdingbranch" >+ options = branches >+ empty_option = "All libraries" >+ %] >+ [% INCLUDE form_field_select > name="location" > options = locations > empty_option = "All locations" >-- >2.8.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 13949
:
54574
|
54724
| 54762