Lines 15-40
Link Here
|
15 |
[% ELSE %] |
15 |
[% ELSE %] |
16 |
|
16 |
|
17 |
[% IF ( multiple ) %] |
17 |
[% IF ( multiple ) %] |
18 |
<h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %]a list:[% END %]</h1> |
18 |
<h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %]a list:[% END %]</h1> |
19 |
[% ELSE %] |
19 |
[% ELSE %] |
20 |
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1> |
20 |
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1> |
21 |
[% END %] |
21 |
[% END %] |
22 |
<ul> |
22 |
<ul> |
23 |
[% FOREACH biblio IN biblios %] |
23 |
[% FOREACH biblio IN biblios %] |
24 |
<li> <span class="title">[% biblio.title |html %]</span> |
24 |
<li> <span class="title">[% biblio.title |html %]</span> |
25 |
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %] |
25 |
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %] |
26 |
</li> |
26 |
</li> |
27 |
[% END %] |
27 |
[% END %] |
28 |
</ul> |
28 |
</ul> |
29 |
|
29 |
|
30 |
<form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post"> |
30 |
<form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post"> |
31 |
[% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
31 |
[% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
32 |
<input type="hidden" name="confirmed" value="1" /> |
32 |
<input type="hidden" name="confirmed" value="1" /> |
33 |
[% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %] |
33 |
[% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %] |
34 |
|
34 |
|
35 |
[% UNLESS ( shelfnumber ) %] |
35 |
[% UNLESS ( shelfnumber ) %] |
36 |
|
36 |
|
37 |
[% UNLESS ( newshelf ) %] |
37 |
[% UNLESS ( newshelf ) %] |
|
|
38 |
[% IF ( private_shelves.count ) %] |
38 |
<fieldset class="rows"> |
39 |
<fieldset class="rows"> |
39 |
<legend>Select an existing list</legend> |
40 |
<legend>Select an existing list</legend> |
40 |
<ol> |
41 |
<ol> |
Lines 65-102
Link Here
|
65 |
</select> |
66 |
</select> |
66 |
</li> |
67 |
</li> |
67 |
</ol> |
68 |
</ol> |
68 |
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
69 |
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
69 |
[% UNLESS ( biblionumbers ) %] |
70 |
[% UNLESS ( biblionumbers ) %] |
70 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
71 |
<input type="hidden" name="biblionumber" value="[% biblionumber %]" /> |
71 |
[% ELSE %] |
72 |
[% ELSE %] |
72 |
<input type="hidden" name="biblionumbers" value="[% biblionumbers %]" /> |
73 |
<input type="hidden" name="biblionumbers" value="[% biblionumbers %]" /> |
73 |
[% END %] |
74 |
[% END %] |
74 |
</fieldset> |
75 |
</fieldset> |
75 |
|
76 |
|
76 |
<p>... or...</p> |
77 |
<p>... or...</p> |
|
|
78 |
[% END %] |
77 |
[% END %] |
79 |
[% END %] |
78 |
|
80 |
|
79 |
<fieldset class="rows"><legend>Add to a new list:</legend> |
81 |
<fieldset class="rows"><legend>Add to a new list:</legend> |
80 |
<ol><li> |
82 |
<ol><li> |
81 |
<label for="newvirtualshelf"> |
83 |
<label for="newvirtualshelf"> |
82 |
List name: |
84 |
List name: |
83 |
</label> |
85 |
</label> |
84 |
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
86 |
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %] |
85 |
[% UNLESS ( biblionumbers ) %] |
87 |
[% UNLESS ( biblionumbers ) %] |
86 |
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" /> |
88 |
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" /> |
87 |
[% ELSE %] |
89 |
[% ELSE %] |
88 |
<input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" /> |
90 |
<input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" /> |
89 |
[% END %] |
91 |
[% END %] |
90 |
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" /> |
92 |
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" /> |
91 |
<input type="hidden" name="confirmed" value="1" /> |
93 |
<input type="hidden" name="confirmed" value="1" /> |
92 |
</li> |
94 |
</li> |
93 |
<li> |
95 |
<li> |
94 |
<label for="category">Category:</label> |
96 |
<label for="category">Category:</label> |
95 |
<select name="category" id="category"> |
97 |
<select name="category" id="category"> |
96 |
<option value="1">Private</option> |
98 |
<option value="1">Private</option> |
97 |
<option value="2">Public</option> |
99 |
<option value="2">Public</option> |
98 |
</select> |
100 |
</select> |
99 |
</li></ol> |
101 |
</li></ol> |
100 |
</fieldset> |
102 |
</fieldset> |
101 |
|
103 |
|
102 |
|
104 |
|
Lines 104-114
Link Here
|
104 |
|
106 |
|
105 |
|
107 |
|
106 |
<!-- SAVE --> |
108 |
<!-- SAVE --> |
107 |
<fieldset class="action"> |
109 |
<fieldset class="action"> |
108 |
<input type="hidden" name="sortfield" value="title" /> |
110 |
<input type="hidden" name="sortfield" value="title" /> |
109 |
<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a> |
111 |
<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a> |
110 |
</fieldset> |
112 |
</fieldset> |
111 |
</form> |
113 |
</form> |
112 |
<!-- /SAVE --> |
114 |
<!-- /SAVE --> |
113 |
|
115 |
|
114 |
[% SET popup_window = 1 %] |
116 |
[% SET popup_window = 1 %] |