Bug 5741 - Extra comma causes JavaScript error in Internet Explorer
[koha.git] / 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
22         <fieldset class="rows">
23 <ol><li>
24 <select name="idx" >   <!-- FIXME: script does keyword search regardless -->
25
26 <!-- TMPL_IF NAME="selected" --><option value="kw" selected="selected">Keyword</option>
27 <!-- TMPL_ELSE --><option value="kw">Keyword</option><!-- /TMPL_IF -->
28
29 <!-- TMPL_IF NAME="selected" --><option value="au" selected="selected">Author</option>
30 <!-- TMPL_ELSE --><option value="au">Author</option><!-- /TMPL_IF -->
31
32 <!-- TMPL_IF NAME="selected" --><option value="yr" selected="selected">Publication Date</option>
33 <!-- TMPL_ELSE --><option value="yr">Publication Date</option><!-- /TMPL_IF -->
34
35 <!-- TMPL_IF NAME="selected" --><option value="sn" selected="selected">Standard Number</option>
36 <!-- TMPL_ELSE --><option value="sn">Standard Number</option><!-- /TMPL_IF -->
37
38 <!-- TMPL_IF NAME="selected" --><option value="nb" selected="selected">ISBN</option>
39 <!-- TMPL_ELSE --><option value="nb">ISBN</option><!-- /TMPL_IF -->
40
41 <!-- TMPL_IF NAME="selected" --><option value="ns" selected="selected">ISSN</option>
42 <!-- TMPL_ELSE --><option value="ns">ISSN</option><!-- /TMPL_IF -->
43
44 <!-- TMPL_IF NAME="selected" --><option value="lcn,phr" selected="selected">Call Number</option>
45 <!-- TMPL_ELSE --><option value="lcn,phr">Call Number</option><!-- /TMPL_IF -->
46
47 <!-- TMPL_IF NAME="selected" --><option value="su" selected="selected">Subject</option>
48 <!-- TMPL_ELSE --><option value="su">Subject</option><!-- /TMPL_IF -->
49
50 <!-- TMPL_IF NAME="selected" -->
51    <option value="ti" selected="selected">Title</option>
52 <!-- TMPL_ELSE -->
53    <option value="ti" selected="selected">Title</option><!-- /TMPL_IF -->
54
55 <!-- TMPL_IF NAME="selected" --><option value="ti,phr" selected="selected">Title Phrase</option>
56 <!-- TMPL_ELSE --><option value="ti,phr">Title Phrase</option><!-- /TMPL_IF -->
57
58 <!-- TMPL_IF NAME="selected" --><option value="se" selected="selected">Series Title</option>
59 <!-- TMPL_ELSE --><option value="se">Series Title</option><!-- /TMPL_IF -->
60
61 <!-- TMPL_IF NAME="selected" --><option value="bc" selected="selected">Barcode</option>
62 <!-- TMPL_ELSE --><option value="bc">Barcode</option><!-- /TMPL_IF -->
63
64 <!-- TMPL_IF NAME="selected" --><option value="acqdate" selected="selected">Acquisition Date</option>
65 <!-- TMPL_ELSE --><option value="acqdate">Acquisition Date</option><!-- /TMPL_IF -->
66 </select>
67
68    <input type="text" size="30" id="ccl_textbox" name="ccl_textbox" class="focus" title="Enter search terms" value=""/>
69
70 </li>
71 </ol>
72 </fieldset>
73
74 <!-- TMPL_IF NAME="sort_by_loop" -->
75 <fieldset><legend>Sort by: </legend>
76     <p><select id="sort_by" name="sort_by">
77         <option value="">Field-weighted, Relevance Ranked</option>
78         <!-- TMPL_LOOP NAME="sort_by_loop" -->
79
80 <!-- 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 -->
81
82         <!-- /TMPL_LOOP -->
83     </select>
84         </p>
85 </fieldset><!-- /TMPL_IF -->
86
87
88
89
90 <fieldset class="rows">
91 <ol>
92         <li>
93                 <label for="datefrom">Added on or after date</label>
94              <input type="text" size="10" id="datefrom" name="datefrom" value="" />
95   <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarFrom" alt="Show Calendar" />
96 <script type="text/javascript">
97     Calendar.setup({
98         inputField     :    "datefrom",
99       ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
100         button         :    "openCalendarFrom",
101         align          :    "Tl",
102         singleClick    :    false
103     });
104 </script>
105 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
106 </li>
107 <li>
108                 <label for="dateto">Added on or before date</label>
109   <input type="text" size="10" id="dateto" name="dateto" value="" />
110   <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" id="openCalendarTo" alt="Show Calendar" />
111
112 <script type="text/javascript">
113     Calendar.setup({
114         inputField     :    "dateto",
115       ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
116         button         :    "openCalendarTo",
117         align          :    "Tl"
118     });
119 </script>
120 <div class="hint"><!-- TMPL_INCLUDE NAME="date-format.inc" --></div>
121 </li></ol>
122 </fieldset>
123
124 <fieldset class="action"><input type="submit" value="Search" class="submit" /> <a class="cancel close" href="#">Cancel</a></fieldset>
125 </form>
126 </div>
127 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->