[Koha-bugs] [Bug 7458] New call number allocation plugin

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 31 09:05:54 CET 2012


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

--- Comment #9 from Srdjan Jankovic <srdjan at catalyst.net.nz> 2012-01-31 08:05:54 UTC ---
I'll blame it on Melia, although most of them are of the "but wait, I did not
test this situation" kind. And a copyright fix.

Melia;

Here is a problem.

1. I added the call number FREN 0001 to a book named "Dog"
2. I then found a book named "Cat" and entered "FREN 0" and was given FREN
0002. So far, so good.
3. I changed the call number for "Cat" to FREN 0200
4. On the next record, I entered "FREN 0" and was given FREN 201 … when I
should have been given FREN 0002 as that was free

In short, the script is producing the first available number after the highest
number in the range. I could get around this problem by entering "FREN 00" but
the problem continues as you work through the numbers.

1. So let's say that I have "Elephant" at FREN 250, "Eloise" at FREN 500, and
"Eloise at the Plaza" at FREN 750.
2. "FREN 0" returns FREN 751, and I have to enter "FREN 00" to get FREN 0002.
3. In our system, French feature films have to fall between FREN 0200 and FREN
0999, but if I want something in the FREN range above 200 and I enter "FREN 02"
I get FREN 0251 because FREN 0250 is in the system already … and the only way
to get the available FREN 0201 would be to enter "FREN 020".
4. Once the range FREN 0200 – FREN 0209 is in use, I am unsure whether "FREN
020" would produce FREN 0210 (the lowest available number in the range) or FREN
0251 (the first available number after the highest number in the range). If the
latter, we will need to enter up to the third digit to fill in the gaps between
FREN 0211 and FREN 0249 inclusive … needing to use "FREN 021", "FREN 022",
"FREN 023" and "FREN 024" to get them all.

What we need is for the script to find the first available number in the range.

1. "FREN 0" should not return FREN 201 unless all of the numbers between FREN
0001 and FREN 0200 are already in use.
2. "FREN 02" should return the first number available after FREN 0200. If FREN
0200 - FREN 0299 are in use, it should return FREN 0300.
3. "FREN 1" should produce the first available number after FREN 1000.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list