36cd768000f880382607e9ccaa35974488982941
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_123a.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 123a builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6 <body id="cat_unimarc_field_123a" class="cat" style="padding:1em;">
7 <h3>UNIMARC field 123a builder</h3>
8 <form name="f_pop" action="">
9 <table>
10         <tr>
11         <td><label for="f1">Type of scale:</label></td>
12                 <td>
13                         <select name="f1" id="f1" size="1">
14                         [% IF ( f1a ) %]
15                                 <option value="a" selected="selected">linear scale</option>
16                         [% ELSE %]
17                                 <option value="a">linear scale</option>
18                         [% END %]
19                         [% IF ( f1b ) %]
20                                 <option value="b" selected="selected">angular scale</option>
21                         [% ELSE %]
22                                 <option value="b">angular scale</option>
23                         [% END %]
24                         [% IF ( f1z ) %]
25                                 <option value="z" selected="selected">other type of scale (e.g., time scale, quantitative statistical scale)</option>
26                         [% ELSE %]
27                                 <option value="z">other type of scale (e.g., time scale, quantitative statistical scale)</option>
28                         [% END %]
29                         </select>
30                 </td></tr>
31 </table>
32 <fieldset class="action"><input type="button" value="OK" onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
33 </form>
34
35 [% MACRO jsinclude BLOCK %]
36     <script type="text/javascript">
37         function report() {
38             var doc   = opener.document;
39             var field = doc.getElementById("[% index | html %]");
40             field.value =  document.f_pop.f1.value;
41             self.close();
42             return false;
43         }
44     </script>
45 [% END %]
46
47 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]