From: Jeff Godin Date: Thu, 22 May 2014 17:11:26 +0000 (-0400) Subject: Pass token so that we can view our own bookbags X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c0ea51a62e980d96180889812f0082ca4dcfb96d;p=evergreen%2Ftadl.git Pass token so that we can view our own bookbags Pass an auth token (if available) to the container() search when searching for bookbags -- this allows us to HTML view our own lists. Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm index 1a8740c206..9c5c6990d9 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -87,7 +87,10 @@ sub _prepare_biblio_search { } if ($cgi->param("bookbag")) { - $query = "container(bre,bookbag," . int($cgi->param("bookbag")) . ") $query"; + # Pass an auth token if we have one, so that we can search for our own bookbags + + my $container_token = $ctx->{authtoken} || ''; + $query = "container(bre,bookbag," . int($cgi->param("bookbag")) . "," . $container_token . ") $query"; } # Journal title hackery complete