0626f752a1b3f39019d5b607b314685cc795f1d4
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / search.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" --><title>Koha &rsaquo;  Labels</title>
2 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <style type="text/css">#custom-doc { width:47.23em;*width:46.04em;min-width:610px; margin:auto;margin-top: .4em; text-align:left; }</style>
5 </head>
6 <body>
7
8 <div id="custom-doc" class="yui-t7">
9    <div id="bd">
10
11 <h1>Search for items
12 <!-- TMPL_IF name="batch_id" -->
13 to add to Batch <!-- TMPL_VAR NAME="batch_id" -->
14 <!-- /TMPL_IF  -->
15 </h1>
16
17 <form name="f" method="post" action="/cgi-bin/koha/labels/label-item-search.pl">
18         <input type="hidden" name="op" value="do_search" />
19         <input type="hidden" name="batch_id" value="<!-- TMPL_VAR NAME="batch_id" -->" />
20         <input type="hidden" name="type" value="<!-- TMPL_VAR NAME="type" -->" />
21         <fieldset class="rows">
22 <ol><li>
23     <select name="idx" disabled="disabled"><!-- FIXME: script does keyword search regardless -->
24         <option value="kw" selected="selected">Keyword</option>
25     </select>
26     <input type="text" size="30" id="marclist" name="marclist" class="focus" title="Enter search terms" value=""/>  
27 </li><!-- FIXME: script does keyword search regardless<li>
28 <select name="idx" disabled="disabled">
29
30 <!-- TMPL_IF NAME="selected" --><option value="kw" selected="selected">Keyword</option>
31 <!-- TMPL_ELSE --><option value="kw">Keyword</option><!-- /TMPL_IF -->
32
33 <!-- TMPL_IF NAME="selected" --><option value="au" selected="selected">Author</option>
34 <!-- TMPL_ELSE --><option value="au">Author</option><!-- /TMPL_IF -->
35
36 <!-- TMPL_IF NAME="selected" --><option value="yr" selected="selected">Publication Date</option>
37 <!-- TMPL_ELSE --><option value="yr">Publication Date</option><!-- /TMPL_IF -->
38
39 <!-- TMPL_IF NAME="selected" --><option value="sn" selected="selected">Standard Number</option>
40 <!-- TMPL_ELSE --><option value="sn">Standard Number</option><!-- /TMPL_IF -->
41
42 <!-- TMPL_IF NAME="selected" --><option value="nb" selected="selected">ISBN</option>
43 <!-- TMPL_ELSE --><option value="nb">ISBN</option><!-- /TMPL_IF -->
44
45 <!-- TMPL_IF NAME="selected" --><option value="ns" selected="selected">ISSN</option>
46 <!-- TMPL_ELSE --><option value="ns">ISSN</option><!-- /TMPL_IF -->
47
48 <!-- TMPL_IF NAME="selected" --><option value="lcn,phr" selected="selected">Call Number</option>
49 <!-- TMPL_ELSE --><option value="lcn,phr">Call Number</option><!-- /TMPL_IF -->
50
51 <!-- TMPL_IF NAME="selected" --><option value="su" selected="selected">Subject</option>
52 <!-- TMPL_ELSE --><option value="su">Subject</option><!-- /TMPL_IF -->
53
54 <!-- TMPL_IF NAME="selected" -->
55    <option value="ti" selected="selected">Title</option>
56 <!-- TMPL_ELSE -->
57    <option value="ti" selected="selected">Title</option><!-- /TMPL_IF -->
58
59 <!-- TMPL_IF NAME="selected" --><option value="ti,phr" selected="selected">Title Phrase</option>
60 <!-- TMPL_ELSE --><option value="ti,phr">Title Phrase</option><!-- /TMPL_IF -->
61
62 <!-- TMPL_IF NAME="selected" --><option value="se" selected="selected">Series Title</option>
63 <!-- TMPL_ELSE --><option value="se">Series Title</option><!-- /TMPL_IF -->
64
65 <!-- TMPL_IF NAME="selected" --><option value="bc" selected="selected">Barcode</option>
66 <!-- TMPL_ELSE --><option value="bc">Barcode</option><!-- /TMPL_IF -->
67
68 <!-- TMPL_IF NAME="selected" --><option value="acqdate" selected="selected">Acquisition Date</option>
69 <!-- TMPL_ELSE --><option value="acqdate">Acquisition Date</option><!-- /TMPL_IF -->
70 </select>
71    <input type="text" size="30" name="q" title="Enter search terms" value="" disabled="disabled" />  FIXME: script doesn't "catch" q param
72 </li> -->
73 </ol>
74 </fieldset>
75
76 <!-- TMPL_IF NAME="sort_by_loop" -->
77 <fieldset><legend>Sort by: </legend>
78     <p><select id="sort_by" name="sort_by">
79         <option value="">Field-weighted, Relevance Ranked</option>
80 <!-- TMPL_ELSE --><!-- /TMPL_IF -->
81         <!-- TMPL_LOOP NAME="sort_by_loop" -->
82         
83 <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="label" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="label" --></option><!-- /TMPL_IF -->
84
85 <!-- TMPL_ELSE --><!-- /TMPL_IF -->
86         <!-- /TMPL_LOOP -->
87     </select>
88         </p>
89 </fieldset><!-- /TMPL_IF -->
90
91
92         
93 <!--<fieldset class="rows"><table>
94         <tr><th scope="row">
95                 <label for="datefrom">Added on or after date</label>
96             </th>
97             <td>
98                 <input type="hidden" name="marclist" value="items.dateaccessioned" />
99                 <input type="hidden" name="and_or" value="and" />
100                 <input type="hidden" name="excluding" value="" />
101                 <input type="hidden" name="operator" value=">=" />
102   <input type="text" size="10" id="datefrom" name="value" value="" />                                                      
103   <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" valign="top" />
104
105 <script type="text/javascript">
106     Calendar.setup({
107         inputField     :    "datefrom",
108       ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
109         button         :    "openCalendarFrom",
110         align          :    "Tl",
111         singleClick    :    false
112     });
113 </script>
114
115
116 </td>
117     </tr>
118         <tr><th scope="row">
119                 <label for="dateto">Added on or before date</label>
120             </th>
121             <td>
122                 <input type="hidden" name="marclist" value="items.dateaccessioned" />
123                 <input type="hidden" name="and_or" value="and" />
124                 <input type="hidden" name="excluding" value="" />
125                 <input type="hidden" name="operator" value="<=" />
126   <input type="text" size="10" id="dateto" name="value" value="" />                                                      
127   <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarTo" style="cursor: pointer;" valign="top" />
128
129 <script type="text/javascript">
130     Calendar.setup({
131         inputField     :    "dateto",
132       ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
133         button         :    "openCalendarTo",
134         align          :    "Tl",
135     });
136 </script>
137 --><!-- FIXME: script returns ALL type regardless
138     <tr><th scope="row">Document Type</th>
139                 <td colspan="2">
140                     <select name="Filter" disabled="disabled">
141                         <option value="">All Item Types</option>
142 <!-- TMPL_ELSE --><!-- /TMPL_IF -->
143                         <!-- TMPL_LOOP name="itemtypeloop" -->
144                             <!-- TMPL_IF name="selected" -->
145                                 <option value="<!-- TMPL_VAR name="value" -->"  selected="selected" >
146                             <!-- TMPL_ELSE -->
147                                 <option value="<!-- TMPL_VAR name="value" -->">
148                             <!-- /TMPL_IF --><!-- TMPL_VAR name="description" --></option>
149 <!-- TMPL_ELSE --><!-- /TMPL_IF -->
150                         <!-- /TMPL_LOOP -->
151                     </select>
152                 </td>
153             </tr></table></fieldset>-->
154
155 <fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
156 </form>
157 </div>
158 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->