From 21b41ee4772a467c804278711590cab1774f1ffa Mon Sep 17 00:00:00 2001 From: Jeff Godin Date: Thu, 22 May 2014 13:11:26 -0400 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 51bdf238e2..9ea57ecd06 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm @@ -96,7 +96,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"; } if ($cgi->param('pubdate') && $cgi->param('date1')) { -- 2.11.0