Bug 8236: (QA followup) Tweak language, fix whitespace error
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-addbybiblionumber.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Add to your list</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% BLOCK cssinclude %][% END %]
5 </head>
6 [% INCLUDE 'bodytag.inc' bodyid='addtolist' bodyclass='popup' %]
7     <div class="main">
8         <div class="container-fluid">
9             <div class="row-fluid">
10                 <div class="span12">
11                     <div id="useraddbybiblionumber">
12                         [% IF ( authorized ) %]
13                             [% UNLESS ( newshelf ) %]
14                                 [% IF ( multiple ) %]
15                                     <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>: [% ELSE %]a list:[% END %]</h1>
16                                 [% ELSE %]
17                                     <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname | html %]</em>[% ELSE %]a list:[% END %]</h1>
18                                 [% END %]
19                                 <ul>
20                                     [% FOREACH biblio IN biblios %]
21                                         <li> <span class="title">[% biblio.title |html %]</span>
22                                             [% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
23                                         </li>
24                                     [% END %]
25                                 </ul>
26                                 [% IF ( existingshelves ) %]
27                                     <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
28                                         <fieldset>
29                                             <legend>Select a list</legend>
30                                             <label for="shelfnumber">Add to list:</label> <select name="shelfnumber" id="shelfnumber">
31                                                 [% IF ( privatevirtualshelves ) %]<optgroup label="Private Lists">
32                                                     [% FOREACH privatevirtualshelve IN privatevirtualshelves %]
33                                                     <option value="[% privatevirtualshelve.shelfnumber %]">[% privatevirtualshelve.shelfname | html%]</option>
34                                                     [% END %]
35                                                 </optgroup>[% END %]
36                                                 [% IF ( publicvirtualshelves ) %]<optgroup label="Public Lists">
37                                                     [% FOREACH publicvirtualshelve IN publicvirtualshelves %]
38                                                     <option value="[% publicvirtualshelve.shelfnumber %]">[% publicvirtualshelve.shelfname |html%]</option>
39                                                     [% END %]
40                                                 </optgroup>[% END %]
41                                             </select>
42                                             [% FOREACH biblio IN biblios %]
43                                                 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />
44                                             [% END %]
45                                             <input type="hidden" name="modifyshelfcontents" value="1" />
46                                         </fieldset>
47                                         <fieldset class="action">
48                                             <input type="submit" value="Save" class="btn" />
49                                             <a class="close cancel" href="#">Cancel</a>
50                                         </fieldset>
51                                     </form>
52                                     <p>...or...</p>
53                                 [% ELSE %]
54                                     [% IF ( singleshelf ) %]
55                                         <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
56                                             [% FOREACH biblio IN biblios %]
57                                                 <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]">
58                                             [% END %]
59                                             <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
60                                             <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
61                                             <fieldset class="action">
62                                                 <input type="submit" value="Save" class="btn" />
63                                                 <a class="close cancel" href="#">Cancel</a>
64                                             </fieldset>
65                                         </form>
66                                     [% END %]
67                                 [% END # IF / existingshelves %]
68                             [% END # / UNLESS newshelf %]
69
70                             [% UNLESS ( singleshelf ) %]
71                                 <form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
72                                     <fieldset>
73                                         <legend>Add to a new list:</legend>
74                                             <label for="newvirtualshelf">List name:</label>
75                                             <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
76                                             <label for="category">Category:</label>
77                                             <select name="category" id="category">
78                                                 <option value="1">Private</option>
79                                                 [% IF (OpacAllowPublicListCreation) %]
80                                                     <option value="2">Public</option>
81                                                 [% END %]
82                                             </select>
83                                     </fieldset>
84                                     [% FOREACH biblio IN biblios %]
85                                         <input type="hidden" name="biblionumber" value="[% biblio.biblionumber | html%]" />
86                                     [% END %]
87                                     <fieldset class="action">
88                                         <input type="submit" value="Save" class="btn" />
89                                         <a class="close cancel" href="#">Cancel</a>
90                                     </fieldset>
91                                 </form>
92                             [% END # / UNLESS singleshelf %]
93                         [% ELSE %]
94                             <p>
95                                 [% IF (errcode==1) %]
96                                     Could not create new list. Please check if the name is unique.
97                                 [% ELSE %]
98                                     Sorry, you cannot add items to this list.
99                                 [% END %]
100                             </p>
101                         [% END # IF authorized %]
102                         <p><a href="#" class="close">Close this window.</a></p>
103                     </div> <!-- / #useraddbybiblionumber -->
104                 </div> <!-- / .span12 -->
105             </div> <!-- / .row-fluid -->
106         </div> <!-- / .container-fluid -->
107     </div> <!-- / .main -->
108
109 [% INCLUDE 'opac-bottom.inc' is_popup=1 %]
110 [% BLOCK jsinclude %][% END %]