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

Devinim <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #99977|0                           |1
        is obsolete|                            |

--- Comment #4 from Devinim <[email protected]> ---
Created attachment 100267
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=100267&action=edit
Bug 23925: Value builder plugin to check ISBN validity

This patch adds a new value builder plugin ISBN.pl, which should
be attached to field 020a. The plugin will perform a simple
checksum checking when trying to save the record, and inform the
user that the ISBN is illegal if the checksum doesn't match.

The ISBN plugin is a test case for additional value builder plugin
functionality that lets the plugins check field values and
prevent saving if so desired. The example plugin has been updated
with information on how to write a pre-save check function.

To test:
1) Add the ISBN.pl plugin to the field 020a in MARC subfield
   structure admin.
2) Go to cataloguing and try to save the record, no complaints
   about the ISBN (Because the plugin will not complain about
   empty field)
3) Enter something in the 020a field and try to save, you should
   receive a complaint about illegal ISBN.
4) Enter a valid ISBN (eg. 978-951-1-27641-8) and try to save,
   there should be no complaints about the ISBN.

Signed-off-by: Pasi Kallinen <[email protected]>
Signed-off-by: Devinim <[email protected]>

Nice plugin.
Tested for both 13 and 10 digits ISBNs

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to