Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / moveitem.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Attach an item to [% bibliotitle |html %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'cat-search.inc' %]
8 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/cataloging/addbooks.pl">Cataloging</a>  &rsaquo; Attach an item to <i>[% bibliotitle |html %]</i></div>
9 <div id="doc" class="yui-t7">
10
11 [% IF ( error ) %]
12     <div class="dialog alert">
13         [% IF ( errornonewitem ) %]ERROR: Unable to create the new item.[% END %]
14         [% IF ( errornoitem ) %]ERROR: Unable to get the item.[% END %]
15         [% IF ( errornoitemnumber ) %]ERROR: Unable to get the item number from this barcode.[% END %]
16     </div>
17     <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
18         <input type="submit" value="OK" />
19         <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
20     </form>
21 [% ELSE %]
22     [% IF ( success ) %]
23         <div class="dialog message">The item has successfully been attached to [% INCLUDE 'biblio-default-view.inc' %]<i>[% bibliotitle |html %]</i></a>.[% IF ( BiblioDefaultViewmarc ) %]
24         <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
25 [% ELSIF ( BiblioDefaultViewlabeled_marc ) %]
26         <form action="/cgi-bin/koha/catalogue/labeledMARCdetail.pl" method="post">
27 [% ELSIF ( BiblioDefaultViewisbd ) %]
28         <form action="/cgi-bin/koha/catalogue/ISBDdetail.pl" method="post">
29 [% ELSE %]
30         <form action="/cgi-bin/koha/catalogue/detail.pl" method="post">
31 [% END %]
32             <input type="submit"  class="approve" value="OK" />
33             <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
34         </form></div>
35
36     [% ELSE %]
37         [% IF ( missingparameter ) %]
38         <form method="post" action="/cgi-bin/koha/cataloguing/moveitem.pl">
39             [% IF ( missingbiblionumber ) %]
40             <fieldset id="biblionumber_fieldset">
41                 <label for="biblionumber">Select the biblionumber to attach the item to</label>
42                     <div class="hint">Enter biblionumber:</div>
43                     <input type="text" name="biblionumber" id="biblionumber" class="focus" size="14" />
44                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
45             </fieldset>
46             [% ELSE %]
47             <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
48             [% END %]
49
50                 [% IF ( missingbarcode ) %]
51                 <h3>Attach an item[% IF ( bibliotitle ) %] to <i>[% bibliotitle |html %]</i>[% END %]</h3>
52             <fieldset id="barcode_fieldset">
53                 <label for="barcode">Enter the barcode of the item to attach:</label>
54                     <p class="hint">The item you select will be moved to the target record.</p>
55                     <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
56                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
57             </fieldset>
58             [% ELSE %]
59             <input type="hidden" name="barcode" id="barcode" value="[% barcode %]" />
60             [% END %]
61
62         </form>
63         [% END %]
64     [% END %]
65 [% END %]
66 [% INCLUDE 'intranet-bottom.inc' %]