From 02f1058a80c4bd4f28331ce389c71a32b3fe1294 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 19 Aug 2011 14:38:37 -0400 Subject: [PATCH] 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 Signed-off-by: Chris Cormack --- 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 9e5ec3ae6e..73a590d924 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 3e2b3d9ff2..65471a3530 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' %] -