authorities : Adding sorting option to opac & sorting mainentry asc by default
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / authorities / authorities-home.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Authorities</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script language="JavaScript" type="text/javascript">
5 function Help() {
6     newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
7 }
8
9 function addauthority() {
10     X = document.forms[0].authtype.value;
11     window.location="/cgi-bin/koha/authorities/authorities.pl?authtypecode="+X;
12 }
13 function searchauthority() {
14     X = document.forms[0].authtype2.value;
15     Y = document.forms[0].value.value;
16     window.location="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&authtypecode="+X+"&value="+Y+"&marclist=&and_or=and&excluding=&operator=contains";
17 }
18 </script>
19 </head>
20 <body>
21 <!-- TMPL_INCLUDE NAME="header.inc" -->
22 <!-- TMPL_INCLUDE NAME="authorities-search.inc" -->
23
24 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Authorities</div>
25
26 <div id="doc" class="yui-t7">
27    
28    <div id="bd">
29         <div id="yui-main">
30         <div class="yui-g">
31         
32         <!-- TMPL_INCLUDE NAME="authorities-toolbar.inc" -->
33
34 <fieldset id="authorities_authorities_home_search">
35   <legend>Authority search</legend>
36
37   <form name="f" action="/cgi-bin/koha/authorities/authorities-home.pl" method="post">
38     <input type="hidden" name="op" value="do_search" />
39     <input type="hidden" name="type" value="intranet" />
40     <input type="hidden" name="nbstatements" value="<!-- TMPL_VAR NAME="nbstatements" -->" />
41
42     <p><label for="authtypecode">Search on</label>
43           <select id="authtypecode" name="authtypecode">
44 <!-- TMPL_LOOP NAME="authtypesloop" -->
45   <!-- TMPL_IF name="selected" -->
46             <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="authtypetext" --></option>
47   <!-- TMPL_ELSE -->
48             <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
49   <!-- /TMPL_IF -->
50 <!-- /TMPL_LOOP -->
51           </select>
52           <label for="value_mainmainentry">Main entry ($a only)</label>
53           <input type="hidden" name="marclist" value="mainmainentry" />
54           <select name="operator">
55             <option value="contains">contains</option>
56             <option value="start">start by</option>
57             <option value="is">is exactly</option>
58         </select>
59         <input id="value_mainmainentry" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
60     </p>
61     <p>
62         <label for="value_mainentry">Main entry</label>
63         <input type="hidden" name="marclist" value="mainentry" />
64         <input type="hidden" name="and_or" value="and" />
65         <input type="hidden" name="excluding" value="" />
66         <select name="operator">
67             <option value="contains">contains</option>
68             <option value="start">start by</option>
69             <option value="is">is exactly</option>
70         </select>
71         <input id="value_mainentry" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
72       </p>
73     <p><label for="value_anywhere">Anywhere</label>
74           <input type="hidden" name="marclist" value="" />
75           <input type="hidden" name="and_or" value="and" />
76           <input type="hidden" name="excluding" value="" />
77           <select name="operator">
78             <option value="contains">contains</option>
79             <option value="start">start by</option>
80             <option value="is">is exactly</option>
81           </select>
82           <input id="value_anywhere" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
83     </p>
84
85     <div id="action">
86           <p><label>Order by :</label><select name="orderby">
87          <option value="">None</option>
88             <option value="HeadingAsc" selected="SELECTED">Heading Ascendant</option>
89             <option value="HeadingDsc">Heading Descendant</option>
90           </select>
91       <input type="submit" value="Start search">
92       </p>
93     </div>
94   </form>
95 </fieldset>
96     
97
98
99 </div>
100 </div>
101
102 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->