[Koha-patches] [PATCH] 2563 - could not input into marc 008, fields 7-10 and 11-14

Galen Charlton galen.charlton at liblime.com
Tue Nov 4 22:43:11 CET 2008


Hi John,

This needs a bit more to guard against user error when entering a date:

On Mon, Oct 27, 2008 at 12:40 PM, John Beppu <john.beppu at liblime.com> wrote:
> +                       // bug 2563 {
> +                       ( document.f_pop.f710.value.match(/^\s*$/)  ? "    " : document.f_pop.f710.value  )+
> +                       ( document.f_pop.f1114.value.match(/^\s*$/) ? "    " : document.f_pop.f1114.value )+
> +                       // }

The problem here is that the 008/07-10 and 008/11-14 need to be
exactly for characters long, and if a user doesn't enter enough
characters, the entire field will fall short of its proper length of
40 characters.  The JavaScript should at least pad short input for
these two fields with spaces on the right.

Regards,

Galen
-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list