The textmessaging field now appears in opac-main when the user log in.
authortipaul <tipaul>
Mon, 4 Oct 2004 20:20:24 +0000 (20:20 +0000)
committertipaul <tipaul>
Mon, 4 Oct 2004 20:20:24 +0000 (20:20 +0000)
The textmessaging field has been moved in the member editor & changed to a textarea html field

koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl
koha-tmpl/opac-tmpl/css/en/opac-main.tmpl
opac/opac-main.pl

index c74c375..f22a0c3 100644 (file)
                                <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>
index efa9856..c465087 100644 (file)
                        </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 -->
index 7ab5ab2..4220928 100755 (executable)
@@ -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;