From: Kyle M Hall Date: Mon, 28 Sep 2009 13:45:30 +0000 (-0400) Subject: Implementation of OPAC Message formatting X-Git-Tag: v3.02.00-alpha~70 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=318fd2d57de1cd2878b6eaf6d1e9465eaea473e7;p=koha_gimpoz Implementation of OPAC Message formatting This patch implements the suggestions about the new and old message system made by Owen Leonard. Includes type fix pointed out by Owen. Signed-off-by: Galen Charlton --- diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl index 77ee4069c6..62b6ff4aad 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl @@ -81,8 +81,13 @@ $.tablesorter.addParser({

Messages For You

@@ -92,12 +97,6 @@ $.tablesorter.addParser({

Thank you!

Your corrections have been submitted to the library, and a staff member will update your record as soon as possible.

- -
-

Message from the library

-

-
-
    diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 487c136a8a..b61ad37deb 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -270,6 +270,13 @@ if ( GetMessagesCount( $borrowernumber, 'B' ) ) { $template->param( bor_messages => 1 ); } +if ( $borr->{'opacnote'} ) { + $template->param( + bor_messages => 1, + opacnote => $borr->{'opacnote'}, + ); +} + $template->param( bor_messages_loop => GetMessages( $borrowernumber, 'B', 'NONE' ), waiting_count => $wcount,