]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/XXXX.function.copy_location_group_visible.sql
ca49b549f1687755ab6e2950e5486262dba92a32
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / XXXX.function.copy_location_group_visible.sql
1 BEGIN;
2
3 CREATE OR REPLACE FUNCTION asset.location_group_default () RETURNS TEXT AS $f$
4     SELECT '!()'::TEXT; -- For now, as there's no way to cause a location group to hide all copies.
5 /*
6     SELECT  '!(' || ARRAY_TO_STRING(ARRAY_AGG(search.calculate_visibility_attribute(id, 'location_group')),'|') || ')'
7       FROM  asset.copy_location_group
8       WHERE NOT opac_visible;
9 */
10 $f$ LANGUAGE SQL IMMUTABLE;
11
12 COMMIT;
13