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 'cat-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 ) %]
28 <div class="dialog message"><p>There are no mappings for the [% IF ( frameworktext ) %]<em>[% frameworktext %]</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 frameworkloo IN frameworkloop %]
35 [% IF ( frameworkloo.selected ) %]
36 <option selected="selected" value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
38 <option value="[% frameworkloo.value %]">[% frameworkloo.frameworktext %]</option>
42 <input type="submit" value="Go" />
46 <form method="post" action="" id="addfield">
47 <input type="hidden" name="framework" value="[% framework %]" />
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 ) %]<table>
62 <caption>Mappings for the [% IF ( frameworktext ) %]<em>[% frameworktext %]</em>[% ELSE %]default[% END %] framework</caption>
66 <th>MARC subfield</th>
69 [% FOREACH field IN fields %]
71 <td>[% field.field %]</td>
72 <td>[% field.fieldcode %]</td>
73 <td>[% field.subfieldcode %]</td>
74 <td><a href="?op=delete&id=[% field.id %]&framework=[% field.framework %]">Delete</a></td>
84 [% INCLUDE 'admin-menu.inc' %]
87 [% INCLUDE 'intranet-bottom.inc' %]