my ($config, $set_due_time) = ('/openils/conf/opensrf_core.xml', 0);
+# list of patron home_ous to check for expiry dates
+my $libraries = "103, 109, 110, 122, 126";
+
GetOptions(
"bootstrap=s" => \$config,
"set_due_time" => \$set_due_time,
WHERE aoc.due_date > au.expire_date
AND au.expire_date > NOW()
AND au.expire_date < NOW() + '2 years'::interval
- AND au.home_ou IN (103, 110, 126)
+ AND au.home_ou IN ($libraries)
ORDER BY au.expire_date
STMT
AND ac.due_date > au.expire_date
AND au.expire_date > NOW()
AND au.expire_date < NOW() + '2 years'::interval
- AND au.home_ou IN (103, 110, 126)
+ AND au.home_ou IN ($libraries)
AND ac.checkin_time IS NULL
UPDATE