[Koha-bugs] [Bug 10454] Duplicate card numbers may be generated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 27 17:50:05 CEST 2013


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

M. Tompsett <mtompset at hotmail.com> changed:

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

--- Comment #16 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 19264
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=19264&action=edit
Bug 10454 - Duplicate card numbers may be generated

Previously, there was a gap in time between the insertion of
the card number into borrowers and the generation. This gap
meant that the same card number could be calculated by two
different processes resulting in two different members being
added with the same card number.

By creating a Koha::Sequence class, the requests are serialized
and prevent duplication. And this class allows for flexibility
with other sequences that may wish to be maintained.

The fixup_cardnumber now merely uses the Koha::Sequence to get
the next numerical portion of the cardnumber. If checkdigit is
'katipo', the new cardnumber is calculated out of the numeric
portion.

Perfect serialization leads to another problem: gaps. Gaps which
are generated by deletion of old records are to be expected, but
gaps generated by continually clicking refresh are not. This is
an outstanding problem to now solve on the patron entry screen.
This is beyond the scope of this bug.

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


More information about the Koha-bugs mailing list