Owen Leonard
1ce0930ed1
This patch modifies several administration templates to use the Bootstrap grid instead of YUI. This patch also removes obsolete "text/javascript" attributes from <script> tags in the modified templates. To test, apply the patch and view the following pages, confirming that they look correct at various browser widths: - Administration -> Keywords to MARC mapping - Administration -> Item circulation alerts - Administration -> Item types - View and edit item types - Edit and item type and translate a description - Administration -> Koha to MARC mapping - Administration -> MARC frameworks -> MARC structure - View and edit tags Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
94 lines
4 KiB
Text
94 lines
4 KiB
Text
[% USE raw %]
|
|
[% USE Asset %]
|
|
[% SET footerjs = 1 %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Administration › Keyword to MARC mapping</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</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> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Keyword to MARC mapping</div>
|
|
|
|
<div class="main container-fluid">
|
|
<div class="row">
|
|
<div class="col-sm-10 col-sm-push-2">
|
|
<main>
|
|
|
|
<h2>Keyword to MARC mapping</h2>
|
|
[% UNLESS ( fields.count ) %]
|
|
<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>
|
|
[% 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 | html %]">[% f.frameworktext | html %]</option>
|
|
[% ELSE %]
|
|
<option value="[% f.frameworkcode | html %]">[% f.frameworktext | html %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
<input type="submit" value="Go" />
|
|
</form>
|
|
|
|
|
|
<form method="post" action="" id="addfield">
|
|
<input type="hidden" name="framework" value="[% framework.frameworkcode | html %]" />
|
|
<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.count ) %]
|
|
<table>
|
|
<caption>Mappings for the [% IF framework.frameworktext %]<em>[% framework.frameworktext | html %]</em>[% ELSE %]default[% END %] framework</caption>
|
|
<tr>
|
|
<th>Field</th>
|
|
<th>MARC field</th>
|
|
<th>MARC subfield</th>
|
|
<th> </th>
|
|
</tr>
|
|
[% FOREACH field IN fields %]
|
|
<tr>
|
|
<td>[% field.field | html %]</td>
|
|
<td>[% field.fieldcode | html %]</td>
|
|
<td>[% field.subfieldcode | html %]</td>
|
|
<td><a class="btn btn-default btn-xs" href="?op=delete&id=[% field.id | html %]&framework=[% field.frameworkcode | html %]"><i class="fa fa-trash"></i> Delete</a></td>
|
|
</tr>
|
|
[% END %]
|
|
</table>[% END %]
|
|
|
|
</main>
|
|
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
|
|
|
<div class="col-sm-2 col-sm-pull-10">
|
|
<aside>
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</aside>
|
|
</div> <!-- /.col-sm-2.col-sm-pull-10 -->
|
|
</div> <!-- /.row -->
|
|
[% MACRO jsinclude BLOCK %]
|
|
[% Asset.js("js/admin-menu.js") | $raw %]
|
|
<script type="text/javascript">
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#selectframework').find("input:submit").hide();
|
|
$('#framework').change(function() {
|
|
$('#selectframework').submit();
|
|
});
|
|
});
|
|
</script>
|
|
[% END %]
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|