Bugzilla – Attachment 5069 Details for
Bug 6754
Improve breadcrumbs on lists pages
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Fix for Bug 6754, Improve breadcrumbs on lists pages
SIGNED-OFF-Fix-for-Bug-6754-Improve-breadcrumbs-on.patch (text/plain), 3.69 KB, created by
Nicole C. Engard
on 2011-08-19 19:13:21 UTC
(
hide
)
Description:
[SIGNED-OFF] Fix for Bug 6754, Improve breadcrumbs on lists pages
Filename:
MIME Type:
Creator:
Nicole C. Engard
Created:
2011-08-19 19:13:21 UTC
Size:
3.69 KB
patch
obsolete
>From 8b1751873361c6c005ef207b92786c5a6208d614 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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 <nengard@bywatersolutions.com> >--- > 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' %] > >-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> >+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> [% IF ( category1 ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a> [% ELSE %] Your Lists [% END %] [% ELSIF ( category2 ) %] › [% IF ( viewshelf ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a> [% ELSE %] Public Lists [% END %] [% ELSIF ( showprivateshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=privateshelves">Your Lists</a> [% ELSE %] Your Lists [% END %] [% ELSIF ( showpublicshelves ) %] › [% IF ( viewshelf || edit ) %] <a href="/cgi-bin/koha/virtualshelves/shelves.pl?display=publicshelves">Public Lists</a> [% ELSE %] Public Lists [% END %] [% END %] >+ > [% IF ( viewshelf ) %]› Contents of <i>[% shelfname | html %]</i>[% END %][% IF ( shelves ) %] › Create New List[% END %][% IF ( edit ) %] › Edit List <i>[% shelfname | html %]</i>[% END %]</div> > > <div id="doc" class="yui-t7"> >-- >1.7.2.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6754
:
5068
| 5069