bug 3209: add 'p' (mixed materials) to MARC21 Leader/06 dropdown
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / cataloguing / value_builder / marc21_leader.tmpl
index d3f5244..bd63397 100644 (file)
@@ -1,13 +1,10 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<html>
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-<title>Leader_builder</title>
+<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
+<title>Koha &rsaquo; Cataloging &rsaquo; Leader builder</title>
+<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
 </head>
 <body>
-<form name="f_pop">
+<form name="f_pop" onsubmit="javascript:report()" action="#">
+<input type="hidden" name="plugin_name" value="marc21_leader.pl" />
 <table>
        <tr>
                <td>1-4 Record size</td>
@@ -51,9 +48,9 @@
                <td>
                        <select name="f6" size="1">
                        <!-- TMPL_IF name="f6a" -->
-                               <option value="a" selected="selected">a- Language material (monography)</option>
+                               <option value="a" selected="selected">a- Language material</option>
                        <!-- TMPL_ELSE -->
-                               <option value="a">a- Language material (monography)</option>
+                               <option value="a">a- Language material</option>
                        <!-- /TMPL_IF -->
                        <!-- TMPL_IF name="f6c" -->
                                <option value="c" selected="selected">c- Notated music</option>
                        <!-- TMPL_ELSE -->
                                <option value="o">o - Kit</option>
                        <!-- /TMPL_IF -->
+                       <!-- TMPL_IF name="f6p" -->
+                               <option value="p" selected="selected">p - Mixed materials</option>
+                       <!-- TMPL_ELSE -->
+                               <option value="p">p - Mixed materials</option>
+                       <!-- /TMPL_IF -->
                        <!-- TMPL_IF name="f6r" -->
                                <option value="r" selected="selected">r - Three-dimensional artifact or naturally occurring object</option>
                        <!-- TMPL_ELSE -->
        </tr>
        
        <tr>
-               <td>8- Hierarchic level</td>
+               <td>8- Type of control</td>
                <td>
                        <select name="f8" size="1">
                                <!-- TMPL_IF name="f8 " -->
        </tr>
 
        <tr>
-               <td>9- Encoding</td>
-               <td>
-                       <select name="f9" size="1">
-                               <!-- TMPL_IF name="f9 " -->
-                                       <option value=" " selected="selected">MARC-8</option>
-                               <!-- TMPL_ELSE -->
-                                       <option value=" ">MARC-8</option>
-                               <!-- /TMPL_IF -->
-                               <!-- TMPL_IF name="f9a" -->
-                                       <option value="a" selected="selected">a- UCS/Unicode</option>
-                               <!-- TMPL_ELSE -->
-                                       <option value="a">a- UCS/Unicode</option>
-                               <!-- /TMPL_IF -->
-                       </select>
-               </td>
+               <td>9- Character coding scheme</td>
+               <td>a - UCS/Unicode (auto-filled)</td>
        </tr>
        <tr>
                <td>10-16 indicator/subfields/size</td>
                <td>(auto-filled)</td>
-       <tr>
-               <td>17- Encoding</td>
+    </tr>
+    <tr>
+               <td>17- Encoding level</td>
                <td>
                        <select name="f17" size="1">
                                <!-- TMPL_IF name="f17 " -->
                                <!-- TMPL_IF name="f17z" -->
                                        <option value="z" selected="selected">z- Not applicable</option>
                                <!-- TMPL_ELSE -->
-                                       <option value="z">z- Not applicableFull level</option>
+                                       <option value="z">z- Not applicable</option>
                                <!-- /TMPL_IF -->
                        </select>
                </td>
        </tr>
        
        <tr>
-               <td>19 - Linked record requirement</td>
+               <td>19 - Multipart resource record level</td>
                <td>
                        <select name="f19" size="1">
                                <!-- TMPL_IF name="f19 " -->
-                                       <option value=" " selected="selected">Related record not required</option>
+<<<<<<< HEAD:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tmpl
+                                       <option value=" " selected="selected">Not specified or not applicable </option>
+=======
+                                       <option value=" " SELECTED>Not specified or not applicable </option>
+>>>>>>> 2de58fc... bug 3209: add 'p' (mixed materials) to MARC21 Leader/06 dropdown:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tmpl
                                <!-- TMPL_ELSE -->
-                                       <option value=" ">Related record not required</option>
+                                       <option value=" ">Not specified or not applicable</option>
                                <!-- /TMPL_IF -->
-                               <!-- TMPL_IF name="f18r" -->
-                                       <option value="r" selected="selected">r- Related record required</option>
+                               <!-- TMPL_IF name="f19a" -->
+<<<<<<< HEAD:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tmpl
+                                       <option value="a" selected="selected">a- Set</option>
                                <!-- TMPL_ELSE -->
-                                       <option value="r">r- Related record required</option>
+                                       <option value="a">a- Set</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="f19b" -->
+                                       <option value="b" selected="selected">b- Part with independent title</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="b">b- Part with independent title</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="f19c" -->
+                                       <option value="c" selected="selected">c- Part with dependent title</option>
+                               <!-- TMPL_ELSE -->
+=======
+                                       <option value="a" SELECTED>a- Set</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="a">a- Set</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="f19b" -->
+                                       <option value="b" SELECTED>b- Part with independent title</option>
+                               <!-- TMPL_ELSE -->
+                                       <option value="b">b- Part with independent title</option>
+                               <!-- /TMPL_IF -->
+                               <!-- TMPL_IF name="f19c" -->
+                                       <option value="c" SELECTED>c- Part with dependent title</option>
+                               <!-- TMPL_ELSE -->
+>>>>>>> 2de58fc... bug 3209: add 'p' (mixed materials) to MARC21 Leader/06 dropdown:koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_leader.tmpl
+                                       <option value="c">c- Part with dependent title</option>
                                <!-- /TMPL_IF -->
                        </select>
                </td>
        </tr>
        <tr>
-               <td>20-24 entry map and lengths</td>
+               <td>20-24 entry map &amp; lengths</td>
                <td>(auto-filled)</td>
-       <tr>
+       </tr>
 
-       <tr><td colspan="2"><input type="button" value="OK"  onclick="report();" /></td></tr>
+       <tr><td colspan="2"><input type="submit" value="OK" /></td></tr>
 </table>
 </form>
-<script>
+<script type="text/javascript">
+//<![CDATA[
 function report() {
-               opener.document.f.field_value[<!-- TMPL_VAR name="index" -->].value = 
-                       '    '+document.f_pop.f5.value +
-                       document.f_pop.f6.value+ document.f_pop.f7.value+
-                       document.f_pop.f8.value+ document.f_pop.f9.value+ '       '+
-                       document.f_pop.f17.value+ document.f_pop.f18.value+ document.f_pop.f19.value+'     ';
+            var doc   = opener.document; 
+            var field = doc.getElementById("<!-- TMPL_VAR NAME='index'-->");
+        
+            field.value = 
+                       '     '+
+                       document.f_pop.f5.value+
+                       document.f_pop.f6.value+
+                       document.f_pop.f7.value+
+                       document.f_pop.f8.value+
+                       'a'+ // MARC21 UNICODE flag - must be 'a' for Koha
+                       '22     '+
+                       document.f_pop.f17.value+
+                       document.f_pop.f18.value+
+                       document.f_pop.f19.value+
+                       '4500';
                self.close();
                return false;
        }
+//]]>
 </script>
-</body>
-</html>
+<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->