Bug 24093: Sorting indicators broken on list contents view
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / virtualshelves / addbybiblionumber.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Add to list</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body id="lists_addbybiblionumber" class="lists">
7     <div class="container-fluid">
8
9 [% UNLESS (authorized) %]
10     <p align="center">
11         [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
12         [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
13         <a href="javascript:self.close();">Close this window.</a>
14     </p>
15 [% ELSE %]
16
17                 [% IF ( multiple ) %]
18             <h1>Add [% total | html %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
19                 [% ELSE %]
20                         <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
21                 [% END %]
22         <ul>
23             [% FOREACH biblio IN biblios %]
24             <li> <span class="title">[% biblio.title | html %]</span>
25                 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author | html %] </span>[% END %]
26             </li>
27             [% END %]
28                 </ul>
29
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 | html %]" />[% END %]
32             <input type="hidden" name="confirmed" value="1" />
33             [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber | html %]" />[% END %]
34
35 [% UNLESS ( shelfnumber ) %]
36
37 [% UNLESS ( newshelf ) %]
38     [% IF private_shelves.count OR public_shelves.count OR private_shelves_shared_with_me.count %]
39      <fieldset class="rows">
40     <legend>Select an existing list</legend>
41     <ol>
42         <li>
43             <label>Choose list</label>
44             <select name="shelfnumber" id="shelfnumber">
45                 [% IF private_shelves.count %]
46                     <optgroup label="Private lists">
47                         [% FOREACH private_shelf IN private_shelves %]
48                             <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
49                         [% END %]
50                     </optgroup>
51                 [% END %]
52                 [% IF private_shelves_shared_with_me.count %]
53                     <optgroup label="Private lists shared with me">
54                         [% FOREACH private_shelf IN private_shelves_shared_with_me %]
55                             <option value="[% private_shelf.shelfnumber | html %]">[% private_shelf.shelfname | html %]</option>
56                         [% END %]
57                     </optgroup>
58                 [% END %]
59                 [% IF public_shelves.count %]
60                     <optgroup label="Public lists">
61                         [% FOREACH public_shelf IN public_shelves %]
62                             <option value="[% public_shelf.shelfnumber | html %]">[% public_shelf.shelfname | html %]</option>
63                         [% END %]
64                     </optgroup>
65                 [% END %]
66             </select>
67         </li>
68     </ol>
69     [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
70     [% UNLESS ( biblionumbers ) %]
71       <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
72     [% ELSE %]
73       <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]" />
74     [% END %]
75     </fieldset>
76
77     <p>... or...</p>
78 [% END %]
79 [% END %]
80
81     <fieldset class="rows"><legend>Add to a new list:</legend>
82     <ol><li>
83         <label for="newvirtualshelf">
84         List name:
85         </label>
86         [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html %]" />[% END %]
87         [% UNLESS ( biblionumbers ) %]
88               <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
89         [% ELSE %]
90               <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers | html %]" />
91         [% END %]
92         <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
93         <input type="hidden" name="confirmed" value="1" />
94     </li>
95     <li>
96         <label for="category">Category:</label>
97         <select name="category" id="category">
98         <option value="1">Private</option>
99         <option value="2">Public</option>
100         </select>
101     </li></ol>
102     </fieldset>
103
104
105 [% END %]
106
107
108 <!-- SAVE -->
109             <fieldset class="action">
110             <input type="hidden" name="sortfield" value="title" />
111             <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
112             </fieldset>
113         </form>
114 <!-- /SAVE -->
115
116 [% END %]
117
118 [% SET popup_window = 1 %]
119 [% INCLUDE 'intranet-bottom.inc' %]