Bug 14321: Integrate Upload.pm into Koha
[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 id="catalog_moveitem" class="catalog">
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/cataloguing/addbooks.pl">Cataloging</a>  &rsaquo; Attach an item to <i>[% bibliotitle |html %][% IF ( itemsloo.subtitle ) %][% itemsloo.subtitle %][% END %]</i></div>
9 <div id="doc" class="yui-t7">
10
11 [% BLOCK actions %]
12                         [% IF ( BiblioDefaultViewmarc ) %]
13                              <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
14                         [% ELSIF ( BiblioDefaultViewlabeled_marc ) %]
15                              <form action="/cgi-bin/koha/catalogue/labeledMARCdetail.pl" method="post">
16                         [% ELSIF ( BiblioDefaultViewisbd ) %]
17                              <form action="/cgi-bin/koha/catalogue/ISBDdetail.pl" method="post">
18                         [% ELSE %]
19                              <form action="/cgi-bin/koha/catalogue/detail.pl" method="post">
20                         [% END %]
21 [% END %]
22
23 [% BLOCK fail %]
24                                 <input type="submit" class="approve" value="OK" />
25                                 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
26                         </form>
27                                 <form method="get" action="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]">
28                                 <input type="submit" class="new" value="Try again with a different barcode"/>
29                                 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
30                         </form>
31 [% END %]
32
33 [% IF ( error ) %]
34     <div class="dialog alert">
35
36                 [% IF ( errornonewitem ) %]ERROR: Unable to create the new item.<p>
37                         [% INCLUDE actions %]
38                         [% INCLUDE fail %]
39                 [% END %]
40
41                 [% IF ( errornoitem ) %]ERROR: Unable to get the item.<p>
42                         [% INCLUDE actions %]
43                         [% INCLUDE fail %]
44                 [% END %]
45
46                 [% IF ( errornoitemnumber ) %]ERROR: Unable to get the item number from this barcode.<p>
47                         [% INCLUDE actions %]
48                         [% INCLUDE fail %]
49                 [% END %]
50                 </p>
51     </div>
52
53         [% ELSE %]
54             [% IF ( success ) %]
55                         <div class="dialog message">The item has successfully been attached to [% INCLUDE 'biblio-default-view.inc' %]<i>[% bibliotitle |html %]</i></a>.
56                         <p>
57                         [% INCLUDE actions %]
58                                 <input type="submit" class="approve" value="OK" />
59                                 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
60                         </form>
61                                 <form method="get" action="/cgi-bin/koha/cataloguing/moveitem.pl?biblionumber=[% biblionumber %]"/>
62                                 <input type="submit" class="new" value="Attach another item"/>
63                                 <input type="hidden" name="biblionumber" value="[% biblionumber %]" />
64                         </form>
65                         </p>
66                         </div>
67     [% ELSE %]
68         [% IF ( missingparameter ) %]
69         <form method="post" action="/cgi-bin/koha/cataloguing/moveitem.pl">
70             [% IF ( missingbiblionumber ) %]
71             <fieldset id="biblionumber_fieldset">
72                 <label for="biblionumber">Select the biblionumber to attach the item to</label>
73                         <div class="hint">Enter biblionumber:</div>
74                     <input type="text" name="biblionumber" id="biblionumber" class="focus" size="14" />
75                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
76             </fieldset>
77             [% ELSE %]
78             <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber %]" />
79             [% END %]
80
81                 [% IF ( missingbarcode ) %]
82                 <h3>Attach an item[% IF ( bibliotitle ) %] to <i>[% bibliotitle |html %]</i>[% END %]</h3>
83             <fieldset id="barcode_fieldset">
84                 <label for="barcode">Enter the barcode of the item to attach:</label>
85                     <p class="hint">The item you select will be moved to the target record.</p>
86                     <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
87                     <fieldset class="action"><input type="submit" value="Submit" /></fieldset>
88             </fieldset>
89             [% ELSE %]
90             <input type="hidden" name="barcode" id="barcode" value="[% barcode %]" />
91             [% END %]
92
93         </form>
94         [% END %]
95     [% END %]
96 [% END %]
97 [% INCLUDE 'intranet-bottom.inc' %]