From 8b1751873361c6c005ef207b92786c5a6208d614 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Aug 2011 14:38:37 -0400 Subject: [PATCH] [SIGNED-OFF] Fix for Bug 6754, Improve breadcrumbs on lists pages Breadcrumb navigation on the lists pages should give the user links back to the category of list they're viewing, public or private. Patch changes this: Lists -> Contents of (Your list) To this: Lists -> Your lists -> Contents of (Your list) Signed-off-by: Nicole C. Engard --- C4/VirtualShelves/Page.pm | 16 +++++++++------- .../prog/en/modules/virtualshelves/shelves.tt | 3 ++- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/C4/VirtualShelves/Page.pm b/C4/VirtualShelves/Page.pm index 9e5ec3a..73a590d 100644 --- a/C4/VirtualShelves/Page.pm +++ b/C4/VirtualShelves/Page.pm @@ -241,13 +241,15 @@ sub shelfpage ($$$$$) { my $i = 0; my $manageshelf = ShelfPossibleAction( $loggedinuser, $shelfnumber, 'manage' ); $template->param( - shelfname => $shelfname, - shelfnumber => $shelfnumber, - viewshelf => $shelfnumber, - authorsort => $authorsort, - yearsort => $yearsort, - manageshelf => $manageshelf, - itemsloop => $items, + shelfname => $shelfname, + shelfnumber => $shelfnumber, + viewshelf => $shelfnumber, + authorsort => $authorsort, + yearsort => $yearsort, + manageshelf => $manageshelf, + "category$category" => 1, + category => $category, + itemsloop => $items, ); } else { push @paramsloop, { nopermission => $shelfnumber }; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 3e2b3d9..65471a3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -115,7 +115,8 @@ function placeHold () { [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] -