https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23912

--- Comment #3 from Lari Taskula <[email protected]> ---
Created attachment 94812
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94812&action=edit
Bug 23912: Get correct authorised value description for location and ccode
facets in intranet

Bug 17248 made C4::Search::getRecords() parameter $opac unused and causes
location and collection facets to prefer OPAC description over intranet
one in all interfaces, including intranet itself.

This patch restores the functionality provided by $opac parameter.

To reproduce:
1. Go to /cgi-bin/koha/admin/authorised_values.pl?searchfield=LOC and change
   both Description and Description (OPAC) of one row to be different
2. Do the same for /cgi-bin/koha/admin/authorised_values.pl?searchfield=CCODE
3. In intranet, search a record and make sure you are able to see facets after
   performing the search (your search must return multiple records)
4. Add/edit an item of one of these biblios on your results screen
5. Give this item the location and collection code that you changed in steps
1&2
6. In intranet, perform the same search from step 3 again
7. Observe your location and collections facets show Description (OPAC) value
   from step 1 and 2 instead of Description.

To test:
1. Apply patch
2. Try to reproduce the bug again in intranet
3. Observe you will now see Description value instead of Description (OPAC)
4. prove t/db_dependent/Search.t

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to