1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Keyword to MARC mapping</title>
3 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript">
7 $(document).ready(function() {
8 $('#selectframework').find("input:submit").hide();
9 $('#framework').change(function() {
10 $('#selectframework').submit();
19 <body id="admin_fieldmapping" class="admin">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'prefs-admin-search.inc' %]
22 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Keyword to MARC mapping</div>
23 <div id="doc3" class="yui-t2">
26 <h2>Keyword to MARC mapping</h2>
27 [% UNLESS ( fields.count ) %]
28 <div class="dialog message"><p>There are no mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext |html %]</em>[% ELSE %]default[% END %] framework. </p></div>
30 <form method="get" action="/cgi-bin/koha/admin/fieldmapping.pl" id="selectframework">
31 <label for="framework">Framework:</label>
32 <select name="framework" id="framework" style="width:20em;">
33 <option value="">Default</option>
34 [% FOREACH f IN frameworks %]
35 [% IF f.frameworkcode == framework.frameworkcode %]
36 <option selected="selected" value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
38 <option value="[% f.frameworkcode %]">[% f.frameworktext |html %]</option>
42 <input type="submit" value="Go" />
46 <form method="post" action="" id="addfield">
47 <input type="hidden" name="framework" value="[% framework.frameworkcode %]" />
48 <fieldset class="rows">
49 <legend>Add a mapping</legend>
51 <li><label for="fieldname">Field name: </label><input type="text" id="fieldname" name="fieldname" /></li>
52 <li><label for="marcfield">MARC field: </label><input type="text" id="marcfield" name="marcfield" size="3" /></li>
53 <li><label for="marcsubfield">MARC subfield: </label><input type="text" id="marcsubfield" name="marcsubfield" size="1" /></li>
55 <fieldset class="action">
56 <input type="submit" value="Submit" />
61 [% IF ( fields.count ) %]
63 <caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
67 <th>MARC subfield</th>
70 [% FOREACH field IN fields %]
72 <td>[% field.field |html %]</td>
73 <td>[% field.fieldcode %]</td>
74 <td>[% field.subfieldcode %]</td>
75 <td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id %]&framework=[% field.frameworkcode %]"><i class="fa fa-trash"></i> Delete</a></td>
85 [% INCLUDE 'admin-menu.inc' %]
88 [% INCLUDE 'intranet-bottom.inc' %]