Bugzilla – Attachment 87426 Details for
Bug 13629
SingleBranchMode removes both library and availability search from advanced search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13629: SingleBranchMode removes both library and availability search from advanced search
Bug-13629-SingleBranchMode-removes-both-library-an.patch (text/plain), 2.96 KB, created by
Owen Leonard
on 2019-04-04 18:37:17 UTC
(
hide
)
Description:
Bug 13629: SingleBranchMode removes both library and availability search from advanced search
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2019-04-04 18:37:17 UTC
Size:
2.96 KB
patch
obsolete
>From 490da4d9ac756c1e6b867cb0436b870dd4d2367c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 4 Apr 2019 18:27:28 +0000 >Subject: [PATCH] Bug 13629: SingleBranchMode removes both library and > availability search from advanced search > >This patch modifies the OPAC advanced search form so that it is possible >to limit searches to available items even if there is only one library. > >To test, apply the patch and go to the advanced search page in the OPAC. > > - With only one library configured: There should be a section labeled > "Availability" with just the "only available" checkbox. > > - With multiple libraries: The section should be labeled "Location and > availability" and should have the library dropdown and the > availability checkbox. >--- > .../opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 17 +++++++++++++++-- > 1 file changed, 15 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >index 1d7aada..bc395d9 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt >@@ -209,7 +209,20 @@ > > [%# Following on one line for translatability %] > [% IF ( ( OpacAdvSearchOptions and OpacAdvSearchOptions.grep('location').size > 0 and not expanded_options ) or ( OpacAdvSearchMoreOptions and OpacAdvSearchMoreOptions.grep('location').size > 0 and expanded_options ) ) %] >- [% UNLESS ( singleBranchMode ) %] >+ [% IF ( singleBranchMode ) %] >+ <div class="span3"> >+ <!-- AVAILABILITY LIMITS --> >+ <div id="location"> >+ <fieldset> >+ <legend>Availability: </legend> >+ <div style="margin-top:.4em"> >+ <label for="available-items"><input type="checkbox" id="available-items" name="limit" value="available" /> Only items currently available for loan or reference</label> >+ </div> >+ </fieldset> >+ </div> <!-- / #location --> >+ <!-- /AVAILABILITY LIMITS --> >+ </div> <!-- / .span3 --> >+ [% ELSE %] > <div class="span3"> > <!-- AVAILABILITY LIMITS --> > <div id="location"> >@@ -243,7 +256,7 @@ > </div> <!-- / #location --> > <!-- /AVAILABILITY LIMITS --> > </div> <!-- / .span3 --> >- [% END # / UNLESS singleBranchMode %] >+ [% END # / IF singleBranchMode %] > [% END %] > > [%# Following on one line for translatability %] >-- >2.1.4
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 13629
:
87426
|
87457
|
87467