Bug 31372: Value builder for field 325
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / unimarc_field_325h.tt
1 [%# ATTENTION c'est le contenu du fichier unimarc_field_181-2.tt %]
2
3
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Framework plugin example &rsaquo; Cataloguing &rsaquo; Koha</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 </head>
8
9 <body id="cat_unimarc_field_325h" class="cat" style="padding:1em;">
10
11 <h3>UNIMARC field 325h builder</h3>
12
13 <form name="f_pop" action="">
14 <table>
15     <tr>
16         <td><label for="f0">Completeness of the reproduction code :</label></td>
17         <td>
18             <select name="f0" id="f0">
19                 [% IF ( f0 == "" ) %]
20                     <option value=" " selected="selected"># - undetermined</option>
21                 [% ELSE %]
22                     <option value=" "># - undetermined</option>
23                 [% END %]
24
25                 [% IF ( f0 == "0" ) %]
26                     <option value="0" selected="selected">0 - reproduction is not complete</option>
27                 [% ELSE %]
28                     <option value="0">0 - reproduction is not complete</option>
29                 [% END %]
30
31                 [% IF ( f0 == "1" ) %]
32                     <option value="1" selected="selected">1 - reproduction is complete</option>
33                 [% ELSE %]
34                     <option value="1">1 - reproduction is complete</option>
35                 [% END %]
36             </select>
37         </td>
38     </tr>
39 </table>
40 <p><input type="button" value="OK"  onclick="submitMyForm();" /> <a href="#" class="cancel close">Cancel</a> </p>
41 </form>
42
43 <script>
44
45     function submitMyForm() {
46         var doc   = opener.document;
47         var field = doc.getElementById("[% index | html %]");
48
49         field.value = document.f_pop.f0.value;
50         window.close();
51         return false;
52     }
53 </script>