Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_set_mappings.tt
Owen Leonard f3a3d7a42d Bug 2780 - Capitalize strings consistently (Admin pages)
Correcting capitalization in Administration templates.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
2012-04-10 10:03:21 +02:00

103 lines
3.6 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Admin &rsaquo; OAI set mappings</title>
[% INCLUDE 'doc-head-close.inc' %]
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
// Some JS
});
function newCondition() {
var tr = $('#ORbutton').parents('tr');
var clone = $(tr).clone();
$("#ORbutton").parent('td').replaceWith('<td style="text-align:center">OR</td>');
$(tr).parent('tbody').append(clone);
}
function hideDialogBox() {
$('div.dialog').remove();
}
function returnToSetsPage() {
window.location.href = "/cgi-bin/koha/admin/oai_sets.pl";
}
//]]>
</script>
</head>
<body id="admin_oai_set_mappings" class="admin">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Admin</a> &rsaquo; <a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% id %]">OAI set mappings</a></div>
<div id="doc3" class="yui-t2">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
[% IF ( mappings_saved ) %]
<div class="dialog">
<p>Mappings have been saved</p>
<p><a href="/cgi-bin/koha/admin/oai_sets.pl">Return to sets management</a></p>
</div>
[% END %]
<h1>Mappings for set '[% setName %]' ([% setSpec %])</h1>
[% UNLESS ( mappings ) %]
<p class="warning">Warning: no mappings defined for this set</p>
[% END %]
<form action="/cgi-bin/koha/admin/oai_set_mappings.pl" method="post" onsubmit="hideDialogBox();">
<table id="mappings">
<thead>
<tr>
<th>Field</th>
<th>Subfield</th>
<th>&nbsp;</th>
<th>Value</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
[% IF ( mappings ) %]
[% FOREACH mapping IN mappings %]
<tr>
<td><input type="text" name="marcfield" size="3" value="[% mapping.marcfield %]" /></td>
<td style="text-align:center"><input type="text" name="marcsubfield" size="1" value="[% mapping.marcsubfield %]" /></td>
<td>is equal to</td>
<td><input type="text" name="marcvalue" value="[% mapping.marcvalue %]" /></td>
<td style="text-align:center">
[% IF ( loop.last ) %]
<input type="button" id="ORbutton" value="OR" onclick="newCondition()"/>
[% ELSE %]
OR
[% END %]
</td>
</tr>
[% END %]
[% ELSE %]
<tr>
<td><input type="text" name="marcfield" size="3" /></td>
<td style="text-align:center"><input type="text" name="marcsubfield" size="1" /></td>
<td>is equal to</td>
<td><input type="text" name="marcvalue" /></td>
<td><input type="button" id="ORbutton" value="OR" onclick="newCondition()"/></td>
</tr>
[% END %]
</tbody>
</table>
<p class="hint">Hint: to delete a line, empty at least one of the text fields in this line</p>
<input type="hidden" name="id" value="[% id %]" />
<input type="hidden" name="op" value="save" />
<fieldset class="action">
<input type="submit" value="Save" />
<input type="button" value="Cancel" onclick="returnToSetsPage();" />
</fieldset>
</form>
</div>
</div>
<div class="yui-b">
[% INCLUDE 'admin-menu.inc' %]
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]