Owen Leonard
f3a3d7a42d
Correcting capitalization in Administration templates. Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
140 lines
5.4 KiB
Text
140 lines
5.4 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Admin › OAI sets</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
function newDescField() {
|
|
$("#descriptionlist").append(
|
|
'<li>' +
|
|
'<textarea style="vertical-align:middle" name="description"></textarea>' +
|
|
'<a style="cursor:pointer" onclick="delDescField(this)"> ×</a>' +
|
|
'</li>'
|
|
);
|
|
}
|
|
|
|
function delDescField(minusButton) {
|
|
var li = $(minusButton).parent('li');
|
|
$(li).remove();
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
// Some JS
|
|
});
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
|
|
<body id="admin_oai_sets" 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">Admin</a> › OAI sets</div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
<h1>OAI sets configuration</h1>
|
|
|
|
[% IF op_new %]
|
|
<h2>Add a new set</h2>
|
|
<form method="post" action="/cgi-bin/koha/admin/oai_sets.pl">
|
|
<input type="hidden" name="op" value="savenew" />
|
|
<fieldset>
|
|
<label for="spec">setSpec</label>
|
|
<input type="text" id="spec" name="spec" />
|
|
<br />
|
|
<label for="name">setName</label>
|
|
<input type="text" id="name" name="name" />
|
|
<br />
|
|
<label>setDescriptions</label>
|
|
<ul id="descriptionlist">
|
|
</ul>
|
|
<a style="cursor:pointer" onclick='newDescField()'>Add description</a>
|
|
</fieldset>
|
|
<input type="submit" value="Save" />
|
|
<input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" />
|
|
</form>
|
|
[% ELSE %][% IF op_mod %]
|
|
<h2>Modify set '[% spec %]'</h2>
|
|
<form method="post" action="/cgi-bin/koha/admin/oai_sets.pl">
|
|
<input type="hidden" name="op" value="savemod" />
|
|
<input type="hidden" name="id" value="[% id %]" />
|
|
<fieldset>
|
|
<label for="spec">setSpec</label>
|
|
<input type="text" id="spec" name="spec" value="[% spec %]" />
|
|
<br />
|
|
<label for="name">setName</label>
|
|
<input type="text" id="name" name="name" value="[% name %]" />
|
|
<br />
|
|
<label>setDescriptions</label>
|
|
<ul id="descriptionlist">
|
|
[% FOREACH desc IN descriptions %]
|
|
<li>
|
|
<textarea style="vertical-align:middle" name="description">[% desc.description %]</textarea>
|
|
<a style="cursor:pointer" onclick="delDescField(this)"> ×</a>
|
|
</li>
|
|
[% END %]
|
|
</ul>
|
|
<a style="cursor:pointer" onclick='newDescField()'>Add description</a>
|
|
</fieldset>
|
|
<input type="submit" value="Save" />
|
|
<input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" />
|
|
</form>
|
|
[% END %]
|
|
[% END %]
|
|
|
|
<h2>List of sets</h2>
|
|
[% UNLESS ( op_new ) %]
|
|
<a href="/cgi-bin/koha/admin/oai_sets.pl?op=new">Add a new set</a>
|
|
[% END %]
|
|
[% IF sets_loop %]
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>setSpec</th>
|
|
<th>setName</th>
|
|
<th>setDescriptions</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
[% FOREACH set IN sets_loop %]
|
|
<tr>
|
|
<td>[% set.spec %]</td>
|
|
<td>[% set.name %]</td>
|
|
<td>
|
|
[% IF set.descriptions %]
|
|
<ul>
|
|
[% FOREACH desc IN set.descriptions %]
|
|
<li>[% desc.description %]</li>
|
|
[% END %]
|
|
</ul>
|
|
[% ELSE %]
|
|
<em>No descriptions</em>
|
|
[% END %]
|
|
</td>
|
|
<td>
|
|
<a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id %]">Modify</a>
|
|
|
|
|
<a href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id %]">Delete</a>
|
|
|
|
|
<a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id %]">Define mappings</a>
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</tbody>
|
|
</table>
|
|
[% ELSE %]
|
|
<p>There is no set defined.</p>
|
|
[% END %]
|
|
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|