koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/barcodes se... [rel_2_2]


From: Mason James
Subject: [Koha-cvs] koha/koha-tmpl/intranet-tmpl/npl/en/barcodes se... [rel_2_2]
Date: Wed, 12 Apr 2006 05:20:52 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Mason James <address@hidden>    06/04/12 05:20:52

Added files:
        koha-tmpl/intranet-tmpl/npl/en/barcodes: search.tmpl 

Log message:
        Inital commit.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/search.tmpl?only_with_tag=rel_2_2&rev=1.1.2.1

Patches:
Index: koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/search.tmpl
diff -u /dev/null 
koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/search.tmpl:1.1.2.1
--- /dev/null   Wed Apr 12 05:20:52 2006
+++ koha/koha-tmpl/intranet-tmpl/npl/en/barcodes/search.tmpl    Wed Apr 12 
05:20:52 2006
@@ -0,0 +1,93 @@
+    <!-- TMPL_INCLUDE NAME="popup-top.inc" -->
+<div class="popup-block">
+
+<h1 class="catalogue">Catalogue Item Search</h1>
+
+<form name="f" method="post">
+       <input type="hidden" name="op" value="do_search">
+       <input type="hidden" name="type" value="intranet">
+       <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR 
NAME="nbstatements" -->">
+
+       <h2 class="catalogue">Search On</h2>
+       <table cellpadding="0" cellspacing="5" border="0">
+       <tr><td>
+               <label class="label20">Title</label>
+           </td>
+           <td>
+               <input type="hidden" name="marclist" value="biblio.title">
+               <input type="hidden" name="and_or" value="and">
+               <input type="hidden" name="excluding" value="">
+               <input type="hidden" name="operator" value="contains">
+               <input type="text" name="value" onchange="sql_update()"  
class="form-box-small">
+           </td></tr>
+       <tr><td>
+               <label class="label20">ISSN</label>
+           </td>
+           <td>
+               <input type="hidden" name="marclist" value="biblioitems.issn">
+               <input type="hidden" name="and_or" value="and">
+               <input type="hidden" name="excluding" value="">
+               <input type="hidden" name="operator" value="=">
+               <input type="text" name="value" id="issn" 
onchange="sql_update()" class="form-box-small">
+           </td></tr>
+       <tr><td>
+               Results per page:
+           </td>
+           <td>
+               <select align="right" name="resultsperpage" size="1">
+                       <option value="20">20</option>
+                       <option value="50">50</option>
+                       <option value="100">100</option>
+               </select>
+               Ordered by
+               <select name="orderby" size="1">
+                       <option value="biblio.title">Title</option>
+                       <option value="biblio.author">Author</option>
+                       <option value="biblioitems.dewey">Dewey</option>
+                       <option value="biblioitems.publicationyear">Publication 
Year</option>
+                       <option 
value="biblioitems.publishercode">Publisher</option>
+               </select>
+           </td></tr>
+       <tr><td>
+               &nbsp;
+           </td>
+           <td>
+               <input type="submit" value="Start search" class="button 
catalogue">
+               <!--    <a href="javascript:PopupSuggestion()" class="button 
catalogue">Suggestions</a> -->
+           </td></tr>
+       </table>
+</form>
+
+<script>
+function sql_update() {
+document.f.sql.value="";
+       for (i=0 ; i<document.f.marclist.length ; i++) {
+               if (document.f.value[i].value.length>0) {
+                       document.f.sql.value = document.f.sql.value+
+                                                                               
document.f.and_or[i].value + ' (' +
+                                                                               
document.f.excluding[i].value + ' ' +
+                                                                               
document.f.marclist[i].value + ' ' +
+                                                                               
document.f.operator[i].value + ' ' +
+                                                                               
'\''+document.f.value[i].value + '\') ';
+               }
+       }
+}
+
+function AddStatement() {
+
+       document.forms[0].op.value="AddStatement";
+       document.f.submit();
+}
+
+function PopupSuggestion() {
+    var strQuery="";
+       for (i=0 ; i<document.f.marclist.length ; i++) {
+               if (document.f.value[i].value.length>0) {
+                   strQuery += " "+document.f.value[i].value;
+               }
+       }
+       
newin=window.open("suggest.pl?Q="+strQuery,"Suggestions",'width=500,height=400,toolbar=false,scrollbars=yes');
+}
+
+</script>
+</div>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]