Bug 30952: Staff interface redesign (header)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / linkitem.tt
1
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Link to host record &rsaquo; Cataloging &rsaquo; Koha</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="catalog_linkitem" class="catalog">
7 [% WRAPPER 'header.inc' %]
8     [% INCLUDE 'cat-search.inc' %]
9 [% END %]
10
11 [% WRAPPER 'sub-header.inc' %]
12 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
13     <ol>
14         <li>
15             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
16         </li>
17         <li>
18             <a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a>
19         </li>
20         <li>
21             <a href="#" aria-current="page">
22                 Link a host record to <em>[% bibliotitle | html %]</em>
23             </a>
24         </li>
25     </ol>
26 </nav>
27 [% END %]
28
29 <div class="container-fluid">
30     <div class="row">
31         <div class="col-sm-6 col-sm-offset-3 col-md-6 col-md-offset-3">
32
33             <h1>Link a host record to [% bibliotitle | html %]</h1>
34
35 [% IF ( error ) %]
36     <div class="dialog alert">
37         [% IF ( errornomodbiblio ) %]ERROR: Unable to modify the bibliographic record.[% END %]
38         [% IF ( errornohostitemnumber ) %]ERROR: Unable to get the item number from this barcode.[% END %]
39     </div>
40     <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
41         <input type="submit" value="OK" />
42         <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
43     </form>
44 [% ELSE %]
45     [% IF ( success ) %]
46     <div class="dialog message">The item has successfully been linked to <em>[% bibliotitle | html %]</em>.</div>
47         <form action="/cgi-bin/koha/catalogue/MARCdetail.pl" method="post">
48             <input type="submit" value="OK" />
49             <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
50         </form>
51     [% ELSE %]
52         [% IF ( missingparameter ) %]
53         <form method="post" action="/cgi-bin/koha/cataloguing/linkitem.pl">
54             [% IF ( missingbiblionumber ) %]
55             <fieldset id="biblionumber_fieldset">
56                 <label for="biblionumber_fieldset">Select the biblionumber to link the item to</label>
57                     <div class="hint">Enter biblionumber:</div>
58                     <input type="text" name="biblionumber" id="biblionumber" class="focus" size="14" /> 
59             </fieldset>
60             [% ELSE %]
61             <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
62             [% END %]
63
64             [% IF ( missingbarcode ) %]
65             <fieldset id="barcode_fieldset">
66         <label for="barcode_fieldset">
67             [% IF (bibliotitle ) %]
68                 <span>Select the host record to link to '[% bibliotitle | html %]'</span>
69             [% ELSE %]
70                 <span>Select the host record to link</span>
71             [% END %]
72         </label>
73                     <div class="hint">Enter item barcode:</div>
74                     <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> 
75             </fieldset>
76             [% ELSE %]
77             <input type="hidden" name="barcode" id="barcode" value="[% barcode | html %]" />
78             [% END %]
79
80             <input type="submit" value="Select" />
81
82         </form>
83         [% END %]
84     [% END %]
85 [% END %]
86 [% INCLUDE 'intranet-bottom.inc' %]