|
Lines 1-13
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Admin › OAI sets</title> |
2 |
<title>Koha › Administration › [% IF ( op_new ) %]OAI sets configuration › Add a new OAI set[% ELSE %]OAI sets configuration[% END %]</title> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
| 4 |
<script type="text/javascript"> |
4 |
<script type="text/javascript"> |
| 5 |
//<![CDATA[ |
5 |
//<![CDATA[ |
| 6 |
function newDescField() { |
6 |
function newDescField() { |
| 7 |
$("#descriptionlist").append( |
7 |
$("#adddescription").before( |
| 8 |
'<li>' + |
8 |
'<li><label>setDescription: </label>' + |
| 9 |
'<textarea style="vertical-align:middle" name="description"></textarea>' + |
9 |
'<textarea style="vertical-align:middle" rows="2" cols="30" name="description"></textarea>' + |
| 10 |
'<a style="cursor:pointer" onclick="delDescField(this)"> ×</a>' + |
10 |
'<a onclick="delDescField(this); return false;" class="clear-field" href="#">Remove</a>' + |
| 11 |
'</li>' |
11 |
'</li>' |
| 12 |
); |
12 |
); |
| 13 |
} |
13 |
} |
|
Lines 18-24
function delDescField(minusButton) {
Link Here
|
| 18 |
} |
18 |
} |
| 19 |
|
19 |
|
| 20 |
$(document).ready(function() { |
20 |
$(document).ready(function() { |
| 21 |
// Some JS |
21 |
new YAHOO.widget.Button("newoaiset"); |
| 22 |
}); |
22 |
}); |
| 23 |
//]]> |
23 |
//]]> |
| 24 |
</script> |
24 |
</script> |
|
Lines 28-94
$(document).ready(function() {
Link Here
|
| 28 |
[% INCLUDE 'header.inc' %] |
28 |
[% INCLUDE 'header.inc' %] |
| 29 |
[% INCLUDE 'cat-search.inc' %] |
29 |
[% INCLUDE 'cat-search.inc' %] |
| 30 |
|
30 |
|
| 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> |
31 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › [% IF ( op_new ) %]<a href="http://localhost:8888/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a> › Add a new OAI set[% ELSIF ( op_mod ) %]<a href="http://localhost:8888/cgi-bin/koha/admin/oai_sets.pl">OAI sets configuration</a> › Modify OAI set '[% spec %]'[% ELSE %] OAI sets configuration[% END %]</div> |
| 32 |
|
32 |
|
| 33 |
<div id="doc3" class="yui-t2"> |
33 |
<div id="doc3" class="yui-t2"> |
| 34 |
|
34 |
|
| 35 |
<div id="bd"> |
35 |
<div id="bd"> |
| 36 |
<div id="yui-main"> |
36 |
<div id="yui-main"> |
| 37 |
<div class="yui-b"> |
37 |
<div class="yui-b"> |
| 38 |
<h1>OAI sets configuration</h1> |
38 |
[% IF ( op_new || op_mod ) %] |
| 39 |
|
|
|
| 40 |
[% IF op_new %] |
| 41 |
<h2>Add a new set</h2> |
| 42 |
<form method="post" action="/cgi-bin/koha/admin/oai_sets.pl"> |
39 |
<form method="post" action="/cgi-bin/koha/admin/oai_sets.pl"> |
|
|
40 |
[% IF ( op_new ) %] |
| 41 |
<h2>Add a new OAI set</h2> |
| 43 |
<input type="hidden" name="op" value="savenew" /> |
42 |
<input type="hidden" name="op" value="savenew" /> |
| 44 |
<fieldset> |
43 |
[% ELSIF ( op_mod ) %] |
| 45 |
<label for="spec">setSpec</label> |
44 |
<h2>Modify OAI set '[% spec %]'</h2> |
| 46 |
<input type="text" id="spec" name="spec" /> |
45 |
<input type="hidden" name="op" value="savemod" /> |
| 47 |
<br /> |
46 |
<input type="hidden" name="id" value="[% id %]" /> |
| 48 |
<label for="name">setName</label> |
47 |
[% END %] |
| 49 |
<input type="text" id="name" name="name" /> |
48 |
<fieldset id="oaidetails" class="rows"> |
| 50 |
<br /> |
49 |
<ol> |
| 51 |
<label>setDescriptions</label> |
50 |
<li> |
| 52 |
<ul id="descriptionlist"> |
51 |
<label for="spec" class="required">setSpec: </label> |
| 53 |
</ul> |
52 |
<input type="text" id="spec" name="spec" value="[% spec %]" /> |
| 54 |
<a style="cursor:pointer" onclick='newDescField()'>Add description</a> |
53 |
</li> |
| 55 |
</fieldset> |
54 |
<li> |
| 56 |
<input type="submit" value="Save" /> |
55 |
<label for="name" class="required">setName: </label> |
| 57 |
<input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" /> |
56 |
<input type="text" id="name" name="name" value="[% name %]" /> |
| 58 |
</form> |
57 |
</li> |
| 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 %]" /> |
| 64 |
<fieldset> |
| 65 |
<label for="spec">setSpec</label> |
| 66 |
<input type="text" id="spec" name="spec" value="[% spec %]" /> |
| 67 |
<br /> |
| 68 |
<label for="name">setName</label> |
| 69 |
<input type="text" id="name" name="name" value="[% name %]" /> |
| 70 |
<br /> |
| 71 |
<label>setDescriptions</label> |
| 72 |
<ul id="descriptionlist"> |
| 73 |
[% FOREACH desc IN descriptions %] |
58 |
[% FOREACH desc IN descriptions %] |
| 74 |
<li> |
59 |
<li> |
| 75 |
<textarea style="vertical-align:middle" name="description">[% desc.description %]</textarea> |
60 |
<label>setDescription: </label> |
| 76 |
<a style="cursor:pointer" onclick="delDescField(this)"> ×</a> |
61 |
<textarea style="vertical-align:middle" rows="2" cols="30" name="description">[% desc.description %]</textarea> |
|
|
62 |
<a onclick="delDescField(this); return false;" class="clear-field" href="#">Remove</a> |
| 77 |
</li> |
63 |
</li> |
| 78 |
[% END %] |
64 |
[% END %] |
| 79 |
</ul> |
65 |
<li id="adddescription"><span class="label"> </span><a class="clone-field" href="#" onclick='newDescField(); return false;'>Add description</a></li> |
| 80 |
<a style="cursor:pointer" onclick='newDescField()'>Add description</a> |
66 |
|
|
|
67 |
</ol> |
| 68 |
</fieldset> |
| 69 |
<fieldset class="action"> |
| 70 |
<input type="submit" value="Save" /> <a class="cancel" href="/cgi-bin/koha/admin/oai_sets.pl">Cancel</a> |
| 81 |
</fieldset> |
71 |
</fieldset> |
| 82 |
<input type="submit" value="Save" /> |
|
|
| 83 |
<input type="button" value="Cancel" onclick="window.location.href = '/cgi-bin/koha/admin/oai_sets.pl'" /> |
| 84 |
</form> |
72 |
</form> |
| 85 |
[% END %] |
73 |
[% ELSE %] |
| 86 |
[% END %] |
|
|
| 87 |
|
74 |
|
| 88 |
<h2>List of sets</h2> |
75 |
<div id="toolbar"> |
| 89 |
[% UNLESS ( op_new ) %] |
76 |
<ul class="toolbar"> |
| 90 |
<a href="/cgi-bin/koha/admin/oai_sets.pl?op=new">Add a new set</a> |
77 |
<li><a id="newoaiset" href="/cgi-bin/koha/admin/oai_sets.pl?op=new">New set</a></li> |
| 91 |
[% END %] |
78 |
</ul></div> |
|
|
79 |
|
| 80 |
<h2>OAI sets</h2> |
| 92 |
[% IF sets_loop %] |
81 |
[% IF sets_loop %] |
| 93 |
<table> |
82 |
<table> |
| 94 |
<thead> |
83 |
<thead> |
|
Lines 127-135
$(document).ready(function() {
Link Here
|
| 127 |
</tbody> |
116 |
</tbody> |
| 128 |
</table> |
117 |
</table> |
| 129 |
[% ELSE %] |
118 |
[% ELSE %] |
| 130 |
<p>There is no set defined.</p> |
119 |
<div class="dialog message"><p>There are no sets defined.</p></div> |
|
|
120 |
[% END %] |
| 131 |
[% END %] |
121 |
[% END %] |
| 132 |
|
|
|
| 133 |
|
122 |
|
| 134 |
</div> |
123 |
</div> |
| 135 |
</div> |
124 |
</div> |
| 136 |
- |
|
|