temporary workaround for holds error when user isn't logged in and doesn't select...
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 14 Jan 2014 01:49:10 +0000 (20:49 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 14 Jan 2014 17:52:43 +0000 (12:52 -0500)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm

index c50e1dd..fa42b12 100644 (file)
@@ -93,7 +93,7 @@ sub load_getit {
         ]);
     }
 
-    # If user is logged in and has a default pickup location, grab it
+    # If user is logged in and has a default pickup location for holds, grab it
     if ($ctx->{user}) {
         my $set_map = $self->ctx->{user_setting_map};
         if ($$set_map{'opac.default_pickup_location'}) {
@@ -101,7 +101,6 @@ sub load_getit {
         }
     }
 
-
     $self->ctx->{page} = 'getit'; # repair the page
     return Apache2::Const::OK;
 }
@@ -117,6 +116,11 @@ sub login_and_place_hold {
     return Apache2::Const::HTTP_BAD_REQUEST 
         unless $pickup_lib =~ /^\d+$/;
 
+    #Temporary workaround for selection problem - if PINES (value 1) is selected, reload page
+    if ($pickup_lib == '1') {
+        return $self->load_login;
+    }
+
     my $new_uri = $self->apache->unparsed_uri;
     my $sep = ($new_uri =~ /\?/) ? '&' : '?';