From 608d48d75c306ef933cfd6ad8c8234aa31d537e8 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 4 Oct 2004 20:20:24 +0000 Subject: [PATCH] The textmessaging field now appears in opac-main when the user log in. The textmessaging field has been moved in the member editor & changed to a textarea html field --- .../intranet-tmpl/default/en/members/memberentry.tmpl | 7 ++++--- koha-tmpl/opac-tmpl/css/en/opac-main.tmpl | 5 ++++- opac/opac-main.pl | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl index c74c375c98..f22a0c3b9b 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl @@ -182,13 +182,11 @@ Phone home Fax Email - Text Messaging "> "> "> - "> @@ -237,7 +235,10 @@ LIBRARY USE - + + Borrower message (appears in OPAC) + + Notes diff --git a/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl b/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl index efa9856955..c4650874a0 100644 --- a/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl +++ b/koha-tmpl/opac-tmpl/css/en/opac-main.tmpl @@ -72,7 +72,10 @@ - + +

Message from the library

+ +

Log in to Koha to have personal options.

diff --git a/opac/opac-main.pl b/opac/opac-main.pl index 7ab5ab2f64..4220928742 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -8,6 +8,7 @@ use C4::Auth; # get_template_and_user use C4::Interface::CGI::Output; use C4::BookShelves; use C4::Koha; +use C4::Members; my $input = new CGI; my $dbh = C4::Context->dbh; @@ -35,6 +36,7 @@ my ($template, $borrowernumber, $cookie) authnotrequired => 1, flagsrequired => {borrow => 1}, }); +my $borrower = getmember('',$borrowernumber); my @options; my $counter=0; foreach my $language (getalllanguages()) { @@ -49,5 +51,6 @@ $template->param(CGIitemtype => $CGIitemtype, suggestion => C4::Context->preference("suggestion"), virtualshelves => C4::Context->preference("virtualshelves"), languages => \@options, + textmessaging => $borrower->{textmessaging}, ); output_html_with_http_headers $input, $cookie, $template->output; -- 2.39.5