LP1808006 - Sitemap generator fix to allow shortname parameter.
authorSteven Callender <stevecallender@esilibrary.com>
Tue, 11 Dec 2018 18:18:27 +0000 (13:18 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 8 Mar 2019 19:39:15 +0000 (14:39 -0500)
Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Geoff Sams <gsams@roanoketexas.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/support-scripts/sitemap_generator

index 1a238f5..22bdd8f 100755 (executable)
@@ -163,7 +163,10 @@ sub get_record_ids {
                  )
     ";
     if ($aou_id) {
-        $q .= " WHERE circ_lib IN (SELECT id FROM copy_orgs)";
+        $q .= "
+       INNER JOIN asset.copy ac ON (vc.target_copy = ac.id)
+       WHERE ac.circ_lib IN (SELECT id FROM copy_orgs)
+    ";
     }
     $q .= "
             UNION