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