bug 2567: let 008/15-17 and 008/24-27 be set
authorGalen Charlton <gmcharlt@gmail.com>
Mon, 25 Oct 2010 14:16:19 +0000 (10:16 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 31 Oct 2010 02:41:22 +0000 (15:41 +1300)
Fixes bug where the MARC21 008 plugin was falsely
claiming that it set the illustration and nature of
contents positions by deriving it from other fields
in the bib records.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tmpl

index e3ca98a..5d926ed 100644 (file)
         </tr>
         <tr>
                 <td><label for="f1821">18-21 Illustrations</label> </td>
-               <td>(auto-filled from 300)<input type="hidden" name="f1821" id="f1821" size="4"  maxlength="4" value="<!-- TMPL_VAR NAME="f1821" -->"/></td>
+               <td><input type="text" name="f1821" id="f1821" size="4"  maxlength="4" value="<!-- TMPL_VAR NAME="f1821" -->"/></td>
         </tr>
        <tr>
                 <!-- 22 Target Audience -->
        </tr>
        <tr>
                 <td><label for="f2427">24-27 Nature of contents</label> </td>
-                <td>(Derived value)
-                        <input type="hidden" name="f2427" id="f2427" size="4" maxlength="4" value="<!-- TMPL_VAR NAME="f2427" -->"/>                </td>
+                <td>
+                        <input type="text" name="f2427" id="f2427" size="4" maxlength="4" value="<!-- TMPL_VAR NAME="f2427" -->"/>                </td>
         </tr>
         <tr>
                 <td><label for="f28">28- Government Publication</label></td>
@@ -636,10 +636,10 @@ function report() {
                        // }
                        //MR
                        (document.f_pop.f1517.value+"   ").substr(0,3)+
-                       document.f_pop.f1821.value+
+                       (document.f_pop.f1821.value+"    ").substr(0,4)+
                        document.f_pop.f22.value+
                        document.f_pop.f23.value+
-                       document.f_pop.f2427.value+
+                       (document.f_pop.f2427.value+"    ").substr(0,4)+
                        document.f_pop.f28.value+
                        document.f_pop.f29.value+
                        document.f_pop.f30.value+
@@ -656,4 +656,4 @@ function report() {
        //]]>
 </script>
 
-<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->
\ No newline at end of file
+<!-- TMPL_INCLUDE NAME="popup-bottom.inc" -->