Online Renewal - add date to quipu name keyword entry
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 1 Dec 2022 00:46:23 +0000 (19:46 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 1 Dec 2022 00:46:23 +0000 (19:46 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm

index 692944c..1465f48 100644 (file)
@@ -371,10 +371,13 @@ sub update_user {
 
     # Need to append new keyword for use in reports later
     my $orig_kw = $au->name_keywords;
+    my $dt = DateTime->now;
+    my $dty = $dt->year;
+    my $dtm = $dt->month;
     if ($orig_kw ne '') {
-        $au->name_keywords("$orig_kw quipu_renew");
+        $au->name_keywords("$orig_kw quipu_renew_$dty$dtm");
     } else {
-        $au->name_keywords("quipu_renew");
+        $au->name_keywords("quipu_renew_$dty$dtm");
     }
 
     # Temp renewal is only 30 days, otherwise use perm_interval