1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Admin › OAI sets</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript">
6 function newDescField() {
7 $("#descriptionlist").append(
9 '<textarea style="vertical-align:middle" name="description"></textarea>' +
10 '<a style="cursor:pointer" onclick="delDescField(this)"> ×</a>' +
15 function delDescField(minusButton) {
16 var li = $(minusButton).parent('li');
20 $(document).ready(function() {
27 <body id="admin_oai_sets" class="admin">
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'cat-search.inc' %]
31 <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>
33 <div id="doc3" class="yui-t2">
38 <h1>OAI sets configuration</h1>
41 <h2>Add a new set</h2>
42 <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl">
43 <input type="hidden" name="op" value="savenew" />
45 <label for="spec">setSpec</label>
46 <input type="text" id="spec" name="spec" />
48 <label for="name">setName</label>
49 <input type="text" id="name" name="name" />
51 <label>setDescriptions</label>
52 <ul id="descriptionlist">
54 <a style="cursor:pointer" onclick='newDescField()'>Add description</a>
56 <input type="submit" value="Save" />
57 <input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" />
59 [% ELSE %][% IF op_mod %]
60 <h2>Modify set '[% spec %]'</h2>
61 <form method="post" action="/cgi-bin/koha/admin/oai_sets.pl">
62 <input type="hidden" name="op" value="savemod" />
63 <input type="hidden" name="id" value="[% id %]" />
65 <label for="spec">setSpec</label>
66 <input type="text" id="spec" name="spec" value="[% spec %]" />
68 <label for="name">setName</label>
69 <input type="text" id="name" name="name" value="[% name %]" />
71 <label>setDescriptions</label>
72 <ul id="descriptionlist">
73 [% FOREACH desc IN descriptions %]
75 <textarea style="vertical-align:middle" name="description">[% desc.description %]</textarea>
76 <a style="cursor:pointer" onclick="delDescField(this)"> ×</a>
80 <a style="cursor:pointer" onclick='newDescField()'>Add description</a>
82 <input type="submit" value="Save" />
83 <input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" />
89 [% UNLESS ( op_new ) %]
90 <a href="/cgi-bin/koha/admin/oai_sets.pl?op=new">Add a new set</a>
98 <th>setDescriptions</th>
103 [% FOREACH set IN sets_loop %]
105 <td>[% set.spec %]</td>
106 <td>[% set.name %]</td>
108 [% IF set.descriptions %]
110 [% FOREACH desc IN set.descriptions %]
111 <li>[% desc.description %]</li>
115 <em>No descriptions</em>
119 <a href="/cgi-bin/koha/admin/oai_sets.pl?op=mod&id=[% set.id %]">Modify</a>
121 <a href="/cgi-bin/koha/admin/oai_sets.pl?op=del&id=[% set.id %]">Delete</a>
123 <a href="/cgi-bin/koha/admin/oai_set_mappings.pl?id=[% set.id %]">Define mappings</a>
130 <p>There is no set defined.</p>
137 [% INCLUDE 'admin-menu.inc' %]
140 [% INCLUDE 'intranet-bottom.inc' %]