[% INCLUDE 'doc-head-open.inc' %]
-<title>Koha › Administration › Record Matching Rules
+<title>Koha › Administration › Record matching rules
[% IF ( matching_rule_form ) %]
[% IF ( edit_matching_rule ) %]
› Modify record matching rule
div.matchgroup { border:1px solid #DDD; border-left-width: 15px; padding:.4em; margin-bottom:.6em;}
</style>
</head>
-<body>
+<body id="admin_matching-rules" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( display_list ) %]Record Matching Rules[% ELSE %]<a href="/cgi-bin/koha/admin/matching-rules.pl">Record Matching Rules</a>[% END %]
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( display_list ) %]Record matching rules[% ELSE %]<a href="/cgi-bin/koha/admin/matching-rules.pl">Record matching rules</a>[% END %]
[% IF ( matching_rule_form ) %]
[% IF ( edit_matching_rule ) %]
› Modify record matching rule
<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>
[% FOREACH matchpoint IN matchpoints %]
<div id="mp_[% matchpoint.mp_num %]" class="matchgroup">
<fieldset class="rows">
- <legend>Match Point [% matchpoint.mp_num %] | <a href="#" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num %]', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
+ <legend>Match point [% matchpoint.mp_num %] | <a href="#" class="button" onclick="InsertMatchpoint('mp_[% matchpoint.mp_num %]', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
<ol>
<li>
<label for="mp_[% matchpoint.mp_num %]_search_index">Search index: </label>
[% ELSE %]
<div id="mp_1" class="matchgroup">
<fieldset class="rows">
- <legend>Match Point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
+ <legend>Match point 1 | <a href="#" class="button" onclick="InsertMatchpoint('mp_1', 'mp_template'); return false;">Add match point</a> | <a href="#" class="button" onclick="DeleteMatchpoint(this); return false;">Remove this match point</a></legend>
<ol>
<li>
<label for="mp_1_search_index">Search index: </label>
[% 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>
-
-<h2>Record Matching Rules</h2>
+<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 ) %]
<div class="dialog message">Added record matching rule "[% added_matching_rule %]"</div>
[% END %]