Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / labels / search.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo;  Labels</title>
2 [% INCLUDE 'doc-head-close.inc' %]
3 [% INCLUDE 'calendar.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 [% IF ( batch_id ) %]
13 to add to Batch [% batch_id %]
14 [% END %]
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="[% batch_id %]" />
20         <input type="hidden" name="type" value="[% type %]" />
21
22         <fieldset class="rows">
23 <ol><li>
24 <select name="idx" >   <!-- FIXME: script does keyword search regardless -->
25
26 [% IF ( selected ) %]<option value="kw" selected="selected">Keyword</option>
27 [% ELSE %]<option value="kw">Keyword</option>[% END %]
28
29 [% IF ( selected ) %]<option value="au" selected="selected">Author</option>
30 [% ELSE %]<option value="au">Author</option>[% END %]
31
32 [% IF ( selected ) %]<option value="yr" selected="selected">Publication Date</option>
33 [% ELSE %]<option value="yr">Publication Date</option>[% END %]
34
35 [% IF ( selected ) %]<option value="sn" selected="selected">Standard Number</option>
36 [% ELSE %]<option value="sn">Standard Number</option>[% END %]
37
38 [% IF ( selected ) %]<option value="nb" selected="selected">ISBN</option>
39 [% ELSE %]<option value="nb">ISBN</option>[% END %]
40
41 [% IF ( selected ) %]<option value="ns" selected="selected">ISSN</option>
42 [% ELSE %]<option value="ns">ISSN</option>[% END %]
43
44 [% IF ( selected ) %]<option value="lcncommaphr" selected="selected">Call Number</option>
45 [% ELSE %]<option value="lcncommaphr">Call Number</option>[% END %]
46
47 [% IF ( selected ) %]<option value="su" selected="selected">Subject</option>
48 [% ELSE %]<option value="su">Subject</option>[% END %]
49
50 [% IF ( selected ) %]
51    <option value="ti" selected="selected">Title</option>
52 [% ELSE %]
53    <option value="ti" selected="selected">Title</option>[% END %]
54
55 [% IF ( selected ) %]<option value="ticommaphr" selected="selected">Title Phrase</option>
56 [% ELSE %]<option value="ticommaphr">Title Phrase</option>[% END %]
57
58 [% IF ( selected ) %]<option value="se" selected="selected">Series Title</option>
59 [% ELSE %]<option value="se">Series Title</option>[% END %]
60
61 [% IF ( selected ) %]<option value="bc" selected="selected">Barcode</option>
62 [% ELSE %]<option value="bc">Barcode</option>[% END %]
63
64 [% IF ( selected ) %]<option value="acqdate" selected="selected">Acquisition Date</option>
65 [% ELSE %]<option value="acqdate">Acquisition Date</option>[% END %]
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 [% IF ( 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         [% FOREACH sort_by_loo IN sort_by_loop %]
79
80 [% IF ( sort_by_loo.selected ) %]<option value="[% sort_by_loo.value %]" selected="selected">[% sort_by_loo.label %]</option>[% ELSE %]<option value="[% sort_by_loo.value %]">[% sort_by_loo.label %]</option>[% END %]
81
82         [% END %]
83     </select>
84         </p>
85 </fieldset>[% END %]
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="[% 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 : "[% DHTMLcalendar_dateformat %]",
100         button         :    "openCalendarFrom",
101         align          :    "Tl",
102         singleClick    :    false
103     });
104 </script>
105 <div class="hint">[% INCLUDE '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="[% 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 : "[% DHTMLcalendar_dateformat %]",
116         button         :    "openCalendarTo",
117         align          :    "Tl"
118     });
119 </script>
120 <div class="hint">[% INCLUDE '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 [% INCLUDE 'intranet-bottom.inc' %]