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