[Koha-devel] RFC on ISBN sanitisations, was: [Koha-patches] [PATCH] Bugfix ShelfBrowser using unsanitized ISBNs. Owen reported the

Joe Atzberger joe.atzberger at liblime.com
Thu May 15 18:20:24 CEST 2008


MJ --

"Should this be moved into C4 somewhere?"

My commit message for that piece concluded:
Next we should move the sanitize function into C4 for widespread consumption
and consistency.

Short answer: yes!

--Joe

On Wed, May 14, 2008 at 2:01 PM, Galen Charlton <galen.charlton at liblime.com>
wrote:

> Hi,
>
> On Wed, May 14, 2008 at 12:32 PM, MJ Ray <mjr at phonecoop.coop> wrote:
> > Joe Atzberger <joe.atzberger at liblime.com> wrote: [...]
> >  > +++ b/opac/opac-detail.pl
> >  [...]
> >  > +sub isbn_cleanup ($) {
> [snip]
> >  Should this be moved into C4 somewhere, expanded to strip non-[0-9X]s
> >  and convert UPC barcodes into ISBNs (for barcode wedge users during
> >  cataloguing) before checking, and used more widely?
>
> Yes, I think this should be moved to C4.  I've been noodling around
> with the notion of creating a C4::Normalize or the like to centralize
> these kinds of normalizations (as ISSNs, LC card numbers, OCLC
> numbers, etc. could benefit from this as well), but haven't done
> anything yet.
>
> Regards,
>
> Galen
> --
> Galen Charlton
> Koha Application Developer
> LibLime
> galen.charlton at liblime.com
> p: 1-888-564-2457 x709
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20080515/07b6988e/attachment-0002.htm>


More information about the Koha-devel mailing list