X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fadmin%2Fmatching-rules.tt;h=99b8e6a79030f66e5a6e0059e541446b111237e8;hb=ec3735433aed8d2c1a42b7d0758b4405a3aa6b1c;hp=1c0a009e527e1941a16a6d41d6c521862a5c9033;hpb=75a4efa7042a8d15ba7832d67b8670282da3abbc;p=koha_fer diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt index 1c0a009e52..99b8e6a790 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt @@ -1,5 +1,5 @@ [% INCLUDE 'doc-head-open.inc' %] -Koha › Administration › Record Matching Rules +<title>Koha › Administration › Record matching rules [% IF ( matching_rule_form ) %] [% IF ( edit_matching_rule ) %] › Modify record matching rule @@ -168,11 +168,11 @@ function CheckRuleForm(f) { 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 @@ -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> @@ -232,7 +243,7 @@ function CheckRuleForm(f) { [% 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> @@ -302,7 +313,7 @@ function CheckRuleForm(f) { [% 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> @@ -533,23 +544,11 @@ 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> - -<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 %]