Bugzilla – Attachment 19749 Details for
Bug 10553
Public lists not available from OPAC login page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10553 - Public lists not available from OPAC login page
Bug-10553---Public-lists-not-available-from-OPAC-l.patch (text/plain), 1.58 KB, created by
Marcel de Rooy
on 2013-07-18 07:09:52 UTC
(
hide
)
Description:
Bug 10553 - Public lists not available from OPAC login page
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2013-07-18 07:09:52 UTC
Size:
1.58 KB
patch
obsolete
>From 076837c97469f7815c6be7f2bdbc1af0ec93a965 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 8 Jul 2013 14:37:03 -0400 >Subject: [PATCH] Bug 10553 - Public lists not available from OPAC login page >Content-Type: text/plain; charset=utf-8 > >If you are not logged in to the OPAC, looking at the login page, and you >click the Lists button to see public lists it says there are none. This >patch corrects Auth.pm so that it loads the list of public lists in this >situation. > >To test you must have at least one public list. Make sure you are logged >out of the OPAC and visit the login page (/cgi-bin/koha/opac-user.pl). >Clicking the "Lists" button should show you a list of public shelves. > >Signed-off-by: Liz Rea <liz@catalyst.net.nz> >works as described, and list button is not shown when opacpublic is disabled. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Auth.pm | 8 ++++++++ > 1 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 3c0b804..e3fda83 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -1030,6 +1030,14 @@ sub checkauth { > $template->param( OpacPublic => C4::Context->preference("OpacPublic")); > $template->param( loginprompt => 1 ) unless $info{'nopermission'}; > >+ if($type eq 'opac'){ >+ my ($total, $pubshelves) = C4::VirtualShelves::GetSomeShelfNames(undef, 'MASTHEAD'); >+ $template->param( >+ pubshelves => $total->{pubtotal}, >+ pubshelvesloop => $pubshelves, >+ ); >+ } >+ > if ($cas) { > > # Is authentication against multiple CAS servers enabled? >-- >1.7.7.6
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 10553
:
19491
|
19743
| 19749