KPAC - Hold results not displaying item title and throwing log error
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 22 Feb 2016 23:15:53 +0000 (18:15 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 7 Oct 2017 00:29:54 +0000 (20:29 -0400)
I believe the path comparison operator in the 'load' subroutine has
a flaw in logic caused by a path-naming problem. The path-matching
function recognizes the kpac/getit_results path as matching positively
for both the load_getit subroutine and the load_getit_results subroutine.

This patch reverses the order in which the matching occurs in an attempt
to resolve the conflict.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm
Open-ILS/src/templates/kpac/getit_results.tt2

index 5dc3414..0a1702d 100644 (file)
@@ -47,7 +47,7 @@ sub load {
     #  Everything below here requires authentication
     # ----------------------------------------------------------------
     return $self->redirect_auth unless $self->editor->requestor;
-
+    return $self->load_getit_results if $path =~ m|kpac/getit_results|;
     # AUTH pages
 
     return Apache2::Const::OK;
index 83040dc..391ed2c 100644 (file)
@@ -29,7 +29,7 @@
         <h2 class="sub_header2">[% l('Hold Successful!') %]</h2>
         <p>
         [% l('Your request for [_1] was successful.', '<a href="' _ mkurl(ctx.kpac_root _ '/record/' _ ctx.bre_id, {}, kill_params) _ '">' _ title_html _ '</a>') %]<br/>
-        [% l('You will be notified when your item is ready for pickup.  You will be able to pick your item up at [_1].', lib_html) %]
+        [% l('You will be notified when your item is ready for pickup.') %]
         <p>
     [% ELSE %]
         <p>