Bugzilla – Attachment 79384 Details for
Bug 17854
New Print slip and close button next to Close button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17854: Adds print/close icon in checkout
Bug-17854-Adds-printclose-icon-in-checkout.patch (text/plain), 3.21 KB, created by
Michal Denar
on 2018-09-25 19:32:49 UTC
(
hide
)
Description:
Bug 17854: Adds print/close icon in checkout
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2018-09-25 19:32:49 UTC
Size:
3.21 KB
patch
obsolete
>From 2561974457b4cb4adc527803281b3519d867a544 Mon Sep 17 00:00:00 2001 >From: Christopher Brannon <cbrannon@cdalibrary.org> >Date: Mon, 24 Sep 2018 19:51:36 +0000 >Subject: [PATCH] Bug 17854: Adds print/close icon in checkout > >To Test: >1) Apply Patch. >2) Go to a patron checkout screen (circulation.pl). >3) Note there are no clear screen buttons in the upper right corner of >the checkout window. >4) Turn on the DisplayClearScreenButton preference. >5) Go back to patron checkout. Note the clear screen button and the new >printer icon next to it. >6) Click the printer icon. This will trigger a print slip function, and >close the patron screen. >7) Try to arrow back to the previous screen. Should go to main menu and >not the patron screen, just like the orginal close button (X). > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > .../intranet-tmpl/prog/css/src/staff-global.scss | 21 +++++++++++++++++++++ > .../prog/en/modules/circ/circulation.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/members-menu.js | 4 ++++ > 3 files changed, 26 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >index 1074910..188dc3e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss >@@ -2686,6 +2686,27 @@ li { > } > } > >+#printclearscreen { >+ position: absolute; >+ right: 43px; >+ top: 0; >+ >+ a { >+ background-color: #EEE; >+ border-radius: 0 0 0 5px; >+ color: #CCC; >+ display: block; >+ font-size: 160%; >+ font-weight: bold; >+ padding: 0 .7em .2em; >+ text-decoration: none; >+ text-shadow: 0 -1px 0 #666; >+ >+ &:hover { >+ color: #CC0000; >+ } >+ } >+} > .pager { > background-color: #E8E8E8; > border: 1px solid #BCBCBC; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >index dbf3e2d..def073a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt >@@ -508,6 +508,7 @@ No patron matched <span class="ex">[% message | html %]</span> > [% END %] > [% IF ( DisplayClearScreenButton ) %] > <span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span> >+ <span id="printclearscreen"><a href="#" title="Print slip and clear screen"><i class="fa fa-print"></i></a></span> > [% END %] > > [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >index ecc22b1..d49b31e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/members-menu.js >@@ -75,6 +75,10 @@ $(document).ready(function(){ > $(".btn-group").removeClass("open"); > return false; > }); >+ $("#printclearscreen").click(function(){ >+ printx_window("slip"); >+ window.location.replace("/cgi-bin/koha/circ/circulation.pl"); >+ }); > $("#searchtohold").click(function(){ > searchToHold(); > return false; >-- >2.1.4
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 17854
:
79342
|
79384
|
79942
|
84472