Bug 17947: Searching my library first shows the branchcode by the search bar rather...
authorAleisha Amohia <aleishaamohia@hotmail.com>
Mon, 23 Jan 2017 22:32:39 +0000 (22:32 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Feb 2017 15:39:26 +0000 (15:39 +0000)
Test Plan
1: Turn on SearchMyLibraryFirst and go into OPAC
2: It should say Search (in <Branch Code> Only)
3: Apply patch and refresh page. It should now say Search (in <Library Name> only)

Sponsored-by: Catalyst IT
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc

index 0170701..fbb7d51 100644 (file)
                                 <label for="masthead_search"> Search
                                     [% UNLESS ( Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 ) %]
                                         [% IF ( mylibraryfirst ) %]
-                                            (in [% mylibraryfirst %] only)
+                                            (in [% Branches.GetName( mylibraryfirst ) %] only)
                                         [% END %]
                                     [% END %]
                                 </label>