[Koha-bugs] [Bug 19316] Items should have sort1 and sort2 fields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 30 16:09:50 CEST 2023


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

--- Comment #4 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 154965
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=154965&action=edit
Bug 19316: Add sort1 and sort2 fields to interface and allow editing

This patch adds the new sort1 and sort2 fields to the interface so that they
can be viewed and edited

Test plan:
1) Apply patch and reset_all
2) In the catalog, search for a record with at least one item
3) In the Holdings table, click on the barcode for an item. You should now be
on /cgi-bin/koha/catalogue/moredetail.pl
4) Scroll down and observe that there is now a section called "Sort fields"
with two fields, Sort 1 and Sort 2.
5) Enter some text in the textarea for Sort 1 (max 50 characters) and click
Update
6) The page will refresh and your text should still be visible. Check that item
in the database and the text should be stored in the sort1 column.
7) Repeat steps 5-6 for Sort 2.
8) Copy the barcode and navigate to Cataloging > Batch item modification
9) Enter the barcode in the textarea under "Or scan items one by one" (You can
add multiple bar codes here if you wish)
10) Fill in the Required values (Home library, Current library, Koha item type)
11) In "Other attributes" there should be two fields, Sort 1 and Sort 2
12) Enter some text into both these fields
13) Click save and a job will be enqueued
14) Click "view detail of the enqueued job"
15) A message should be shown on completion that says "X item(s) modified (with
Y field(s) modified)." X should match the number of barcodes that you entered
into the batch mod and Y should equal X x 2
16) Check the item either in the interface or the database and the text you
entered should now be stored and visible
17) Repeat steps 8 - 14 but this time only fill in Sort 1
18) This time X should equal the number of barcodes that you entered into the
batch mod but Y should equal X as only one field was filled in.
19) Again, the text you entered should now be stored on the item record

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


More information about the Koha-bugs mailing list