Bug 36844 - Set library, desk, and cash register menu follow-ups
Summary: Set library, desk, and cash register menu follow-ups
Status: Needs documenting
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Owen Leonard
QA Contact: Nick Clemens (kidclamp)
URL:
Keywords:
Depends on: 36582
Blocks:
  Show dependency treegraph
 
Reported: 2024-05-13 16:53 UTC by Owen Leonard
Modified: 2024-07-25 11:15 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
24.05.00
Circulation function:


Attachments
Bug 36844: Set library, desk, and cash register menu follow-ups (6.07 KB, patch)
2024-05-13 17:22 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 36844: Set library, desk, and cash register menu follow-ups (6.12 KB, patch)
2024-05-13 21:49 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 36844: Set library, desk, and cash register menu follow-ups (6.17 KB, patch)
2024-05-14 00:49 UTC, David Nind
Details | Diff | Splinter Review
Bug 36844: Set library, desk, and cash register menu follow-ups (6.17 KB, patch)
2024-05-14 01:54 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 36844: (QA follow-up): fix forgotten 'for' attr change (1.08 KB, patch)
2024-05-14 01:54 UTC, Victor Grousset/tuxayo
Details | Diff | Splinter Review
Bug 36844: Set library, desk, and cash register menu follow-ups (6.22 KB, patch)
2024-05-15 11:55 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 36844: (QA follow-up): fix forgotten 'for' attr change (1.14 KB, patch)
2024-05-15 11:55 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 36844: (QA follow-up) Fix preselected options on set-library.pl (4.04 KB, patch)
2024-05-15 11:55 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2024-05-13 16:53:16 UTC
- On the login form, the form field IDs need to be updated to match the changed form fields in set-library.tt. Inclusion of desk_selection.js and register_selection.js need to be removed.

- On the cash register statistics page, the form needs specific JS to deal with just the library-cash register selection changes.
Comment 1 Owen Leonard 2024-05-13 17:22:43 UTC
Created attachment 166651 [details] [review]
Bug 36844: Set library, desk, and cash register menu follow-ups

This patch ties up a couple of loose ends which should have been
included in Bug 36582. The patch includes fixes for the staff interface
login page and the cash register statistics page.

To test you should have multiple libraries, desks, and cash registers
defined. You may need to enable the UseCirculationDesks and
UseCashRegisters system preferences.

- Apply the patch and log out of the staff interface.
- On the login form, test that changing your selected library correctly
  affects the desk and cash register dropdowns: Only desks and registers
  for your selected library should appear.
- Log in and confirm that your selections were submitted correctly.

- Go to Reports, and under "Statistics wizards" choose "Cash register."
- Confirm that changes to the "Transaction library" correctly change the
  available options in the "Cash register" dropdown, including the "All"
  option.

Sponsored-By: Athens County Public Libraries
Comment 2 Lucas Gass (lukeg) 2024-05-13 21:49:09 UTC
Created attachment 166657 [details] [review]
Bug 36844: Set library, desk, and cash register menu follow-ups

This patch ties up a couple of loose ends which should have been
included in Bug 36582. The patch includes fixes for the staff interface
login page and the cash register statistics page.

To test you should have multiple libraries, desks, and cash registers
defined. You may need to enable the UseCirculationDesks and
UseCashRegisters system preferences.

- Apply the patch and log out of the staff interface.
- On the login form, test that changing your selected library correctly
  affects the desk and cash register dropdowns: Only desks and registers
  for your selected library should appear.
- Log in and confirm that your selections were submitted correctly.

- Go to Reports, and under "Statistics wizards" choose "Cash register."
- Confirm that changes to the "Transaction library" correctly change the
  available options in the "Cash register" dropdown, including the "All"
  option.

Sponsored-By: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Comment 3 David Nind 2024-05-14 00:49:55 UTC
Created attachment 166662 [details] [review]
Bug 36844: Set library, desk, and cash register menu follow-ups

This patch ties up a couple of loose ends which should have been
included in Bug 36582. The patch includes fixes for the staff interface
login page and the cash register statistics page.

To test you should have multiple libraries, desks, and cash registers
defined. You may need to enable the UseCirculationDesks and
UseCashRegisters system preferences.

- Apply the patch and log out of the staff interface.
- On the login form, test that changing your selected library correctly
  affects the desk and cash register dropdowns: Only desks and registers
  for your selected library should appear.
- Log in and confirm that your selections were submitted correctly.

- Go to Reports, and under "Statistics wizards" choose "Cash register."
- Confirm that changes to the "Transaction library" correctly change the
  available options in the "Cash register" dropdown, including the "All"
  option.

Sponsored-By: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2024-05-14 00:52:59 UTC
For the cash register statistics report, if there are no cash register for a library, I'm assuming that displaying --All-- is OK.
Comment 5 Victor Grousset/tuxayo 2024-05-14 01:54:05 UTC
Created attachment 166665 [details] [review]
Bug 36844: Set library, desk, and cash register menu follow-ups

This patch ties up a couple of loose ends which should have been
included in Bug 36582. The patch includes fixes for the staff interface
login page and the cash register statistics page.

To test you should have multiple libraries, desks, and cash registers
defined. You may need to enable the UseCirculationDesks and
UseCashRegisters system preferences.

- Apply the patch and log out of the staff interface.
- On the login form, test that changing your selected library correctly
  affects the desk and cash register dropdowns: Only desks and registers
  for your selected library should appear.
- Log in and confirm that your selections were submitted correctly.

- Go to Reports, and under "Statistics wizards" choose "Cash register."
- Confirm that changes to the "Transaction library" correctly change the
  available options in the "Cash register" dropdown, including the "All"
  option.

Sponsored-By: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Comment 6 Victor Grousset/tuxayo 2024-05-14 01:54:08 UTC
Created attachment 166666 [details] [review]
Bug 36844: (QA follow-up): fix forgotten 'for' attr change

It didn't match the <select> id.
Comment 7 Nick Clemens (kidclamp) 2024-05-15 11:55:16 UTC
Created attachment 166770 [details] [review]
Bug 36844: Set library, desk, and cash register menu follow-ups

This patch ties up a couple of loose ends which should have been
included in Bug 36582. The patch includes fixes for the staff interface
login page and the cash register statistics page.

To test you should have multiple libraries, desks, and cash registers
defined. You may need to enable the UseCirculationDesks and
UseCashRegisters system preferences.

- Apply the patch and log out of the staff interface.
- On the login form, test that changing your selected library correctly
  affects the desk and cash register dropdowns: Only desks and registers
  for your selected library should appear.
- Log in and confirm that your selections were submitted correctly.

- Go to Reports, and under "Statistics wizards" choose "Cash register."
- Confirm that changes to the "Transaction library" correctly change the
  available options in the "Cash register" dropdown, including the "All"
  option.

Sponsored-By: Athens County Public Libraries
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 8 Nick Clemens (kidclamp) 2024-05-15 11:55:18 UTC
Created attachment 166771 [details] [review]
Bug 36844: (QA follow-up): fix forgotten 'for' attr change

It didn't match the <select> id.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 9 Nick Clemens (kidclamp) 2024-05-15 11:55:20 UTC
Created attachment 166772 [details] [review]
Bug 36844: (QA follow-up) Fix preselected options on set-library.pl

I found that when switching from a branch with a default register to one without, the default register for
the last branch was remaining selected (though disabled)

When opening the page if no desk was set (choose 'My library' on initial login) the branch was default to 'No desk' rather than defaulting to the first desk of the current branch

Remove a debugging line as well

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Comment 10 Katrin Fischer 2024-05-17 08:37:53 UTC
Pushed for 24.05!

Well done everyone, thank you!
Comment 11 Fridolin Somers 2024-05-29 12:39:51 UTC
Depends on Bug 36582 not in 23.11.x