Bug 13618: Add html filters to all the variables
[koha_ffzg] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_700-4.tt
1 [% SET footerjs = 1 %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>UNIMARC field 700-4 builder</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 </head>
6
7 <body id="cat_unimarc_field_700-4" class="cat" style="padding:1em;">
8 <h3>UNIMARC field 700-4 builder</h3>
9 <p>Sélectionnez la valeur pour le champ 700 $4. Elle sera automatiquement reportée dans la zone 700 $8 qui suit.</p>
10 <form name="f_pop" onsubmit="report()" action="">
11 <table>
12         <tr>
13                 <td><label for="f1">Code date publication </label></td><td><select name="f1" id="f1" size="1">
14                         [% IF ( f1_075 ) %]
15                         <option value="075 - postface" selected="selected">postface</option>
16                         [% ELSE %]
17                         <option value="075 - postface">postface</option>
18                         [% END %]
19                         
20                         [% IF ( f1_651 ) %]
21                         <option value="651 - dir. de publication" selected="selected">dir. de publication</option>
22                         [% ELSE %]
23                         <option value="651 - dir. de publication">dir. de publication</option>
24                         [% END %]
25                         
26                          [% IF ( f1_440 ) %]
27                         <option value="440 - illustrateur" selected="selected">illustrateur</option>
28                         [% ELSE %]
29                         <option value="440 - illustrateur">illustrateur</option>
30                         [% END %]
31                         
32                         [% IF ( f1_080 ) %]
33                         <option value="080 - préface, notes" selected="selected">préface, notes</option>
34                         [% ELSE %]
35                         <option value="080 - préface, notes">préface, notes</option>
36                         [% END %]
37                         
38                         [% IF ( f1_730 ) %]
39                         <option value="730 - traducteur" selected="selected">traducteur</option>
40                         [% ELSE %]
41                         <option value="730 - traducteur">traducteur</option>
42                         [% END %]
43                         </select>
44                 </td>
45         </tr>
46 </table>
47 <fieldset class="action"><input type="submit" value="OK" /> <a href="#" class="cancel close">Cancel</a></fieldset>
48 </form>
49
50 [% MACRO jsinclude BLOCK %]
51     <script type="text/javascript">
52         function report() {
53             x = document.f_pop.f1.value.split(' - ');
54             var doc   = opener.document;
55             var field = doc.getElementById("[% index | html %]");
56
57             field.value =  x[0];
58             if ([% index2 | html %] > 0) {
59                 opener.document.f.field_value[[% index2 | html %]].value= x[1];
60             }
61             self.close();
62             return false;
63         }
64     </script>
65 [% END %]
66
67 [% INCLUDE 'intranet-bottom.inc' popup_window=1 %]