@@ -, +, @@ searches - In Administration -> System preferences, make sure the PatronAutoComplete preference is enabled. - In the "Check out" tab in the header, type a partial patron name which will return multiple results and wait for the autocomplete menu to appear.. - Patrons in the autocomplete results should show the branchcode, and patrons from the currently-logged-in library should be highlighted in green. - Submit your partial name in the "check out" tab. - In the search results the branch name of patrons from the currently-logged-in library should be similarly highlighted. - Go to patrons browse for patrons. These results should be highlighted as in the previous steps. --- circ/ysearch.pl | 1 + .../intranet-tmpl/prog/css/src/staff-global.scss | 23 ++++++++++++++++++++ .../en/includes/circ-patron-search-results.inc | 8 ++++++- .../intranet-tmpl/prog/en/includes/js_includes.inc | 25 +++++++++++++++++++++- .../prog/en/modules/members/member.tt | 10 ++++++++- 5 files changed, 64 insertions(+), 3 deletions(-) --- a/circ/ysearch.pl +++ a/circ/ysearch.pl @@ -90,6 +90,7 @@ while ( my $b = $borrowers_rs->next ) { city => $b->city // '', zipcode => $b->zipcode // '', country => $b->country // '', + branchcode => $b->branchcode // '', }; } --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -4383,6 +4383,29 @@ div .suggestion_note { } } +.ac-library { + background-color: #EEE; + border-radius: 4px; + color: #000; + display: inline-block; + font-size: 80%; + padding: 1px 4px; +} + +.ac-currentlibrary { + .ac-library { + background-color: #E6FCB7; + font-weight: bold; + + } +} + +.currentlibrary { + background-color: #E6FCB7; + display: inline-block; + padding: 2px 4px; +} + @media (min-width: 200px) { } --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-patron-search-results.inc @@ -28,7 +28,13 @@