Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/fieldmapping.tt
Aleisha Amohia 16414374aa Bug 17793: Make sysprefs search show on all Admin pages
This patch is amended to use the sysprefs search on all Administration
pages that do not have their own custom search.

To test:
1) Go to Administration
2) Notice Catalogue search at the top - seems out of place.
3) Apply patch and refresh page.
4) Notice admin / sysprefs search now shows and is more appropriate.
5) Confirm searching for sysprefs still works

This patch affects the following pages:
- admin-home.pl
- audio_alerts.pl
- authtypes.pl
- auth_tag_structure.pl
- authorised_values.pl
- biblio_framework.pl
- marctagstructure.pl
- branch_transfer_limits.pl
- branches.pl
- checkmarc.pl
- classsources.pl
- columns_settings.pl
- didyoumean.pl
- edi_accounts.pl
- edi_ean_accounts.pl
- fieldmapping.pl
- item_circulation_alerts.pl
- items_search_fields.pl
- items_search_field.pl
- item_types.pl
- koha2marklinks.pl
- matching-rules.pl
- oai_sets.pl
- oai_set_mappings.pl
- patron-attr-types.pl
- smart-rules.pl
- transport-cost-matrix.pl
- sms_providers.pl

Sponsored-by: Catalyst IT

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2017-02-17 15:34:11 +00:00

87 lines
3.4 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo; Keyword to MARC mapping</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$('#selectframework').find("input:submit").hide();
$('#framework').change(function() {
$('#selectframework').submit();
});
});
//]]>
</script>
</head>
<body id="admin_fieldmapping" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'prefs-admin-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Keyword to MARC mapping</div>
<div id="doc3" class="yui-t2">
<div id="yui-main">
<div class="yui-b">
<h2>Keyword to MARC mapping</h2>
[% UNLESS ( fields ) %]
<div class="dialog message"><p>There are no mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework. </p></div>
[% END %]
<form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
<label for="framework">Framework:</label>
<select name="framework" id="framework" style="width:20em;">
<option value="">Default</option>
[% FOREACH f IN frameworks %]
[% IF f.frameworkcode == framework.frameworkcode %]
<option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext %]</option>
[% ELSE %]
<option value="[% f.frameworkcode %]">[% f.frameworktext %]</option>
[% END %]
[% END %]
</select>
<input type="submit" value="Go" />
</form>
<form method="post" action="" id="addfield">
<input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
<fieldset class="rows">
<legend>Add a mapping</legend>
<ol>
<li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
<li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
<li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
</ol>
<fieldset class="action">
<input type="submit" value="Submit" />
</fieldset>
</fieldset>
</form>
[% IF ( fields ) %]<table>
<caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
<tr>
<th>Field</th>
<th>MARC field</th>
<th>MARC subfield</th>
<th>&nbsp;</th>
</tr>
[% FOREACH field IN fields %]
<tr>
<td>[% field.field %]</td>
<td>[% field.fieldcode %]</td>
<td>[% field.subfieldcode %]</td>
<td><a class="btn btn-default btn-xs" href="?op=delete&amp;id=[% field.id %]&amp;framework=[% field.framework %]"><i class="fa fa-trash"></i> Delete</a></td>
</tr>
[% END %]
</table>[% END %]
</div>
</div>
<div class="yui-b">
[% INCLUDE 'admin-menu.inc' %]
</div>
[% INCLUDE 'intranet-bottom.inc' %]