Bug 19322: Typo in UNIMARC field 140 plugin
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_225a.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3     <title>UNIMARC field 225a builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="cat_unimarc_field_225a" class="cat" style="padding:1em;">
8 <h3>UNIMARC field 225a builder</h3>
9     <div id="mainbloc">
10         <form name="f_pop" onsubmit="report()" action="">
11             <h2 class="authority">Collection</h2>
12             <p><label>Select a collection</label>
13                 <select name="f1" id="f1" size="1">
14                 [% FOREACH value IN collection.values %]
15                   [% IF ( value == collection.default ) %]
16                     <option value="[% value | html %]" selected="selected">[% value | html %]</option>
17                   [% ELSE %]
18                     <option value="[% value | html %]">[% value | html %]</option>
19                   [% END %]
20                 [% END %]
21                 </select>
22             </p>
23             OR new collection: <input type="text" value="" name="f2"/>
24             <br/>
25             <input type="submit" value="OK" class="button authority" />
26         </form>
27     </div>
28
29
30 [% MACRO jsinclude BLOCK %]
31     <script type="text/javascript">
32         function report() {
33             var doc   = opener.document;
34             var field = doc.getElementById("[% index | html %]");
35             field.value = document.f_pop.f2.value || document.f_pop.f1.value;
36             window.close();
37             return false;
38         }
39     </script>
40 [% END %]
41
42 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]