Bug 7979: New design for staff interface + fixes + css call moved
[koha_gimpoz] / koha-tmpl / intranet-tmpl / prog / en / includes / authorities-search.inc
index 4600b7a..9a2f9c5 100644 (file)
@@ -1,20 +1,20 @@
-<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl"><!-- TMPL_VAR NAME="LibraryName" --></a></h1>
+<div class="gradient">
+<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1>
 <!-- Begin Authorities Resident Search Box -->
 <div id="header_search" class="residentsearch">
     <div id="authority_search" class="residentsearch">
     <p class="tip">Enter authority heading ($a):</p>
-    <form name="f" action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
+    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
         <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" -->" />
-        <select id="authtypecode" name="authtypecode">
-        <!-- TMPL_LOOP NAME="authtypesloop" -->
-            <!-- TMPL_IF name="selected" -->
-            <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- TMPL_ELSE -->
-            <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- /TMPL_IF -->
-        <!-- /TMPL_LOOP -->
+        <select name="authtypecode">
+        [% FOREACH authtypesloo IN authtypesloop %]
+            [% IF ( authtypesloo.selected ) %]
+            <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
+            [% ELSE %]
+            <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
+            [% END %]
+        [% END %]
         </select>
         <input type="hidden" name="marclist" value="mainmainentry" />
         <select name="operator">
@@ -22,7 +22,7 @@
             <option value="start">starts with</option>
             <option value="is">is exactly</option>
         </select>
-        <input id="value_anywhere" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
+        <input id="value_anywhere" type="text" name="value" value="[% value %]" />
         <select name="orderby">
             <option value="">None</option>
             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
          <input type="submit" class="submit" value="Submit" />
     </form>
     </div>
-    <div id="main_heading" class="residentsearch">
+    <div id="main_heading" class="residentsearch" style="display:none;">
     <p class="tip">Enter authority heading:</p>
-    <form name="f" action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
+    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
         <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" -->" />
-        <select id="authtypecode" name="authtypecode">
-        <!-- TMPL_LOOP NAME="authtypesloop" -->
-            <!-- TMPL_IF name="selected" -->
-            <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- TMPL_ELSE -->
-            <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- /TMPL_IF -->
-        <!-- /TMPL_LOOP -->
+        <select  name="authtypecode">
+        [% FOREACH authtypesloo IN authtypesloop %]
+            [% IF ( authtypesloo.selected ) %]
+            <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
+            [% ELSE %]
+            <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
+            [% END %]
+        [% END %]
         </select>
         <input type="hidden" name="marclist" value="mainentry" />
         <input type="hidden" name="and_or" value="and" />
@@ -54,7 +53,7 @@
             <option value="start">starts with</option>
             <option value="is">is exactly</option>
         </select>
-        <input id="value_mainentry" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
+        <input id="value_mainentry" type="text" name="value" value="[% value %]" />
         <select name="orderby">
             <option value="">None</option>
             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
         <input type="submit" class="submit" value="Submit" />
     </form>
     </div>
-    <div id="all_headings" class="residentsearch">
+    <div id="all_headings" class="residentsearch" style="display:none;">
     <p class="tip">Enter any authority field:</p>
-    <form name="f" action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
+    <form action="/cgi-bin/koha/authorities/authorities-home.pl" method="get">
         <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" -->" />
-        <select id="authtypecode" name="authtypecode">
-        <!-- TMPL_LOOP NAME="authtypesloop" -->
-            <!-- TMPL_IF name="selected" -->
-            <option value="<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- TMPL_ELSE -->
-            <option value="<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="authtypetext" --></option>
-            <!-- /TMPL_IF -->
-        <!-- /TMPL_LOOP -->
+        <select name="authtypecode">
+        [% FOREACH authtypesloo IN authtypesloop %]
+            [% IF ( authtypesloo.selected ) %]
+            <option value="[% authtypesloo.value %]" selected="selected">[% authtypesloo.authtypetext %]</option>
+            [% ELSE %]
+            <option value="[% authtypesloo.value %]">[% authtypesloo.authtypetext %]</option>
+            [% END %]
+        [% END %]
         </select>
-        <input type="hidden" name="marclist" value="" />
+        <input type="hidden" name="marclist" value="all" />
         <input type="hidden" name="and_or" value="and" />
         <input type="hidden" name="excluding" value="" />
         <select name="operator">
@@ -86,7 +84,7 @@
             <option value="start">starts with</option>
             <option value="is">is exactly</option>
         </select>
-        <input id="value_mainmainentry" type="text" name="value" value="<!-- TMPL_VAR NAME="value" -->" />
+        <input id="value_mainmainentry" type="text" name="value" value="[% value %]" />
         <select name="orderby">
             <option value="">None</option>
             <option value="HeadingAsc" selected="selected">Heading A-Z</option>
     </form>
     </div>
     <ul>
-        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#authority_search">Search Authorities</a></li>
-        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#main_heading">Search Main Heading</a></li>
-        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#all_headings">Search All Headings</a></li>
+        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#authority_search">Search authorities</a></li>
+        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#main_heading">Search main heading</a></li>
+        <li><a href="/cgi-bin/koha/authorities/authorities-home.pl#all_headings">Search all headings</a></li>
     </ul>
-</div>
+</div><!-- /header_search -->
+</div><!-- /gradient -->
 <!-- End Authorities Resident Search Box -->