Bug 10552: make several sysprefs available to the OPAC login page
[koha.git] / koha-tmpl / opac-tmpl / prog / en / modules / opac-advsearch.tt
index 8f763d1..4fef1c6 100644 (file)
@@ -1,3 +1,4 @@
+[% USE Koha %]
 [% INCLUDE 'doc-head-open.inc' %]
 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %]
     catalog › Advanced search
 [% IF ( expanded_options ) %]
         <!--   [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] -->
         [% IF ( !loop.first ) %]
-            <a class="ButtonPlus" name="ButtonPlus" title="Add another field">[+]</a>
-            <a class="ButtonLess" title="Remove field">[-]</a>
+            <a class="ButtonPlus" name="ButtonPlus" title="Add another field" href="#">[+]</a>
+            <a class="ButtonLess" title="Remove field" href="#">[-]</a>
         [% END %]
 [% END %]
         </p>
 <script type="text/javascript" language="javascript">
     /* This function allows to display a new field to search.
     */
-    $(document).on("click", '.ButtonPlus', function() {
+    $(document).on("click", '.ButtonPlus', function(e) {
+        e.preventDefault();
         $('.ButtonLess').show();
         var thisLine = $(this).parent();
         var newLine = thisLine.clone();
         thisLine.after(newLine);
     });
 
-    $(document).on("click", '.ButtonLess', function() {
+    $(document).on("click", '.ButtonLess', function(e) {
+        e.preventDefault();
         if($(this).parent().siblings().length <= 3 ) {
            $('.ButtonLess').hide();
         }