Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.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

127 lines
4.4 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Administration &rsaquo;
[% IF ( add_form ) %] Koha to MARC mapping &rsaquo; Connect [% tablename %].[% kohafield %] to a MARC subfield[% END %]
[% IF ( else ) %]Koha to MARC mapping [% tagfield %][% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
[% IF tablename.default == 'biblio' %]
$("#tablename option:first").attr('selected','selected');
[% END %]
$('#tablename').change(function() {
$('#koha2marc').submit();
});
});
//]]>
</script>
</head>
<body id="admin_koha2marclinks" 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; [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC Mapping</a> &rsaquo; Connect [% tablename %].[% kohafield %] to a MARC subfield[% END %]
[% IF ( else ) %]Koha to MARC mapping[% tagfield %][% END %]</div>
[% IF ( add_form ) %]
<div id="doc" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-g">
[% ELSE %]
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% END %]
[% IF ( add_form ) %]
<h1>Connect [% tablename %].[% kohafield %] to a MARC subfield</h1>
<p>Choose and validate 1 MARC subfield for <strong>[% tablename %].[% kohafield %]</strong>.</p>
<p><b>Note: </b>All frameworks will be modified which is usually what you need, but you have been warned.</p>
<fieldset class="rows">
<ol>
[% FOR i IN [ 0 .. 9 ] %]
[% marclist = "marclist$i" %]
<li>
<form action="[% script_name %]" method="post">
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="tablename" value="[% tablename %]" />
<input type="hidden" name="kohafield" value="[% kohafield %]" />
<label>[% i %]00s</label>
<select name="marc" id="marc" size="1" width="570" style="width: 570px;">
[% FOREACH value IN $marclist.values %]
[% IF ( value == $marclist.default ) %]
<option value="[% value %]" selected="selected">[% value %]</option>
[% ELSE %]
<option value="[% value %]">[% value %]</option>
[% END %]
[% END %]
</select>
<input type="submit" value="OK" />
</form>
</li>
[% END %]
</ol>
</fieldset>
<fieldset class="action">
<form action="[% script_name %]" name="Aform" method="post">
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="tablename" value="[% tablename %]" />
<input type="hidden" name="kohafield" value="[% kohafield %]" />
<input type="hidden" name="choice" value="" />
<input type="submit" value="Click to &quot;Unmap&quot;" />
</form>
<a class="cancel" href="/cgi-bin/koha/admin/koha2marclinks.pl">Cancel</a>
</fieldset>
[% END %]
[% IF ( else ) %]
<h1>Koha to MARC mapping [% tagfield %]</h1>
<form action="[% script_name %]" method="post" id="koha2marc">
<p>
<select name="tablename" id="tablename" size="1">
[% FOREACH value IN tablename.values %]
[% IF ( value == tablename.default ) %]
<option value="[% value %]" selected="selected">[% value %]</option>
[% ELSE %]
<option value="[% value %]">[% value %]</option>
[% END %]
[% END %]
</select>
</p>
</form>
<table>
<tr>
<th>Koha field</th>
<th>Tag</th>
<th>Subfield</th>
<th>Lib</th>
<th>&nbsp;</th>
</tr>
[% FOREACH loo IN loop %]
<tr>
<td><a href="[% loo.edit %]">[% loo.kohafield %]</a></td>
<td>[% loo.tagfield %]</td>
<td>[% loo.tagsubfield %]</td>
<td>[% loo.liblibrarian %]</td>
<td><a href="[% loo.edit %]" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a></td>
</tr>
[% END %]
</table>
[% END %]
</div>
</div>
[% UNLESS ( add_form ) %]
<div class="yui-b">
[% INCLUDE 'admin-menu.inc' %]
</div>
[% END %]
</div>
[% INCLUDE 'intranet-bottom.inc' %]