Merge remote-tracking branch 'kc/new/bug_5616' into kcmaster
[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 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>[% collection %]</p>
11             OR new collection: <input type="text" value="" name="f2"/>
12             <br/>
13             <input type="submit" value="OK" class="button authority" />
14         </form>
15     </div>
16     
17 <script type="text/javascript">
18 //<![CDATA[
19 function report() {
20             var doc   = opener.document; 
21             var field = doc.getElementById("[% index %]");
22             field.value = document.f_pop.f2.value || document.f_pop.f1.value;
23             window.close();
24             return false;
25         }
26     //]]>
27 </script>
28
29 [% INCLUDE 'popup-bottom.inc' %]