"Next available barcode" on catalog page is broken

TalkBug Collectors

Join LibraryThing to post.

"Next available barcode" on catalog page is broken

1mice_elf
Edited: Apr 15, 1:31 pm

This message has been deleted by its author.

2mice_elf
Apr 15, 1:41 pm

Reported by LT account "snus-library"

When logged into their account on Catalog page:
1. Make sure "barcode" field is added to catalog display style for Your Books.
2. Go to https://www.librarything.com/settings/barcodes and select:
-- Barcode system-->Sequential numbers
-- Next barcode--> Highest barcode +1
-- Automatically add barcodes to new items--> Disabled
3. Double click on an empty barcode field to edit. select "next available barcode"
4. The barcode that appears is "1304", but this barcode is already assigned to https://www.librarything.com/work/30643320/details/244998463

When "Your Books" view is sorted descending by barcode, the barcode #s are not sorted correctly- they descend based on the first value, but not in numerical descending order for the whole number.

4kristilabrie
Apr 15, 3:50 pm

Note for devs: see ajax_barcode_next_get.php maybe?

5mice_elf
Apr 25, 1:02 pm

Seems to be an issue with the way barcodes are being sorted. Working to fix.