Bug 30506: Value builder for field 182
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_182-2.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Framework plugin example &rsaquo; Cataloguing &rsaquo; Koha</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5
6 <body id="cat_unimarc_field_182-2" class="cat" style="padding:1em;">
7
8 <h3>UNIMARC field 182-2 builder</h3>
9
10 <form name="f_pop" action="">
11 <table>
12     <tr>
13         <td><label for="f0">System code :</label></td>
14         <td>
15             <select name="f0" id="f0">
16                 [% IF ( f0 == "carr" ) %]
17                     <option value="RDAcarrier" selected="selected">RDA Carrier</option>
18                 [% ELSE %]
19                     <option value="RDAcarrier">RDA Carrier</option>
20                 [% END %]
21
22                 [% IF ( f0 == "cont" ) %]
23                     <option value="RDAcontent" selected="selected">RDA Content</option>
24                 [% ELSE %]
25                     <option value="RDAcontent">RDA Content</option>
26                 [% END %]
27
28                 [% IF ( f0 == "media" ) %]
29                     <option value="RDAmedia" selected="selected">RDA Media</option>
30                 [% ELSE %]
31                     <option value="RDAmedia">RDA Media</option>
32                 [% END %]
33
34                 [% IF ( f0 == "frcarr" ) %]
35                     <option value="RDAfrCarrier" selected="selected">RDA fr Carrier</option>
36                 [% ELSE %]
37                     <option value="RDAfrCarrier">RDA fr Carrier</option>
38                 [% END %]
39             </select>
40         </td>
41     </tr>
42 </table>
43 <p><input type="button" value="OK"  onclick="submitMyForm();" /> <a href="#" class="cancel close">Cancel</a> </p>
44 </form>
45
46 <script>
47
48     function submitMyForm() {
49         var doc   = opener.document;
50         var field = doc.getElementById("[% index | html %]");
51
52         field.value = document.f_pop.f0.value;
53         window.close();
54         return false;
55     }
56 </script>
57
58 [% INCLUDE 'popup-bottom.inc' %]