Bug 15758: Koha::Libraries - Remove GetBranchName
[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 <style type="text/css">
5    #custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
6    </style>
7 </head>
8 <body id="lists_addbybiblionumber" class="lists">
9
10 [% UNLESS (authorized) %]
11     <p align="center">
12         [% IF (errcode==1) %]Could not create a new list. Please check the name.<br/>[% END %]
13         [% IF (errcode==2) %]Sorry, you do not have permission to add items to this list.<br/>[% END %]
14         <a href="javascript:self.close();">Close this window.</a>
15     </p>
16 [% ELSE %]
17 <div id="custom-doc" class="yui-t7">
18    <div id="bd">
19                 [% IF ( multiple ) %]
20                     <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html%]</em>: [% ELSE %]a list:[% END %]</h1>
21                 [% ELSE %]
22                         <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
23                 [% END %]
24                 <ul>
25                     [% FOREACH biblio IN biblios %]
26                         <li> <span class="title">[% biblio.title |html %]</span>
27                             [% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
28                         </li>
29                     [% END %]
30                 </ul>
31
32                 <form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
33                         [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
34                         <input type="hidden" name="confirmed" value="1" />
35                         [% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
36
37 [% UNLESS ( shelfnumber ) %]
38
39 [% UNLESS ( newshelf ) %]
40      <fieldset class="rows">
41     <legend>Select an existing list</legend>
42     <ol>
43         <li>
44             <label>Choose list</label>
45             <select name="shelfnumber" id="shelfnumber">
46                 [% IF private_shelves.count %]
47                     <optgroup label="Private lists">
48                         [% FOREACH private_shelf IN private_shelves %]
49                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
50                         [% END %]
51                     </optgroup>
52                 [% END %]
53                 [% IF private_shelves_shared_with_me.count %]
54                     <optgroup label="Private lists shared with me">
55                         [% FOREACH private_shelf IN private_shelves_shared_with_me %]
56                             <option value="[% private_shelf.shelfnumber %]">[% private_shelf.shelfname | html%]</option>
57                         [% END %]
58                     </optgroup>
59                 [% END %]
60                 [% IF public_shelves.count %]
61                     <optgroup label="Public lists">
62                         [% FOREACH public_shelf IN public_shelves %]
63                             <option value="[% public_shelf.shelfnumber %]">[% public_shelf.shelfname | html%]</option>
64                         [% END %]
65                     </optgroup>
66                 [% END %]
67             </select>
68         </li>
69     </ol>
70         [% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
71         [% UNLESS ( biblionumbers ) %]
72           <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
73         [% ELSE %]
74           <input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
75         [% END %]
76         </fieldset>
77
78         <p>... or...</p>
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 %]" />[% END %]
87             [% UNLESS ( biblionumbers ) %]
88                           <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
89             [% ELSE %]
90                           <input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
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 </div>
117
118 [% INCLUDE 'intranet-bottom.inc' %]
119 [% END %]