Bug 20411 - Remove StaffDetailItemSelection system preference and make the feature always on
Summary: Remove StaffDetailItemSelection system preference and make the feature always on
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Sam Lau
QA Contact: Jonathan Druart
URL:
Keywords:
Depends on: 37309
Blocks: 20396
  Show dependency treegraph
 
Reported: 2018-03-14 16:38 UTC by Gaetan Boisson
Modified: 2024-11-15 17:44 UTC (History)
8 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Removes the system preference StaffDetailItemSelection which is no longer needed. The item selection column in the holdings table is now configurable via Table settings configuration.
Version(s) released in:
24.11.00
Circulation function:


Attachments
Bug 20411: Remove StaffDetailItemSelection system preference (16.50 KB, patch)
2024-07-10 17:06 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 20411: Remove StaffDetailItemSelection system preference (16.55 KB, patch)
2024-07-10 17:45 UTC, Eric Garcia
Details | Diff | Splinter Review
Screenshot from sandbox signoff attempt (170.02 KB, image/jpeg)
2024-07-11 14:34 UTC, Heather
Details
Bug 20411: Remove StaffDetailItemSelection system preference (16.59 KB, patch)
2024-07-11 15:14 UTC, Sam Lau
Details | Diff | Splinter Review
Bug 20411: Remove StaffDetailItemSelection system preference (16.65 KB, patch)
2024-07-11 17:58 UTC, ByWater Sandboxes
Details | Diff | Splinter Review
Bug 20411: Remove StaffDetailItemSelection system preference (18.35 KB, patch)
2024-08-14 09:21 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 20411: Output only if pref has been deleted (1010 bytes, patch)
2024-08-14 09:21 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Gaetan Boisson 2018-03-14 16:38:51 UTC
This is always used according to HEA, and a very useful feature, i am not sure it makes sense to let the administrators choose to have it or not. Permissions are here also to make sure librarians won't batch delete items.
Comment 1 Katrin Fischer 2023-10-01 22:13:41 UTC
I'd not be opposed to removing the preference - any opinions on this one?
Comment 2 Heather 2024-07-10 13:44:35 UTC
It's super useful for Modifying Selected Items or Deleting Selected Items--I think there should just always be check boxes appearing next to the items.  Maybe someone has an argument against having the check boxes next to the items?  But IMO, they should just always be there.

--h2, "A Real Cataloger":)
Comment 3 Sam Lau 2024-07-10 17:06:53 UTC
Created attachment 168755 [details] [review]
Bug 20411: Remove StaffDetailItemSelection system preference

This patch removes the 'StaffDetailItemSelection' along with any usages of it. Now, the checkboxes on an item details page are always there.

To test:
1) Apply patch, restart_all, updatedatabase
2) In sys prefs, search for 'StaffDetailItemSelection', nothing should show up.
3) Visit an items details page, make sure there are checkboxes next each item that allow you to perform modification/deletion.
Comment 4 Eric Garcia 2024-07-10 17:45:18 UTC
Created attachment 168761 [details] [review]
Bug 20411: Remove StaffDetailItemSelection system preference

This patch removes the 'StaffDetailItemSelection' along with any usages of it. Now, the checkboxes on an item details page are always there.

To test:
1) Apply patch, restart_all, updatedatabase
2) In sys prefs, search for 'StaffDetailItemSelection', nothing should show up.
3) Visit an items details page, make sure there are checkboxes next each item that allow you to perform modification/deletion.

Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Comment 5 Heather 2024-07-11 14:34:49 UTC
Created attachment 168831 [details]
Screenshot from sandbox signoff attempt

I tried signing off using a sandbox, and it went well through verifying that the syspref was no longer in the system (it wasn't!).  I couldn't verify that there were checkboxes still appearing next to item records because there were no longer any item records showing up in "Normal" displays of bib records--see attached scrrenshot.
Comment 6 Jonathan Druart 2024-07-11 14:43:55 UTC
Uncaught SyntaxError: expected expression, got '<<'

Uncaught ReferenceError: build_items_table is not defined

I think the patch does not apply and you got a merge conflict marker
Comment 7 Heather 2024-07-11 15:11:19 UTC
Coolness--thank you!!!  (I'm helping!!  I think! :) )
Comment 8 Sam Lau 2024-07-11 15:14:44 UTC
Created attachment 168835 [details] [review]
Bug 20411: Remove StaffDetailItemSelection system preference

This patch removes the 'StaffDetailItemSelection' along with any usages of it. Now, the checkboxes on an item details page are always there.

To test:
1) Apply patch, restart_all, updatedatabase
2) In sys prefs, search for 'StaffDetailItemSelection', nothing should show up.
3) Visit an items details page, make sure there are checkboxes next each item that allow you to perform modification/deletion.

Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Comment 9 Sam Lau 2024-07-11 15:15:41 UTC
(In reply to Jonathan Druart from comment #6)
> I think the patch does not apply and you got a merge conflict marker

Should be fixed now
Comment 10 ByWater Sandboxes 2024-07-11 17:58:55 UTC
Created attachment 168859 [details] [review]
Bug 20411: Remove StaffDetailItemSelection system preference

This patch removes the 'StaffDetailItemSelection' along with any usages of it. Now, the checkboxes on an item details page are always there.

To test:
1) Apply patch, restart_all, updatedatabase
2) In sys prefs, search for 'StaffDetailItemSelection', nothing should show up.
3) Visit an items details page, make sure there are checkboxes next each item that allow you to perform modification/deletion.

Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov>
Comment 11 Jonathan Druart 2024-08-14 08:43:05 UTC
It does not correctly work, there is a regression. The action links ("Delete" and "Modify") are always displayed, they should be only if at least one item is selected.
Comment 12 Jonathan Druart 2024-08-14 09:21:15 UTC
Created attachment 170310 [details] [review]
Bug 20411: Remove StaffDetailItemSelection system preference

This patch removes the 'StaffDetailItemSelection' along with any usages of it. Now, the checkboxes on an item details page are always there.

To test:
1) Apply patch, restart_all, updatedatabase
2) In sys prefs, search for 'StaffDetailItemSelection', nothing should show up.
3) Visit an items details page, make sure there are checkboxes next each item that allow you to perform modification/deletion.

Signed-off-by: Eric Garcia <cubingguy714@gmail.com>
Signed-off-by: Heather Hernandez <heather_hernandez@nps.gov>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 13 Jonathan Druart 2024-08-14 09:21:18 UTC
Created attachment 170311 [details] [review]
Bug 20411: Output only if pref has been deleted

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 14 Jonathan Druart 2024-08-14 09:22:47 UTC
(In reply to Jonathan Druart from comment #11)
> It does not correctly work, there is a regression. The action links
> ("Delete" and "Modify") are always displayed, they should be only if at
> least one item is selected.

This was caused by a couple of wrong conflict resolutions.

For instance:
-            var tab = $("#" + tab_id + "_panel" );
+        var tab = $("#" + tab_id);

I have rebased the patch on top of bug 37309 which is also in the queue and modify this exact portion of code.
Comment 15 Katrin Fischer 2024-08-26 08:27:48 UTC
Please add some notes!
Comment 16 Katrin Fischer 2024-08-26 15:43:26 UTC
Pushed for 24.11!

Well done everyone, thank you!