Bugzilla – Attachment 61040 Details for
Bug 18251
SCO alerts - need a trigger for successful checkouts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18251 - SCO alerts - need a trigger for successful checkouts
Bug-18251---SCO-alerts---need-a-trigger-for-succes.patch (text/plain), 2.09 KB, created by
Nick Clemens (kidclamp)
on 2017-03-13 14:34:51 UTC
(
hide
)
Description:
Bug 18251 - SCO alerts - need a trigger for successful checkouts
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-03-13 14:34:51 UTC
Size:
2.09 KB
patch
obsolete
>From 5142065f7a506d1d310f8f3c13f8adafa23aaa3b Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 13 Mar 2017 14:30:42 +0000 >Subject: [PATCH] Bug 18251 - SCO alerts - need a trigger for successful > checkouts > >This patch adds simple text and a div to allow for sounds to be >configured upon successful SCO checkout > >To test: >1 - Enable sco module >2 - Enable AudioAlerts >3 - Define alert with > Selector: .sco-alert-success > Sound:http://localhost:8081/intranet-tmpl/prog/sound/opening.ogg >4 - Checkout to patron using SCO >5 - Note only feedback is a addition of item to checkouts list >6 - Apply patch >7 - Checkout ot patron via SCO >8 - You should hear the sound specified above >9 - You should also see a note: Item checked out >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 5 +++++ > opac/sco/sco-main.pl | 1 + > 2 files changed, 6 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index d97c5f1..c6aee1d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -160,6 +160,11 @@ > </div> > [% END %] > >+ [% IF ( issued ) %] >+ <span class="sco-alert-success"></span> >+ <p>Item checked out</p> >+ [% END %] >+ > > [% UNLESS ( hide_main ) %] > >diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl >index fadb633..bd29126 100755 >--- a/opac/sco/sco-main.pl >+++ b/opac/sco/sco-main.pl >@@ -201,6 +201,7 @@ elsif ( $op eq "checkout" ) { > if ( $confirmed || $issuenoconfirm ) { # we'll want to call getpatroninfo again to get updated issues. > # warn "issuing book?"; > AddIssue( $borrower, $barcode ); >+ $template->param( issued => 1 ); > # ($borrower, $flags) = getpatroninformation(undef,undef, $patronid); > # $template->param( > # patronid => $patronid, >-- >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 18251
:
61040
|
61211
|
61262
|
61324
|
61343
|
61665
|
61715
|
61716
|
61717
|
61718
|
66186
|
66187
|
66188
|
66189
|
85409
|
85603
|
85604
|
85605
|
85606
|
85607
|
85616
|
85617
|
85618
|
85619
|
85620