From 318fd2d57de1cd2878b6eaf6d1e9465eaea473e7 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 28 Sep 2009 09:45:30 -0400 Subject: [PATCH] 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 --- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 13 ++++++------- opac/opac-user.pl | 7 +++++++ 2 files changed, 13 insertions(+), 7 deletions(-) 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, -- 2.39.5