Koha/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/addbybiblionumber.tt
2011-04-10 20:38:30 +12:00

87 lines
3 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Add to List</title>
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">
#custom-doc { width:34.62em;*width:33.78em;min-width:450px; margin:auto; margin-top: .4em;text-align:left; }
</style>
</head>
<body>
<div id="custom-doc" class="yui-t7">
<div id="bd">
[% IF ( multiple ) %]
<h1>Add [% total %] items to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>: [% ELSE %]a list:[% END %]</h1>
[% ELSE %]
<h1>Add to [% IF ( singleshelf ) %]<em>[% shelfname %]</em>[% ELSE %]a list:[% END %]</h1>
[% END %]
<ul>
[% FOREACH biblio IN biblios %]
<li> <span class="title">[% biblio.title |html %]</span>
[% IF ( biblio.author ) %]<span class="author"> [% biblio.author %] </span>[% END %]
</li>
[% END %]
</ul>
<form name="f1" action="/cgi-bin/koha/virtualshelves/addbybiblionumber.pl" method="post">
[% FOREACH biblio IN biblios %] <input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
<input type="hidden" name="confirmed" value="1" />
[% IF ( shelfnumber ) %]<input type="hidden" name="shelfnumber" value="[% shelfnumber %]" />[% END %]
[% UNLESS ( shelfnumber ) %]
[% IF ( CGIvirtualshelves ) %] [% UNLESS ( newshelf ) %]
<fieldset class="rows">
<legend>Select an existing list</legend>
<ol>
<li><label>Choose list</label>[% CGIvirtualshelves %]</li>
</ol>
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
[% UNLESS ( biblionumbers ) %]
<input type="hidden" name="biblionumber" value="[% biblionumber %]" />
[% ELSE %]
<input type="hidden" name="biblionumbers" value="[% biblionumbers %]" />
[% END %]
</fieldset>
<p>... or...</p> [% END %]
[% END %]
<fieldset class="rows"><legend>Add to a new list:</legend>
<ol><li>
<label for="newvirtualshelf">
List name:
</label>
[% FOREACH biblio IN biblios %]<input type="hidden" name="biblionumber" value="[% biblio.biblionumber %]" />[% END %]
[% UNLESS ( biblionumbers ) %]
<input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
[% ELSE %]
<input type="hidden" name="biblionumbers" id="biblionumbers" value="[% biblionumbers %]" />
[% END %]
<input type="text" name="newvirtualshelf" id="newvirtualshelf" size="40" />
<input type="hidden" name="confirmed" value="1" />
</li>
<li>
<label for="category">Category:</label>
<select name="category" id="category">
<option value="1">Private</option>
<option value="2">Public</option>
<option value="3">Open</option>
</select>
</li></ol>
</fieldset>
[% END %]
<!-- SAVE -->
<fieldset class="action">
<input type="submit" value="Save" class="submit" /> <a class="close cancel" href="#">Cancel</a>
</fieldset>
</form>
<!-- /SAVE -->
</div>
[% INCLUDE 'intranet-bottom.inc' %]