Set $ctx->{my_bookbag} if we are viewing a bookbag and we are the
owner of the bookbag.
Signed-off-by: Jeff Godin <jgodin@tadl.org>
my $fetch_recs = $rec_ids;
+ # Set a clue if we are searching for a bookbag that is owned by the current user
+ if ($ctx->{bookbag} && $ctx->{user}) {
+ $ctx->{my_bookbag} = 1 if ($ctx->{bookbag}->owner eq $ctx->{user}->id);
+ }
+
$self->timelog("Calling get_records_and_facets()");
my ($facets, @data) = $self->get_records_and_facets(
$fetch_recs, $results->{facet_key},