Bug 34478: Manual fix - additem
[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         [% INCLUDE 'csrf-token.inc' %]
41     <input type="submit" class="btn btn-primary" 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             [% INCLUDE 'csrf-token.inc' %]
49         <input type="submit" class="btn btn-primary" value="OK" />
50             <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
51         </form>
52     [% ELSE %]
53         [% IF ( missingparameter ) %]
54         <form method="post" action="/cgi-bin/koha/cataloguing/linkitem.pl">
55             [% INCLUDE 'csrf-token.inc' %]
56             [% IF ( missingbiblionumber ) %]
57             <fieldset id="biblionumber_fieldset">
58                 <label for="biblionumber_fieldset">Select the biblionumber to link the item to</label>
59                     <div class="hint">Enter biblionumber:</div>
60                     <input type="text" name="biblionumber" id="biblionumber" class="focus" size="14" /> 
61             </fieldset>
62             [% ELSE %]
63             <input type="hidden" name="biblionumber" id="biblionumber" value="[% biblionumber | html %]" />
64             [% END %]
65
66             [% IF ( missingbarcode ) %]
67             <fieldset id="barcode_fieldset">
68         <label for="barcode_fieldset">
69             [% IF (bibliotitle ) %]
70                 <span>Select the host record to link to '[% bibliotitle | html %]'</span>
71             [% ELSE %]
72                 <span>Select the host record to link</span>
73             [% END %]
74         </label>
75                     <div class="hint">Enter item barcode:</div>
76                     <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" /> 
77             </fieldset>
78             [% ELSE %]
79             <input type="hidden" name="barcode" id="barcode" value="[% barcode | html %]" />
80             [% END %]
81
82         <input type="submit" class="btn btn-primary" value="Select" />
83
84         </form>
85         [% END %]
86     [% END %]
87 [% END %]
88 [% INCLUDE 'intranet-bottom.inc' %]