[Koha-bugs] [Bug 29980] Validate ISBN when cataloguing bibliographic records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 31 05:20:06 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29980

--- Comment #2 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 129985
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129985&action=edit
Bug 29980: Validate ISBNs when saving biblio records

This enhancement adds a new system preference ValidateISBN. When
enabled, Koha will apply a valid checksum algorithm to ISBN fields
(020$a for MARC21 and 010$a for UNIMARC) to validate the ISBN when
cataloguing bibliographic records. The user will be prompted to fix
their invalid ISBN, or have the option to bypass the ISBN check and
save anyway. This will work for both 10-digit and 13-digit ISBNs.

This patch also cleans up some bad indentation in
cataloguing/addbiblio.pl.

To test:
1) Apply patch, update database.
2) Go to Koha administration -> global system preferences -> cataloguing
tab -> Record structure heading. Note the new ValidateISBN system
preference. It should be disabled by default. Leave it disabled.
3) Set marcflavour system preference to MARC21.
4) In a new tab, go to add a new biblio record, or edit an existing one.
5) Find the 020$a field and input an incorrect ISBN. Save the record and
confirm the ISBN is not validated and does not block saving the record.
6) Go back to your system preferences tab. Set the ValidateISBN tab to
"Validate" to enable it.
7) Go back to your cataloguing tab. Edit the record. Save the record
without making any changes.
8) Confirm an Invalid ISBN error pops up, blocking you from saving.
Click Continue to bypass the ISBN check and save the record with the
invalid ISBN.
9) Edit the record again. Save the record without making any changes.
10) When the Invalid ISBN error pops up, this time fix the invalid ISBN,
then save the record again. Confirm you are able to save the record.
11) Go back to the system preferences tab and change the marcflavour
system preference to UNIMARC. Repeat the above steps, but this time use
the 010$a field instead of 020$a for ISBN.

Sponsored-by: Education Services Australia SCIS

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


More information about the Koha-bugs mailing list