Bug 3603: Fixes XHMTL errors in catalogue/showmarc.tmpl
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / advsearch.tmpl
index c60539f..d5fb462 100644 (file)
@@ -1,5 +1,5 @@
 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha &rsaquo; Catalogue &rsaquo; Advanced Search</title>
+<title>Koha &rsaquo; Catalog &rsaquo; Advanced Search</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 <script type="text/JavaScript" language="JavaScript">
        /**
                dad.appendChild(line.cloneNode(true));
                line.removeChild(ButtonPlus);
        }
+       $(document).ready(function() {
+               $("input[name=q]:eq(0)").focus();
+       });
 </script>
 </head>
 <body>
 
 <!-- TMPL_INCLUDE NAME="header.inc" -->
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Advanced Search</div>
 
 <div id="doc" class="yui-t7">
    <div id="bd">
@@ -64,7 +68,7 @@
             <!-- /TMPL_IF --> 
                        <!-- /TMPL_IF -->
                        <!-- TMPL_INCLUDE NAME="search_indexes.inc" -->
-                       <input type="text" size="30" name="q" title="Enter search terms" value="" class="focus" />
+                       <input type="text" size="30" name="q" title="Enter search terms" value="" />
             <!-- TMPL_IF NAME="expanded_options" -->
                 <!-- TMPL_IF NAME="add_field" -->
                     <a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>
 <!-- ITEMTYPE LIMITS -->
     <div id="itemtypelist">
        <fieldset>
-     <legend>Limit type to: match any of the following:</legend>
+     <legend>Limit to any of the following:</legend>
     <table>
         <tr>
       <!--TMPL_LOOP Name="itemtypeloop"-->
         <td>
         <!-- TMPL_IF name="imageurl"--><img border="0" src="<!--TMPL_VAR Name="imageurl" -->" alt="<!--TMPL_VAR Name="description" -->" /><!-- /TMPL_IF -->
-               <input type="checkbox" id="mc-<!--TMPL_VAR Name="number" -->" name="limit" value="mc:<!--TMPL_VAR Name="code" -->" />&nbsp;
-        <label for="mc-<!--TMPL_VAR Name="number" -->"><!--TMPL_VAR Name="description" --></label></td>
+               <input type="checkbox" id="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->" name="limit" value="mc-<!-- TMPL_VAR NAME="ccl" -->:<!--TMPL_VAR Name="code" -->" />&nbsp;
+        <label for="<!-- TMPL_VAR NAME="ccl" -->-<!--TMPL_VAR Name="number" -->"><!--TMPL_VAR Name="description" --></label></td>
         <!-- TMPL_UNLESS name="count5" --></tr><tr><!-- /TMPL_UNLESS -->
       <!--/TMPL_LOOP-->
+         <!-- FIXME: for validation, avoid generating empty row -->
       </tr>
     </table>
        </fieldset>
         
         <select name="limit" class="subtype">
             <option value="" selected="selected" class="menuheader">Any audience</option>
-            <option value="aud:a" >Easy</option>
-            <option value="aud:c" >Juvenile</option>
-            <option value="aud:d" >Young adult</option>
-            <option value="aud:e" >Adult</option>
+                       <option value="aud:a">Preschool</option>
+                       <option value="aud:b">Primary</option>
+                       <option value="aud:c">Pre-adolescent</option>
+                       <option value="aud:d">Adolescent</option>
+                       <option value="aud:e">Adult</option>
+                       <option value="aud:f">Specialized</option>
+                       <option value="aud:g">General</option>
+                       <option value="aud:j">Juvenile</option>
         </select>
         
         <select name="limit" class="subtype">
 <!-- TYPE LIMITS -->
     <fieldset>
 
-    <legend>Limit type to: match any of the following</legend>
+    <legend>Limit to any of the following</legend>
     <table class="itemtypes">
             <tr>
             <td><input type="checkbox" id="mc-bks" name="limit" value="mc:t" />
         <label for="branchloop">Individual Libraries:</label><select name="limit" id="branchloop" onchange='if(this.value != ""){document.getElementById("categoryloop").disabled=true;} else {document.getElementById("categoryloop").disabled=false;}'>
         <option value="">All Libraries</option>
         <!-- TMPL_LOOP NAME="branchloop" -->
-        <option value="homebranch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
+        <!-- TMPL_IF NAME="selected" -->
+        <option value="branch:<!-- TMPL_VAR NAME="value" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
+        <!-- TMPL_ELSE -->
+        <option value="branch:<!-- TMPL_VAR NAME="value" -->"><!-- TMPL_VAR NAME="branchname" --></option>
+        <!-- /TMPL_IF -->
         <!-- /TMPL_LOOP -->
         </select>
     <!-- <input type="hidden" name="limit" value="branch: MAIN" /> -->
         </p>
         <!-- TMPL_IF NAME="searchdomainloop" -->
-    <p>OR<p> <!-- should addjs to grey out group pulldown if a library is selected. -->
+    <p>OR</p> <!-- should addjs to grey out group pulldown if a library is selected. -->
     <p>
         <label for="categoryloop">Groups of Libraries</label><select name="multibranchlimit" id="categoryloop">
         <option value=""> -- none -- </option>