[Koha-bugs] [Bug 11254] breeding search must normalize ISBN

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 13 08:42:12 CET 2014


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

--- Comment #3 from Fridolin SOMERS <fridolyn.somers at biblibre.com> ---
(In reply to M. Tompsett from comment #2)
> This eyeballs well, but step-by-step instructions would really help.
There is a test plan into patch comment :

Subject: [PATCH] Bug 11254 - breeding search must normalize ISBN

When importing records, the ISBN is normalized and stored into database (see
C4::Breeding::ImportBreeding).
But when searching with ISBN into reservoir, it is not normalized (see
C4::Breeding::BreedingSearch).
So search does not match.

This patch adds the normalisation to breeding search.
Also replaces call private method _isbn_cleanup by GetNormalizedISBN, the
correct public method.
Also allows the breeding search on ISBN with hyphens.

Test plan :
- Import a record with ISBN 13 with hyphens. ie 978-2-8153-0357-6
- Go to cataloguing : cataloguing/addbooks.pl
- Enter ISBN 13 with hyphens. ie 978-2-8153-0357-6
=> the imported record is found
- Enter ISBN 13 without hyphens. ie 9782815303576
=> the imported record is found
- Enter normalized ISBN. ie 2815303574
=> the imported record is found

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list