From 32e27babe44de151e6858e03418833e5a9c5613d Mon Sep 17 00:00:00 2001
From: Jane Wagner
Date: Wed, 31 Mar 2010 13:34:23 -0400
Subject: [PATCH] Bug 4329 OPAC search by shelving location option
Sponsored by Arcadia University
Adds a search (under More Options in OPAC advanced search) to allow users to select one or more shelving locations as search limits. Also added section to opac.css to format shelving location search table like itemtype search table. Shelving location option is under Expanded Options. If a site doesn't use shelving locations, it can be hidden with a jquery statement in opacuserjs syspref as follows:
$(document).ready(function(){
$("#advsearch #advsearch-shelvingloc").remove();
});
---
koha-tmpl/opac-tmpl/prog/en/css/opac.css | 23 ++++++++++++++++++++
.../opac-tmpl/prog/en/modules/opac-advsearch.tmpl | 14 ++++++++++++
opac/opac-search.pl | 18 +++++++++++++++
3 files changed, 55 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/css/opac.css b/koha-tmpl/opac-tmpl/prog/en/css/opac.css
index b590473..5ce5208 100644
--- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css
+++ b/koha-tmpl/opac-tmpl/prog/en/css/opac.css
@@ -648,6 +648,29 @@ input.deleteshelf {
background-color : #F8F8EB;
}
+/* the shelving location list in advanced search */
+#advsearch-shelvingloc table {
+ border-collapse : separate;
+ border-spacing : 3px;
+ border : 0px;
+ margin : 0px;
+ background-color : white;
+ border : 0px solid #D8DEB8;
+}
+
+#advsearch-shelvingloc table tr td {
+ background-color : #F8F8EB;
+ border : 0px;
+ margin : 0px;
+ width : 700px;
+}
+
+#advsearch-shelvingloc td {
+ font-size : 0.8em;
+ background-color : #F8F8EB;
+}
+
+
body#advsearch #breadcrumbs {
line-height : 1px;
height : 1px;
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
index 1d211c4..e4ecff3 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl
@@ -172,6 +172,20 @@
+
+
+