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

--- Comment #1 from Sam Young <[email protected]> ---
On the label batch edit page (Tools > Label creator > Manage > Label batches >
Edit, labels/label-edit-batch.pl), the table of items in a batch shows these
fixed columns: Label number, Summary (title / author), Item type, Call number,
Barcode, Actions, and Select.

These columns are hardcoded in labels/label-edit-batch.pl. The data comes from
C4::Creators::Lib::get_label_summary(), which only selects title and author
from biblio and itemtype/itype, barcode and itemcallnumber from items.
Libraries can't add other item data to the table, either through table settings
or with JavaScript, because that data never reaches the page.

Use case:
Some libraries use item fields to drive spine or genre stickers. For example,
one library fills 952$3 (Materials specified, items.materials) automatically
from genre headings and uses that value to decide which genre sticker goes on
each item. Staff work from the label batch table while they attach stickers,
but they can't see 952$3 there. They have to look each item up separately.

Proposed enhancement:
Add a new "Materials specified" column to the label batch edit table that shows
items.materials (952$3) for each item. Put it after Call number, or wherever
fits best. This means:

adding i.materials to the query in get_label_summary() and returning it with
the rest of the label data
adding the column to $display_columns in labels/label-edit-batch.pl
A possible follow-up would be to register the table in Table settings
(columns_settings), so libraries that don't use 952$3 can hide the column.

Test plan (once a patch exists):

Create or edit an item and set 952$3 (Materials specified) to some value.
Create or edit another item and leave 952$3 empty.
Go to Tools > Label creator > Manage > Label batches and add both items to a
batch.
Edit the batch.
Confirm there is a new "Materials specified" column. The first item should show
its 952$3 value, and the second item's cell should be empty.
Confirm the existing columns (Summary, Item type, Call number, Barcode) still
display correctly.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to