-
+
- Home › [% IF ( loggedinusername ) %]
- [% FOREACH USER_INF IN USER_INFO %][% USER_INF.title %] [% USER_INF.firstname %] [% USER_INF.surname %][% END %] › @@ -91,7 +91,7 @@
- [% IF ( OpacNav||loggedinusername ) %]
+ [% IF ( OpacNav||loggedinusername ) && !print %]
[% INCLUDE 'navigation.inc' IsPatronPage=1 %]
@@ -168,7 +168,7 @@
Send list
[% END %]
- Print list
+ Print list
[% IF ( manageshelf ) %]
|
@@ -248,7 +248,7 @@
-
+
|
Select titles to:
@@ -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) {
--- a/opac/opac-shelves.pl
+++ a/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);
--