[Koha-patches] [PATCH] bug 2567: let 008/15-17 and 008/24-27 be set

Galen Charlton gmcharlt at gmail.com
Mon Oct 25 16:16:19 CEST 2010


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 at gmail.com>
---
 .../value_builder/marc21_field_008.tmpl            |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tmpl
index e3ca98a..5d926ed 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_008.tmpl
@@ -131,7 +131,7 @@
         </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 -->
@@ -264,8 +264,8 @@
 	</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" -->
-- 
1.7.0



More information about the Koha-patches mailing list