[Koha-patches] [PATCH] Bug 3665 Changes to staff advanced search

Jane Wagner jwagner at ptfs.com
Fri Sep 25 14:07:26 CEST 2009


This is to make the same changes as in Bug 3663 (OPAC advanced search) to the
staff advanced search.

First change is to copy the Search button from the bottom of the screen to up
under the Keyword etc. search boxes, so someone doesn't have to scroll down for
it.  Either button will work.

Second change is to reorder the entries in the search box pulldowns.  I've
rearranged the list so that Keyword, Title, Subject, Author are first in the
list, as I did in the OPAC advanced search.  I moved Barcode and Standard
Number to next in the list to make them more visible to staff, and modified the
description of Standard Number to Standard (biblio) Number because it's not
clear that it means the biblio number.  The rest of the existing search options
follow.
---
 .../prog/en/includes/search_indexes.inc            |   20 ++++++++++----------
 .../prog/en/modules/catalogue/advsearch.tmpl       |   10 ++++++++++
 2 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
index a36554c..59f62c4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/search_indexes.inc
@@ -1,5 +1,10 @@
 <select name="idx">
     <option value="kw">Keyword</option>
+    <option value="ti">Title</option>
+    <option value="ti,phr">&nbsp;&nbsp;&nbsp;&nbsp; Title as Phrase</option>
+    <option value="se">&nbsp;&nbsp;&nbsp;&nbsp; Series Title</option>
+    <option value="su">Subject</option>
+    <option value="su,phr">&nbsp;&nbsp;&nbsp;&nbsp; Subject as Phrase</option>
     <option value="au">Author</option>
     <option value="au,phr">&nbsp;&nbsp;&nbsp;&nbsp; Author as Phrase</option>
     <option value="cpn">&nbsp;&nbsp;&nbsp;&nbsp; Corporate Name</option>
@@ -8,20 +13,15 @@
     <option value="cfn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Conference Name as Phrase</option>
     <option value="pn">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name</option>
     <option value="pn,phr">&nbsp;&nbsp;&nbsp;&nbsp; Personal Name as Phrase</option>
+    <option value="bc">Barcode</option>
+    <option value="sn">Standard (biblio) Number</option>
+    <option value="nb">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option>
+    <option value="ns">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option>
+    <option value="callnum">&nbsp;&nbsp;&nbsp;&nbsp; Call Number</option>
     <option value="ln">Language</option>
     <option value="nt">Notes/Comments</option>
     <option value="pb">Publisher</option>
     <option value="pl">Publisher Location</option>
     <option value="yr">Publication Date (yyyy)</option>
     <option value="acqdate">Acquisition Date (yyyy-mm-dd)</option>
-    <option value="sn">Standard Number</option>
-    <option value="nb">&nbsp;&nbsp;&nbsp;&nbsp; ISBN</option>
-    <option value="ns">&nbsp;&nbsp;&nbsp;&nbsp; ISSN</option>
-    <option value="callnum">&nbsp;&nbsp;&nbsp;&nbsp; Call Number</option>
-    <option value="su">Subject</option>
-    <option value="su,phr">&nbsp;&nbsp;&nbsp;&nbsp; Subject as Phrase</option>
-    <option value="ti">Title</option>
-    <option value="ti,phr">&nbsp;&nbsp;&nbsp;&nbsp; Title as Phrase</option>
-    <option value="se">&nbsp;&nbsp;&nbsp;&nbsp; Series Title</option>
-    <option value="bc">Barcode</option>
 </select>
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
index c51ef15..351dea0 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/advsearch.tmpl
@@ -81,6 +81,16 @@
     <!-- /TMPL_LOOP -->
     </fieldset>
 <!-- /BOOLEAN SEARCH OPTIONS -->
+<!-- SEARCH BUTTONS -->
+            <p><input class="submit" type="submit" accesskey="s" value="Search" />
+            <!-- TMPL_IF NAME="expanded_options" -->
+            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=0">[Fewer Options]</a>
+            <!-- TMPL_ELSE -->
+            <a href="/cgi-bin/koha/catalogue/search.pl?expanded_options=1">[More options]</a>
+            <!-- /TMPL_IF -->
+            <a href="/cgi-bin/koha/catalogue/search.pl?do=Clear">[New search]</a> 
+            </p>
+<!-- /SEARCH BUTTONS -->
 
 <!-- ITEMTYPE LIMITS -->
     <div id="itemtypelist">
-- 
1.5.6.5




More information about the Koha-patches mailing list