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