From 4652b4dbc6b5ed22bc7ae273086772f1c1e31eea Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 2 Jul 2008 19:48:01 +0200 Subject: [PATCH] BUGFIX : unimarc leader is 24, not 25. Fixing the javascript test Signed-off-by: Joshua Ferraro --- cataloguing/value_builder/unimarc_leader.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cataloguing/value_builder/unimarc_leader.pl b/cataloguing/value_builder/unimarc_leader.pl index b1c598e5d1..260f560e62 100755 --- a/cataloguing/value_builder/unimarc_leader.pl +++ b/cataloguing/value_builder/unimarc_leader.pl @@ -47,9 +47,9 @@ return 1; } function Blur$function_name(subfield_managed) { - var leader_lenght = document.getElementById(\"$field_number\").value.length; - if (leader_lenght != 25) { - alert(_('leader has an incorrect size: ' + leader_lenght + ' instead of 25 chars')); + var leader_length = document.getElementById(\"$field_number\").value.length; + if (leader_length != 24 && leader_length !=0) { + alert(_('leader has an incorrect size: ' + leader_length + ' instead of 24 chars')); } return 1; } -- 2.39.5