[Koha-bugs] [Bug 6590] Removing hyphens from isbn and issn when cataloging a biblio

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 15 23:25:01 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6590

--- Comment #4 from Juan Romay Sieira <juan.sieira at xercode.es> 2011-07-15 21:25:01 UTC ---
(In reply to comment #2)
> I don't agree with this patch.
> 
> 1) It doesn't handle multiple ISBN. In UNIMARC biblio record, you can
>    repeat 010 field. With this patch, the first ISBN is 'normalized'.
>    The followings are kept as they are.
> 
> 2) This line doesn't sound good:
> 
>    $operand =~ s/-//g if (C4::Context->preference("IsbnIssnRemoveHyphens"));
> 
>    '-' doesn't have the same meaning depending of the context. It must
>    be interpreted differently in a term and in a ISBN. In an ISBN, it
>    must be suppressed to concatenate all ISBN parts. In a phrase, it is
>    a breaking character like space, comma, etc. 
> 
> 3) With this patch, ISBN stored in Koha DB don't follow anymore
>    MARC21/UNIMARC format which specify that hyphens must be present.
> 
> In my opinion, correct ISBN indexing and search should be delegated to
> Zebra and mustn't modify stored biblio records. We could create a new
> index type (we already have word, phrase, numeric index types). For this
> type, hyphens could be suppressed by Zebra. And Koha search query
> parser could identify ISBN/ISSN by a regex and suppress hyphens only for
> them before sending search query to Zebra.

If UNIMARC handle multiple isbns, its no just a problem to loop over them, and
remove hyphens in every one. And, the original isbn is kept in isbn field in
biblioitems table.
When a search is performed, only during search specifically by isbn or issn,
hyphens are removed from query, but not during other search like kw, au ...
I'm agree with the modification in koha. Add another index type to handle this.
I saw somebody did it a few days ago, here:
http://lists.indexdata.dk/pipermail/zebralist/2010-May/002423.html , it maybe
work, its only a decision about handle it.

We need this change, by one way or another, because most of the people search
an isbn without hyphens, and as I saw, most of the Z we used, could handle
this, searching with or without hyphens.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list