Browse Source

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
3.0.x
tipaul 20 years ago
parent
commit
608d48d75c
  1. 7
      koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl
  2. 5
      koha-tmpl/opac-tmpl/css/en/opac-main.tmpl
  3. 3
      opac/opac-main.pl

7
koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl

@ -182,13 +182,11 @@
<td colspan="2" >Phone home</td>
<td>Fax</td>
<td>Email</td>
<td>Text Messaging</td>
</tr>
<tr>
<td colspan="2"><input type="text" name="phone" size="20" value="<!-- TMPL_VAR NAME="phone" -->"></td>
<td><input type="text" name="faxnumber" size="20" value="<!-- TMPL_VAR NAME="faxnumber" -->"></td>
<td><input type="text" name="emailaddress" size="20" value="<!-- TMPL_VAR NAME="emailaddress" -->"></td>
<td><input type="text" name="textmessaging" size="20" value="<!-- TMPL_VAR NAME="textmessaging" -->"></td>
</tr>
@ -237,7 +235,10 @@
<tr>
<th colspan="5" >LIBRARY USE</th>
</tr>
<tr>
<td>Borrower message (appears in OPAC)</td>
<td colspan="4"><textarea name="textmessaging" cols="70" rows="3"><!-- TMPL_VAR NAME="textmessaging" --></textarea></td>
</tr>
<tr>
<td> Notes</td>
<td colspan="4"><textarea name="borrowernotes" cols="70" rows="3"><!-- TMPL_VAR NAME="borrowernotes" --></textarea></td>

5
koha-tmpl/opac-tmpl/css/en/opac-main.tmpl

@ -72,7 +72,10 @@
</select>
<input type="submit" value="Change Language" class="button">
</form>
<!-- TMPL_IF name="textmessaging"-->
<h2>Message from the library</h2>
<!-- TMPL_VAR name="textmessaging" -->
<!-- /TMPL_IF -->
<!-- TMPL_ELSE -->
<p><a href="/cgi-bin/koha/opac-user.pl">Log in to Koha</a> to have personal options.</p>
<!-- /TMPL_IF -->

3
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;

Loading…
Cancel
Save