Owen Leonard
a46b3b4de0
Some scripts pass a template variable to facilitate an alternate table row class for styling. Other use the 'IF (loop.odd)' construction. I think we're at the point where the CSS3 :nth-child() selector is widely-supported enough that we can do without template-based solutions: http://caniuse.com/#feat=css-sel3 This patch adds such a selector to the staff client CSS and removes the corresponding template markup from Administration pages. The last in this series of patches will remove the redundant CSS. Also in this patch: a few minor markup corrections. To test, apply the patch and clear your browser cache if necessary. View the following pages and confirm that alternate table row highlighting works as before: - Administration -> Budgets - Acquisitions -> Vendor -> Contracts - Administration -> Budgets -> Budget -> Planning - Administration -> Authority types - Administration -> Authority types -> MARC structure - Administration -> Authority types -> MARC structure -> subfields - Administration -> MARC bibliographic framework - Administration -> MARC bibliographic framework -> MARC structure - Administration -> MARC bibliographic framework -> MARC structure -> Subfields - Administration -> Libraries and groups - Administration -> Cities and towns - Administration -> Classification sources - Administration -> Circulation and fines rules - Administration -> Currencies and exchange rates - Administration -> Item types - Administration -> Koha to MARC mapping - Administration -> System preferences -> Local use - Administration -> Z39.50 client targets Signed-off-by: Nick Clemens <nick@quecheelibrary.org> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
114 lines
4 KiB
Text
114 lines
4 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Administration ›
|
|
[% IF ( add_form ) %] Koha to MARC mapping › Connect [% tablename %].[% kohafield %] to a MARC subfield[% END %]
|
|
[% IF ( else ) %]Koha to MARC mapping [% tagfield %][% END %]</title>
|
|
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
</head>
|
|
<body id="admin_koha2marclinks" class="admin">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-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> › [% IF ( add_form ) %] <a href="/cgi-bin/koha/admin/koha2marclinks.pl">Koha to MARC Mapping</a> › 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>. That will modify <b>all frameworks</b> 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 "Unmap"" />
|
|
</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">
|
|
<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>
|
|
<input type="submit" value="OK" />
|
|
</p>
|
|
</form>
|
|
<table>
|
|
<tr>
|
|
<th>Koha field</th>
|
|
<th>Tag</th>
|
|
<th>Subfield</th>
|
|
<th>Lib</th>
|
|
<th> </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 %]">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' %]
|