From dd06f06f892c11e222039ae195bc7848d7b1565c Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Thu, 14 Aug 2008 13:44:13 -0600 Subject: [PATCH] Implement changes to audio feedback proposed on list change embed to object move object tags to included file consider using wav files for media instead of swf in practice this is problematic. Firefox on windows doesn't have a Media Player plugin there may be a later patch with the wav files, just for fun. I won't use it though. --- circ/circulation.pl | 5 ++++- koha-tmpl/intranet-tmpl/prog/en/includes/sound.inc | 3 +++ .../prog/en/modules/circ/circulation.tmpl | 3 +-- .../prog/en/modules/circ/returns.tmpl | 3 +-- .../prog/en/modules/members/moremember.tmpl | 2 +- 5 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/sound.inc diff --git a/circ/circulation.pl b/circ/circulation.pl index 5e3d997..20c6285 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -103,7 +103,7 @@ for (@failedrenews) { $renew_failed[$_] = 1; } my $sessionID = $query->cookie("CGISESSID") ; my $session = get_session($sessionID); -my $sounderror; +my ( $sounderror, $soundok ); my @soundederrors = @{ $session->param( 'soundederrors' ) } if ( $session->param( 'soundederrors' ) ); my %soundederrors; for ( @soundederrors ) { $soundederrors{ $_ } = 1; } @@ -302,6 +302,7 @@ if ($barcode) { # we have no blockers for issuing and any issues needing confirmation have been resolved AddIssue( $borrower, $barcode, $datedue, $cancelreserve ); $inprocess = 1; + $soundok = 1; } elsif ($issueconfirmed){ # FIXME: Do something? Or is this to *intentionally* do nothing? } @@ -328,6 +329,7 @@ if ($barcode) { if ($noquestion) { AddIssue( $borrower, $barcode, $datedue ); $inprocess = 1; + $soundok = 1; } } $template->param( @@ -767,6 +769,7 @@ $template->param( picture => 1 ) if $picture; $session->param('soundederrors', [ keys %soundederrors ] ); $template->param( sounderror => $sounderror, + soundok => $soundok, ); $template->param( diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/sound.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/sound.inc new file mode 100644 index 0000000..6728933 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/sound.inc @@ -0,0 +1,3 @@ + + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl index bfb23fd..86ac0d9 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tmpl @@ -60,8 +60,7 @@ $.tablesorter.addParser({ - - +
Patron's account has been renewed until
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl index acba3d0..5ab1de2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tmpl @@ -317,8 +317,7 @@ function Dopop(link) { - - +
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl index 39cb051..f4d4f80 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tmpl @@ -81,7 +81,7 @@ if (nodename =="barcodes[]"){
- --> +
-- 1.5.4.3
Item InformationPatron Information