Corrected the table references in metabib.pm and site_generator.
To test
-------
[1] Apply the patch.
[2] Verify that sitemap_generator no longer crashes.
[3] Verify that open-ils.storage.ordered.metabib.metarecord.records can be
called without crashing.
Signed-off-by: blake <blake@mobiusconsortium.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
my $org = shift;
my $depth = shift;
- my $copies_visible = 'LEFT JOIN asset.copy_attr_vis_cache vc ON (br.id = vc.record '.
+ my $copies_visible = 'LEFT JOIN asset.copy_vis_attr_cache vc ON (br.id = vc.record '.
'AND vc.vis_attr_vector @@ (SELECT c_attrs::query_int FROM asset.patron_default_visibility_mask() LIMIT 1))';
$copies_visible = '' if ($self->api_name =~ /staff/o);
ELSE bre.edit_date::date
END AS edit_date
FROM biblio.record_entry bre
- INNER JOIN asset.copy_attr_vis_cache vc ON (bre.id = vc.record
+ INNER JOIN asset.copy_vis_attr_cache vc ON (bre.id = vc.record
AND vc.vis_attr_vector @@ (
SELECT c_attrs::query_int
FROM asset.patron_default_visibility_mask()