counting "reshelving" as "available"
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Oct 2006 20:38:49 +0000 (20:38 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 4 Oct 2006 20:38:49 +0000 (20:38 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6384 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/biblio.pm
Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/metabib.pm

index c38dd33..2f7b5ca 100644 (file)
@@ -56,7 +56,7 @@ sub record_copy_count {
                                        $visible
                                        AND cn.deleted IS FALSE
                                        AND cp.deleted IS FALSE
-                                       AND cp.status = 0)
+                                       AND cp.status IN (0,7))
                        ) AS available,
                        sum(
                                (SELECT count(cp.id)
@@ -325,7 +325,7 @@ sub global_record_copy_count {
                                        JOIN $cs_table cs ON (cs.id = cp.status)
                                        JOIN $cl_table cl ON (cl.id = cp.location)
                                  WHERE cn.record = ?
-                                       AND cp.status = 0
+                                       AND cp.status IN (0,7)
                                        $copies_visible
                                  GROUP BY 1
                                                UNION
index f362c1f..33c7f3c 100644 (file)
@@ -313,7 +313,7 @@ sub metarecord_copy_count {
                                        JOIN $cl_table cl ON (cp.location = cl.id)
                                        JOIN $descendants a ON (cp.circ_lib = a.id)
                                  WHERE r.metarecord = ?
-                                       AND cp.status = 0
+                                       AND cp.status IN (0,7)
                                        AND cn.deleted IS FALSE
                                        AND cp.deleted IS FALSE
                                        $copies_visible