Minor Fixes for jQuery 1.3.2 Upgrade
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / catalogue / advsearch.tmpl
index ff6da96..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">
        /**
@@ -14,7 +14,7 @@
                line.removeChild(ButtonPlus);
        }
        $(document).ready(function() {
-               $("input[@name='q']:eq(0)").focus();
+               $("input[name=q]:eq(0)").focus();
        });
 </script>
 </head>
@@ -85,7 +85,7 @@
 <!-- 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"-->
 <!-- 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" -->
+        <!-- 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>