Bug 10515: make behavior of library category fetchers consistent with other fetchers
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / matching-rules.tt
index 5835244..99b8e6a 100644 (file)
@@ -220,6 +220,17 @@ function CheckRuleForm(f) {
            <input type="text" id="threshold" name="threshold" size="5" maxlength="5" 
                   value="[% threshold |html %]" /> <span class="required">Required</span>
        </li>
+       <li><label for="record_type" class="required">Record type: </label>
+           <select id="record_type" name="record_type">
+               [% IF ( record_type == "authority" ) %]
+                   <option value="biblio">Bibliographic record</option>
+                   <option value="authority" selected="selected">Authority record</option>
+               [% ELSE %]
+                   <option value="biblio" selected="selected">Bibliographic record</option>
+                   <option value="authority">Authority record</option>
+               [% END %]
+           </select><span class="required">Required</span>
+       </li>
     </ol>
   </fieldset>
 
@@ -533,21 +544,9 @@ function CheckRuleForm(f) {
 
 [% IF ( display_list ) %]
 
-<div id="toolbar">
-       <script type="text/javascript">
-       //<![CDATA[
-       // prepare DOM for YUI Toolbar
-        $(document).ready(function() {
-           yuiToolbar();
-        });
-       // YUI Toolbar Functions
-       function yuiToolbar() {
-           new YAHOO.widget.Button("newrule");
-       }       //]]>
-       </script>
-       <ul class="toolbar">
-    <li><a id="newrule" href="[% script_name %]?op=add_matching_rule">New record matching rule</a></li>
-</ul></div>
+<div id="toolbar" class="btn-toolbar">
+    <a class="btn btn-small" id="newrule" href="[% script_name %]?op=add_matching_rule"><i class="icon-plus"></i> New record matching rule</a>
+</div>
 
 <h2>Record matching rules</h2>
 [% IF ( added_matching_rule ) %]