LP#1743639: opac_visible on acplg is not what it seems
authorMike Rylander <mrylander@gmail.com>
Tue, 16 Jan 2018 19:39:08 +0000 (14:39 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 7 Nov 2018 23:50:54 +0000 (18:50 -0500)
commitbb6b8f0dce187a7dfb247f8d981cbf89e3a14eca
treea68de7551ca5eed422ebdf17d58fb09219cb5e48
parent9e8c6bf354189cf4cb96da10e40729a45262bf1c
LP#1743639: opac_visible on acplg is not what it seems

The asset.copy_location_group table has a column called opac_visible.
However, unlike other tables with a column of that name, it controls the
visibility of the location group itself, not the visibility of the copies
within the group.  This is regretable because the 3.0+ search code thinks
that it should hide copies.

This commit adjusts the default location group filter applied to patron
searches so that they act as expected.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/300.schema.staged_search.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.copy_location_group_visible.sql [new file with mode: 0644]