Bugzilla – Attachment 38726 Details for
Bug 13986
Printing a list only prints the results of the page you are viewing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13986 - Implement fix for OPAC
Bug-13986---Implement-fix-for-OPAC.patch (text/plain), 3.85 KB, created by
Kyle M Hall (khall)
on 2015-04-30 15:02:33 UTC
(
hide
)
Description:
Bug 13986 - Implement fix for OPAC
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-04-30 15:02:33 UTC
Size:
3.85 KB
patch
obsolete
>From cabb9c28ddd0736d87a56e6eb85adfe4c51ec03e Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 21 Apr 2015 14:44:57 -0400 >Subject: [PATCH] Bug 13986 - Implement fix for OPAC > >Tested wit OPAC, full list is printed. >Signed-off-by: Marc Veron <veron@veron.ch> >--- > .../opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 13 +++++++++---- > opac/opac-shelves.pl | 6 +++++- > 2 files changed, 14 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index f81efe6..e6b4ab5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -43,7 +43,7 @@ > > [% INCLUDE 'masthead.inc' %] > <div class="main"> >- <ul class="breadcrumb"> >+ <ul class="breadcrumb noprint"> > <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> > [% IF ( loggedinusername ) %] > <li><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %]</a> <span class="divider">›</span></li> >@@ -91,7 +91,7 @@ > > <div class="container-fluid"> > <div class="row-fluid"> >- [% IF ( OpacNav||loggedinusername ) %] >+ [% IF ( OpacNav||loggedinusername ) && !print %] > <div class="span2"> > <div id="navigation"> > [% INCLUDE 'navigation.inc' IsPatronPage=1 %] >@@ -168,7 +168,7 @@ > <span class="sendlist"><a href="/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber | html %]" class="send" onclick="open('/cgi-bin/koha/opac-sendshelf.pl?shelfid=[% shelfnumber | html %]','win_form','scrollbars=no,resizable=no,height=300,width=450,top=50,left=100'); return false; ">Send list</a></span> > [% END %] > >- <a class="print-small" href="/cgi-bin/koha/opac-shelves.pl" onclick="print(); return false;">Print list</a> >+ <a class="print-small" target="_blank" href="/cgi-bin/koha/opac-shelves.pl?viewshelf=[% shelfnumber %]&sort=[% sort %]&direction=[% direction %]&print=1">Print list</a> > > [% IF ( manageshelf ) %] > <span class="sep">|</span> >@@ -248,7 +248,7 @@ > > </div> <!-- / #toolbar --> > >- <div id="selections-toolbar" class="toolbar"> >+ <div id="selections-toolbar" class="toolbar noprint"> > <span class="checkall"></span> <span class="clearall"></span> <span class="sep">|</span> > <span class="links"> > <span id="selections">Select titles to: </span> >@@ -1023,6 +1023,11 @@ $(function() { > [% IF OPACLocalCoverImages %]KOHA.LocalCover.GetCoverFromBibnumber(false);[% END %] > [% IF ( GoogleJackets ) %]KOHA.Google.GetCoverFromIsbn();[% END %] > $('#sort-submit').hide(); >+ >+ [% IF print %] >+ window.print(); >+ setTimeout('window.close()', 1); >+ [% END %] > }); // document.ready > > function Check(f) { >diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl >index d22529f..2b09535 100755 >--- a/opac/opac-shelves.pl >+++ b/opac/opac-shelves.pl >@@ -33,6 +33,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ > type => "opac", > authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), > }); >-$template->param(listsview => 1); >+ >+$template->param( >+ listsview => 1, >+ print => $query->param('print') >+); > > shelfpage('opac', $query, $template, $loggedinuser, $cookie); >-- >1.7.2.5
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 13986
:
37761
|
37773
|
38192
|
38291
|
38305
|
38496
|
38497
|
38725
|
38726
|
38780
|
38781
|
39916