Bug 19794: (QA follow-up) Change tab to space
[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 %] 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 %] </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 %]" />[% END %]
32                         <input type="hidden" name="confirmed" value="1" />
33                         [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
34
35 [% UNLESS ( shelfnumber ) %]
36
37 [% UNLESS ( newshelf ) %]
38      <fieldset class="rows">
39     <legend>Select an existing list</legend>
40     <ol>
41         <li>
42             <label>Choose list</label>
43             <select name="shelfnumber" id="shelfnumber">
44                 [% IF private_shelves.count %]
45                     <optgroup label="Private lists">
46                         [% FOREACH private_shelf IN private_shelves %]
47                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
48                         [% END %]
49                     </optgroup>
50                 [% END %]
51                 [% IF private_shelves_shared_with_me.count %]
52                     <optgroup label="Private lists shared with me">
53                         [% FOREACH private_shelf IN private_shelves_shared_with_me %]
54                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
55                         [% END %]
56                     </optgroup>
57                 [% END %]
58                 [% IF public_shelves.count %]
59                     <optgroup label="Public lists">
60                         [% FOREACH public_shelf IN public_shelves %]
61                             <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
62                         [% END %]
63                     </optgroup>
64                 [% END %]
65             </select>
66         </li>
67     </ol>
68         [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
69         [% UNLESS ( biblionumbers ) %]
70           <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
71         [% ELSE %]
72           <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
73         [% END %]
74         </fieldset>
75
76         <p>... or...</p>
77 [% END %]
78
79     <fieldset class="rows"><legend>Add to a new list:</legend>
80         <ol><li>
81             <label for="newvirtualshelf">
82                 List name:
83             </label>
84             [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
85             [% UNLESS ( biblionumbers ) %]
86                           <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
87             [% ELSE %]
88                           <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
89             [% END %]
90             <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
91             <input type="hidden" name="confirmed" value="1" />
92         </li>
93         <li>
94             <label for="category">Category:</label>
95             <select name="category" id="category">
96                 <option value="1">Private</option>
97                 <option value="2">Public</option>
98             </select>
99         </li></ol>
100     </fieldset>
101
102
103 [% END %]
104
105
106 <!-- SAVE -->
107                     <fieldset class="action">
108             <input type="hidden" name="sortfield" value="title" />
109                         <input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
110                     </fieldset>
111                 </form>
112 <!-- /SAVE -->
113
114 [% SET popup_window = 1 %]
115 [% INCLUDE 'intranet-bottom.inc' %]
116 [% END %]