The textmessaging field has been moved in the member editor & changed to a textarea html field
<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>
<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>
</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 -->
use C4::Interface::CGI::Output;
use C4::BookShelves;
use C4::Koha;
+use C4::Members;
my $input = new CGI;
my $dbh = C4::Context->dbh;
authnotrequired => 1,
flagsrequired => {borrow => 1},
});
+my $borrower = getmember('',$borrowernumber);
my @options;
my $counter=0;
foreach my $language (getalllanguages()) {
suggestion => C4::Context->preference("suggestion"),
virtualshelves => C4::Context->preference("virtualshelves"),
languages => \@options,
+ textmessaging => $borrower->{textmessaging},
);
output_html_with_http_headers $input, $cookie, $template->output;