array to string search format values
[migration-tools.git] / mig-xml / evergreen_staged_report.xml
index 52f8053..609e5c3 100644 (file)
         <query>SELECT COUNT(ac.id), acl.name, aou.name, ac.x_migrate::TEXT FROM asset_copy_legacy ac JOIN asset.copy_location acl ON acl.id = ac.location JOIN actor.org_unit aou ON aou.id = ac.circ_lib GROUP BY 2, 3, 4 ORDER BY 2, 3, 4</query>
     </report>
 
+   <report>
+        <name>asset_cops_w_loc_one</name>
+        <report_title>Copies with a Location of Stacks</report_title>
+        <tag>assets</tag>
+        <iteration>0</iteration>
+        <heading>Barcode</heading>
+        <query>SELECT barcode FROM asset_copy_legacy WHERE location = 1 AND x_migrate</query>
+    </report>
+
     <!-- report>
         <name>asset_barcode_lengths</name>
         <report_title>Barcode Lengths by Library</report_title>
@@ -730,7 +739,7 @@ id = ac_sc.owner GROUP BY 2,3 ORDER BY 2,3</query>
                <tag>bibs</tag>
                <iteration>0</iteration>
                <heading>Count.Original Search Format.New Search Format</heading>
-               <query>SELECT COUNT(*), x_search_format, x_after_search_format FROM biblio_record_entry_legacy WHERE x_migrate AND x_after_search_format IS NOT NULL GROUP BY 2, 3 ORDER BY 3,2</query>
+               <query>SELECT COUNT(*), ARRAY_TO_STRING(x_search_format,','), ARRAY_TO_STRING(x_after_search_format,',') FROM biblio_record_entry_legacy WHERE x_migrate AND x_after_search_format IS NOT NULL GROUP BY 2, 3 ORDER BY 3,2</query>
        </report>
 
     <report>