Bug 37883 - Add a filter for staff search results to filter by library
Summary: Add a filter for staff search results to filter by library
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Lucas Gass (lukeg)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-10 14:16 UTC by Lucas Gass (lukeg)
Modified: 2025-03-31 09:04 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: String patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
This enhancement adds the system preference FilterSearchResultsByLoggedInBranch. When turned on this feature will allow librarians to filter search results to only show those belonging to the logged in branch. This selection will be set in the browser's localStorage.
Version(s) released in:
Circulation function:


Attachments
Bug 37883: Add logged in branch available, other, and onloan counts (6.03 KB, patch)
2024-09-10 15:38 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (7.92 KB, patch)
2024-09-10 15:40 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (8.49 KB, patch)
2024-09-10 15:50 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (3.58 KB, patch)
2024-09-10 19:43 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Adjust template for new system preference (7.75 KB, patch)
2024-09-10 19:43 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use Cookie to remember last selection (2.80 KB, patch)
2024-09-10 20:24 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Minor fix-ups and perltidy (3.94 KB, patch)
2024-09-10 20:33 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add logged in branch available, other, and onloan counts (6.08 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (8.54 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (3.62 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Adjust template for new system preference (7.80 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Use Cookie to remember last selection (2.85 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Minor fix-ups and perltidy (3.98 KB, patch)
2024-09-12 14:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review
Bug 37883: Use localStorage instead of cookies to remember selection (1.59 KB, patch)
2025-01-16 20:21 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Remove show_local_items from localStorage on logout (993 bytes, patch)
2025-01-28 23:31 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add logged in branch available, other, and onloan counts (8.99 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (127.27 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (4.46 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Adjust template for new system preference (7.80 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use Cookie to remember last selection (2.85 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Minor fix-ups and perltidy (3.13 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use localStorage instead of cookies to remember selection (1.59 KB, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Remove show_local_items from localStorage on logout (932 bytes, patch)
2025-02-11 20:55 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add logged in branch available, other, and onloan counts (8.99 KB, patch)
2025-02-26 23:11 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (11.01 KB, patch)
2025-02-26 23:11 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (4.46 KB, patch)
2025-02-26 23:11 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug Bug 37883: Adjust template for new system preference (6.54 KB, patch)
2025-02-26 23:17 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use localStorage to remember user selection (3.11 KB, patch)
2025-02-26 23:30 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: A couple minor fixes to results.tt (4.55 KB, patch)
2025-02-27 00:24 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add logged in branch available, other, and onloan counts (8.99 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (11.01 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (4.46 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug Bug 37883: Adjust template for new system preference (6.54 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use localStorage to remember user selection (3.10 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: A couple minor fixes to results.tt (4.55 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Fix branchspecific display of unavailable items (1.61 KB, patch)
2025-03-25 16:02 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug Bug 37883: Adjust template for new system preference (7.91 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add logged in branch available, other, and onloan counts (8.99 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add ability to filter search results location column by logged in location (5.01 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference (4.46 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Use localStorage to remember user selection (3.10 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: A couple minor fixes to results.tt (4.55 KB, patch)
2025-03-31 09:03 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Fix branchspecific display of unavailable items (1.61 KB, patch)
2025-03-31 09:04 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review
Bug 37883: Correct permissions of atomicupdate file (559 bytes, patch)
2025-03-31 09:04 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2024-09-10 14:16:57 UTC
This is a thing I've been doing with custom JS for a while now and wanted to add it to Koha properly. 

When looking at a page of search results some librarians would like to be able to filter the 'Location' column to only show items from their local branch.
Comment 1 Lucas Gass (lukeg) 2024-09-10 15:38:59 UTC
Created attachment 171256 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts
Comment 2 Lucas Gass (lukeg) 2024-09-10 15:40:37 UTC
Created attachment 171257 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location
Comment 3 Lucas Gass (lukeg) 2024-09-10 15:50:56 UTC
Created attachment 171261 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
Comment 4 Lucas Gass (lukeg) 2024-09-10 19:43:24 UTC
Created attachment 171286 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference
Comment 5 Lucas Gass (lukeg) 2024-09-10 19:43:27 UTC
Created attachment 171287 [details] [review]
Bug 37883: Adjust template for new system preference

To test:

0. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
1. Search fof the FilterSearchResultsByLoggedInBranch system preference and set it to 'Do'.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
6. Set the FilterSearchResultsByLoggedInBranch system preference to 'Don't' and confirm that there is no button to filter by branch anymore.
Comment 6 Lucas Gass (lukeg) 2024-09-10 20:24:22 UTC
Created attachment 171289 [details] [review]
Bug 37883: Use Cookie to remember last selection
Comment 7 Lucas Gass (lukeg) 2024-09-10 20:33:32 UTC
Created attachment 171291 [details] [review]
Bug 37883: Minor fix-ups and perltidy
Comment 8 Brendan Lawlor 2024-09-12 14:42:17 UTC
Created attachment 171406 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 9 Brendan Lawlor 2024-09-12 14:42:19 UTC
Created attachment 171407 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 10 Brendan Lawlor 2024-09-12 14:42:21 UTC
Created attachment 171408 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 11 Brendan Lawlor 2024-09-12 14:42:23 UTC
Created attachment 171409 [details] [review]
Bug 37883: Adjust template for new system preference

To test:

0. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
1. Search fof the FilterSearchResultsByLoggedInBranch system preference and set it to 'Do'.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
6. Set the FilterSearchResultsByLoggedInBranch system preference to 'Don't' and confirm that there is no button to filter by branch anymore.

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 12 Brendan Lawlor 2024-09-12 14:42:25 UTC
Created attachment 171410 [details] [review]
Bug 37883: Use Cookie to remember last selection

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 13 Brendan Lawlor 2024-09-12 14:42:27 UTC
Created attachment 171411 [details] [review]
Bug 37883: Minor fix-ups and perltidy

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 14 Brendan Lawlor 2024-09-12 14:53:35 UTC
We have been using Lucas' JS for this for a really long time now (I think we requested it in early 2023 when we migrated) and our library staff love it. It's especially helpful for consortia with many branches.

Thanks Lucas!
Comment 15 Jonathan Druart 2025-01-16 09:21:05 UTC
show_local_items - I don't think you need a cookie here, storing in localStorage should be enough.
Comment 16 Lucas Gass (lukeg) 2025-01-16 20:21:34 UTC
Created attachment 176697 [details] [review]
Bug 37883: Use localStorage instead of cookies to remember selection
Comment 17 Jonathan Druart 2025-01-17 07:39:26 UTC
Remove the localStorage's item on logout, see
koha-tmpl/intranet-tmpl/prog/js/staff-global.js
426 function logOut() {
Comment 18 Lucas Gass (lukeg) 2025-01-28 23:31:31 UTC
Created attachment 177306 [details] [review]
Bug 37883: Remove show_local_items from localStorage on logout
Comment 19 Lucas Gass (lukeg) 2025-02-11 20:55:32 UTC
Created attachment 177784 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 20 Lucas Gass (lukeg) 2025-02-11 20:55:36 UTC
Created attachment 177785 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 21 Lucas Gass (lukeg) 2025-02-11 20:55:38 UTC
Created attachment 177786 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 22 Lucas Gass (lukeg) 2025-02-11 20:55:41 UTC
Created attachment 177787 [details] [review]
Bug 37883: Adjust template for new system preference

To test:

0. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
1. Search fof the FilterSearchResultsByLoggedInBranch system preference and set it to 'Do'.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
6. Set the FilterSearchResultsByLoggedInBranch system preference to 'Don't' and confirm that there is no button to filter by branch anymore.

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 23 Lucas Gass (lukeg) 2025-02-11 20:55:44 UTC
Created attachment 177788 [details] [review]
Bug 37883: Use Cookie to remember last selection

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 24 Lucas Gass (lukeg) 2025-02-11 20:55:46 UTC
Created attachment 177789 [details] [review]
Bug 37883: Minor fix-ups and perltidy

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 25 Lucas Gass (lukeg) 2025-02-11 20:55:48 UTC
Created attachment 177790 [details] [review]
Bug 37883: Use localStorage instead of cookies to remember selection
Comment 26 Lucas Gass (lukeg) 2025-02-11 20:55:51 UTC
Created attachment 177791 [details] [review]
Bug 37883: Remove show_local_items from localStorage on logout
Comment 27 Lucas Gass (lukeg) 2025-02-26 22:32:09 UTC
There is one small problem when I auto rebased this with duplicate text. When I try to solve the problem and commit the pre-hook tidy changes hundreds of lines:
 
824 insertions(+), 659 deletions(-)
Comment 28 Lucas Gass (lukeg) 2025-02-26 23:11:11 UTC
Created attachment 178772 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 29 Lucas Gass (lukeg) 2025-02-26 23:11:13 UTC
Created attachment 178773 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
Comment 30 Lucas Gass (lukeg) 2025-02-26 23:11:15 UTC
Created attachment 178774 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 31 Lucas Gass (lukeg) 2025-02-26 23:17:51 UTC
Created attachment 178775 [details] [review]
Bug  Bug 37883: Adjust template for new system preference
Comment 32 Lucas Gass (lukeg) 2025-02-26 23:30:56 UTC
Created attachment 178776 [details] [review]
Bug 37883: Use localStorage to remember user selection
Comment 33 Lucas Gass (lukeg) 2025-02-27 00:24:37 UTC
Created attachment 178777 [details] [review]
Bug 37883: A couple minor fixes to results.tt
Comment 34 Katrin Fischer 2025-02-27 09:25:45 UTC
(In reply to Lucas Gass (lukeg) from comment #27)
> There is one small problem when I auto rebased this with duplicate text.
> When I try to solve the problem and commit the pre-hook tidy changes
> hundreds of lines:
>  
> 824 insertions(+), 659 deletions(-)

Hi Lucas, were you able to resolve or get more information? Maybe you could share the result somewhere?
Comment 35 Lucas Gass (lukeg) 2025-02-27 14:37:16 UTC
(In reply to Katrin Fischer from comment #34)
> (In reply to Lucas Gass (lukeg) from comment #27)
> > There is one small problem when I auto rebased this with duplicate text.
> > When I try to solve the problem and commit the pre-hook tidy changes
> > hundreds of lines:
> >  
> > 824 insertions(+), 659 deletions(-)
> 
> Hi Lucas, were you able to resolve or get more information? Maybe you could
> share the result somewhere?

Hi Cait, no great insight here. I ended up rewriting my patches on current main. :)
Comment 36 Katrin Fischer 2025-02-27 15:39:50 UTC
(In reply to Lucas Gass (lukeg) from comment #35)
> (In reply to Katrin Fischer from comment #34)
> > (In reply to Lucas Gass (lukeg) from comment #27)
> > > There is one small problem when I auto rebased this with duplicate text.
> > > When I try to solve the problem and commit the pre-hook tidy changes
> > > hundreds of lines:
> > >  
> > > 824 insertions(+), 659 deletions(-)
> > 
> > Hi Lucas, were you able to resolve or get more information? Maybe you could
> > share the result somewhere?
> 
> Hi Cait, no great insight here. I ended up rewriting my patches on current
> main. :)

Just trying to nail down the "glitches" we find so that we can improve on them. If you run into it again, please let us know!
Comment 37 Lucas Gass (lukeg) 2025-03-25 16:02:16 UTC
Created attachment 179688 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 38 Lucas Gass (lukeg) 2025-03-25 16:02:18 UTC
Created attachment 179689 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
Comment 39 Lucas Gass (lukeg) 2025-03-25 16:02:21 UTC
Created attachment 179690 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 40 Lucas Gass (lukeg) 2025-03-25 16:02:23 UTC
Created attachment 179691 [details] [review]
Bug Bug 37883: Adjust template for new system preference
Comment 41 Lucas Gass (lukeg) 2025-03-25 16:02:26 UTC
Created attachment 179692 [details] [review]
Bug 37883: Use localStorage to remember user selection
Comment 42 Lucas Gass (lukeg) 2025-03-25 16:02:28 UTC
Created attachment 179693 [details] [review]
Bug 37883: A couple minor fixes to results.tt
Comment 43 Lucas Gass (lukeg) 2025-03-25 16:02:31 UTC
Created attachment 179694 [details] [review]
Bug 37883: Fix branchspecific display of unavailable items
Comment 44 Lucas Gass (lukeg) 2025-03-31 09:03:41 UTC
Created attachment 179920 [details] [review]
Bug Bug 37883: Adjust template for new system preference
Comment 45 Lucas Gass (lukeg) 2025-03-31 09:03:44 UTC
Created attachment 179921 [details] [review]
Bug 37883: Add logged in branch available, other, and onloan counts

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 46 Lucas Gass (lukeg) 2025-03-31 09:03:47 UTC
Created attachment 179922 [details] [review]
Bug 37883: Add ability to filter search results location column by logged in location

To test:

1. Apply patch, restart_all, and regenerate CSS ( https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff_interface ) I also recommend clearing your browser cache.
2. Do a catalog search and notice the 'Show local items only' button above the "Location" column.
3. Click it to show information ( in that column ) that is only related to the branch you are currently logged in at.
4. In the same result set have some items that are checked out, withdrawn, lost, damaged, and notforlaon.
5. Play more with the search results and ensure everything is accurate.
Comment 47 Lucas Gass (lukeg) 2025-03-31 09:03:50 UTC
Created attachment 179923 [details] [review]
Bug 37883: Add FilterSearchResultsByLoggedInBranch system preference

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 48 Lucas Gass (lukeg) 2025-03-31 09:03:54 UTC
Created attachment 179924 [details] [review]
Bug 37883: Use localStorage to remember user selection
Comment 49 Lucas Gass (lukeg) 2025-03-31 09:03:57 UTC
Created attachment 179925 [details] [review]
Bug 37883: A couple minor fixes to results.tt
Comment 50 Lucas Gass (lukeg) 2025-03-31 09:04:00 UTC
Created attachment 179926 [details] [review]
Bug 37883: Fix branchspecific display of unavailable items
Comment 51 Lucas Gass (lukeg) 2025-03-31 09:04:04 UTC
Created attachment 179927 [details] [review]
Bug 37883: Correct permissions of atomicupdate file