MARC21 authorities: fixed leader value builder
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / marc21_leader_authorities.tmpl
1 <html>
2 <head>
3 <title>Leader builder</title>
4 </head>
5 <body>
6 <form name="f_pop" onSubmit="javascript:report()">
7 <input type="hidden" name="plugin_name" value="marc21_leader_authorities.pl">
8 <table>
9         <tr>
10                 <td>1-4 Record size</td>
11                 <td>(auto-filled)</td>
12         </tr>
13         <tr>
14                 <td>5- Record status</td>
15                 <td>
16                         <select name="f5" size="1">
17                         <!-- TMPL_IF name="f5a" -->
18                                 <option value=" " SELECTED>a- Increase in encoding level</option>
19                         <!-- TMPL_ELSE -->
20                                 <option value=" ">a- Increase in encoding level</option>
21                         <!-- /TMPL_IF -->
22
23                         <!-- TMPL_IF name="f5c" -->
24                                 <option value="c" SELECTED>c- Corrected or revised</option>
25                         <!-- TMPL_ELSE -->
26                                 <option value="c">c- Corrected or revised</option>
27                         <!-- /TMPL_IF -->
28                         <!-- TMPL_IF name="f5d" -->
29                                 <option value="d" SELECTED>d- Deleted</option>
30                         <!-- TMPL_ELSE -->
31                                 <option value="d">d- Deleted</option>
32                         <!-- /TMPL_IF -->
33                         <!-- TMPL_IF name="f5n" -->
34                                 <option value="n" SELECTED>n- New</option>
35                         <!-- TMPL_ELSE -->
36                                 <option value="n">n- New</option>
37                         <!-- /TMPL_IF -->
38                         <!-- TMPL_IF name="f5o" -->
39                                 <option value="o" SELECTED>o- Obsolete</option>
40                         <!-- TMPL_ELSE -->
41                                 <option value="o">o- Obsolete</option>
42                         <!-- /TMPL_IF -->
43                         <!-- TMPL_IF name="f5s" -->
44                                 <option value="s" SELECTED>s- Deleted; heading split into two or more headings</option>
45                         <!-- TMPL_ELSE -->
46                                 <option value="s">s- Deleted; heading split into two or more headings</option>
47                         <!-- /TMPL_IF -->
48                         <!-- TMPL_IF name="f5x" -->
49                                 <option value="x" SELECTED>x- Deleted; heading replaced by another heading</option>
50                         <!-- TMPL_ELSE -->
51                                 <option value="x">x- Deleted; heading replaced by another heading</option>
52                         <!-- /TMPL_IF -->
53                         </select>
54                 </td>
55         </tr>
56         <tr>
57                 <td>6- Type of record</td>
58                 <td>
59             <input name="f6" value="z" type="hidden" />
60             z- Authority data
61                 </td>
62         </tr>
63         <tr>
64                 <td>7-8 Undefined</td>
65                 <td></td>
66         </tr>
67
68         <tr>
69                 <td>9- Encoding</td>
70                 <td>
71                         <select name="f9" size="1">
72                                 <!-- TMPL_IF name="f9 " -->
73                                         <option value=" " SELECTED>MARC-8</option>
74                                 <!-- TMPL_ELSE -->
75                                         <option value=" ">MARC-8</option>
76                                 <!-- /TMPL_IF -->
77                                 <!-- TMPL_IF name="f9a" -->
78                                         <option value="a" SELECTED>a- UCS/Unicode</option>
79                                 <!-- TMPL_ELSE -->
80                                         <option value="a">a- UCS/Unicode</option>
81                                 <!-- /TMPL_IF -->
82                         </select>
83                 </td>
84         </tr>
85         <tr>
86                 <td>10-16 indicator/subfields/size</td>
87                 <td>(auto-filled)</td>
88         <tr>
89                 <td>17- Encoding level</td>
90                 <td>
91                         <select name="f17" size="1">
92                                 <!-- TMPL_IF name="f17n" -->
93                                         <option value="n" SELECTED>n- Complete authority record</option>
94                                 <!-- TMPL_ELSE -->
95                                         <option value="n">n- Complete authority record</option>
96                                 <!-- /TMPL_IF -->
97                                 <!-- TMPL_IF name="f17o" -->
98                                         <option value="o" SELECTED>o- Incomplete authority record</option>
99                                 <!-- TMPL_ELSE -->
100                                         <option value="o">o- Incomplete authority record</option>
101                                 <!-- /TMPL_IF -->
102                         </select>
103                 </td>
104         </tr>
105
106         <tr>
107                 <td>18-19 Undefined</td>
108                 <td></td>
109         </tr>
110
111         <tr>
112                 <td>20-24 entry map & lengths</td>
113                 <td>(auto-filled)</td>
114         <tr>
115
116         <tr><td colspan=2><input type="submit" value="OK"></td></tr>
117 </table>
118 </form>
119 <script>
120 function report() {
121             var doc   = opener.document; 
122             var field = doc.getElementById("<!-- TMPL_VAR NAME='index'-->");
123         
124             field.value = 
125                         '     '+
126                         document.f_pop.f5.value+
127                         document.f_pop.f6.value+
128                         '  '+
129                         document.f_pop.f9.value+ 
130                         '22     '+
131                         document.f_pop.f17.value+
132                         '  '+
133                         '4500';
134                 self.close();
135                 return false;
136         }
137 </script>
138 </body>
139 </html>