Merge remote branch 'kc/master' into new/enh/bug_5917
[koha.git] / koha-tt / opac-tmpl / prog / en / modules / opac-addbybiblionumber.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 [% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Add to Your List
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="addtolist">
9 <div id="custom-doc" class="yui-t7">
10 <div id="useraddbybiblionumber" class="container">
11 [% IF ( authorized ) %]
12         [% UNLESS ( newshelf ) %]
13                 [% IF ( multiple ) %]
14                 <h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>: [% ELSE %]a list:[% END %]</h1>
15                 [% ELSE %]
16                         <h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>[% ELSE %]a list:[% END %]</h1>
17                 [% END %]
18         <ul>
19                 [% FOREACH biblio IN biblios %]
20                 <li> <span class="title">[% biblio.title |html %]</span>
21                 [% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
22                 </li>
23         [% END %]
24                 </ul>
25                 [% IF ( CGIvirtualshelves ) %]
26                         <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
27                 <fieldset class="rows"><legend>Select a List</legend>
28                         <ol><li>    <label for="shelfnumber">Add to list:</label> [% CGIvirtualshelves %]</li></ol>
29                         [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
30                 <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
31                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
32                         </form>
33                         <p>...or...</p>
34                 [% ELSE %]
35                         [% IF ( singleshelf ) %]
36                                 <form name="f1" action="/cgi-bin/koha/opac-addbybiblionumber.pl" method="post">
37                                 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]">[% END %]
38                                 <input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />
39                                 <input type="hidden" name="modifyshelfcontents" value="1" /></fieldset>
40                                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
41                                 </form>
42                         [% END %]
43                 [% END %]
44         [% END %]
45         [% UNLESS ( singleshelf ) %]<form name="f2" method="post" action="/cgi-bin/koha/opac-addbybiblionumber.pl">
46                 <fieldset class="rows">    <legend>Add to a New List:</legend>
47                 <ol><li>
48                 <label for="newvirtualshelf">
49                 List Name:
50                 </label>
51                 <input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
52                 </li>
53                 <li><label for="category">Category:</label>
54                 <select name="category" id="category">
55                 <option value="1">Private</option>
56                 <option value="2">Public</option>
57                 </select></li></ol></fieldset>
58                 [% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
59                 <fieldset class="action"><input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a></fieldset>
60                 </form>
61         [% END %]
62 [% ELSE %]
63         <p align="center">
64                 This is not an open list.
65                 Items cannot be added to it.
66         </p>
67 [% END %]
68 <p align="center">
69     <a href="#" class="close">Close this window.</a>
70 </p>
71 </div></div>
72 </body>
73 </html>