Bug 13618: Add html filters to all the variables
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_106.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 106 builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="cat_unimarc_field_106" class="cat" style="padding:1em;">
8 <h3>UNIMARC field 106 builder</h3>
9 <form name="f_pop" action="">
10 <table>
11         <tr>
12         <td><label for="f1">Form of item: Coded data: Medium designator (not repeatable)</label></td>
13                 <td>
14                         <select name="f1" id="f1" size="1">
15             
16                         [% IF ( f1r ) %]
17                                 <option value="r" selected="selected">regular print</option>
18                         [% ELSE %]
19                                 <option value="r">regular print</option>
20                         [% END %]
21                         [% IF ( f1b ) %]
22                                 <option value="d" selected="selected">large print</option>
23                         [% ELSE %]
24                                 <option value="d">large print</option>
25                         [% END %]
26                         [% IF ( f1e ) %]
27                                 <option value="e" selected="selected">newspaper format</option>
28                         [% ELSE %]
29                                 <option value="e">newspaper format</option>
30                         [% END %]
31
32                         [% IF ( f1f ) %]
33                                 <option value="f" selected="selected">Braille or Moon script</option>
34                         [% ELSE %]
35                                 <option value="f">Braille or Moon script</option>
36         
37                         [% END %]
38                         [% IF ( f1g ) %]
39                                 <option value="g" selected="selected">microprint</option>
40                         [% ELSE %]
41                                 <option value="g">microprint</option>
42         
43                         [% END %]
44                         [% IF ( f1h ) %]
45                                 <option value="h" selected="selected">handwritten</option>
46                         [% ELSE %]
47                                 <option value="h">handwritten</option>
48         
49                         [% END %]
50                         [% IF ( f1i ) %]
51                                 <option value="i" selected="selected">multimedia (e.g. an item in regular print with a microfiche
52 supplement)</option>
53                         [% ELSE %]
54                                 <option value="i">multimedia (e.g. an item in regular print with a microfiche
55 supplement)</option>
56         
57                         [% END %]
58                         [% IF ( f1j ) %]
59                                 <option value="j" selected="selected">mini-print</option>
60                         [% ELSE %]
61                                 <option value="j">mini-print</option>
62                                 
63                         [% END %]
64                         [% IF ( f1s ) %]
65                                 <option value="s" selected="selected">electronic</option>
66                         [% ELSE %]
67                                 <option value="s">electronic</option>
68                                 
69                         [% END %]
70                         [% IF ( f1t ) %]
71                                 <option value="t" selected="selected">microform</option>
72                         [% ELSE %]
73                                 <option value="t">microform</option>
74         
75                         [% END %]
76                         [% IF ( f1z ) %]
77                                 <option value="z" selected="selected">other form of material</option>
78                         [% ELSE %]
79                                 <option value="z">other form of material</option>
80         
81                         [% END %]
82                         </select>
83                 </td>
84         </tr>
85 </table>
86 <fieldset class="action"><input type="button" value="OK"  onclick="report();" /> <a href="#" class="cancel close">Cancel</a></fieldset>
87 </form>
88
89 [% MACRO jsinclude BLOCK %]
90     <script type="text/javascript">
91         function report() {
92             var doc   = opener.document;
93             var field = doc.getElementById("[% index | html %]");
94
95             field.value = document.f_pop.f1.value;
96             self.close();
97             return false;
98         }
99     </script>
100 [% END %]
101
102 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]