View | Details | Raw Unified | Return to bug 11904
Collapse All | Expand All

(-)a/circ/circulation.pl (-1 / +5 lines)
Lines 552-558 $template->param( Link Here
552
    branchname        => GetBranchName($borrower->{'branchcode'}),
552
    branchname        => GetBranchName($borrower->{'branchcode'}),
553
    printer           => $printer,
553
    printer           => $printer,
554
    printername       => $printer,
554
    printername       => $printer,
555
    was_renewed       => $query->param('was_renewed') ? 1 : 0,
555
    firstname         => $borrower->{'firstname'},
556
    surname           => $borrower->{'surname'},
557
    showname          => $borrower->{'showname'},
558
    category_type     => $borrower->{'category_type'},
556
    expiry            => format_date($borrower->{'dateexpiry'}),
559
    expiry            => format_date($borrower->{'dateexpiry'}),
557
    roadtype          => $roadtype,
560
    roadtype          => $roadtype,
558
    amountold         => $amountold,
561
    amountold         => $amountold,
Lines 579-584 $template->param( Link Here
579
if ($stickyduedate) {
582
if ($stickyduedate) {
580
    $session->param( 'stickyduedate', $duedatespec );
583
    $session->param( 'stickyduedate', $duedatespec );
581
}
584
}
585
$session->flush;
582
586
583
my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
587
my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
584
$template->param( picture => 1 ) if $picture;
588
$template->param( picture => 1 ) if $picture;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 107-113 function update_child() { Link Here
107
function confirm_reregistration() {
107
function confirm_reregistration() {
108
    var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?"));
108
    var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?"));
109
    if (is_confirmed) {
109
    if (is_confirmed) {
110
    window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&desintation=[% destination %]&reregistration=y';
110
    window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=[% destination %]&reregistration=y';
111
    }
111
    }
112
}
112
}
113
function export_barcodes() {
113
function export_barcodes() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +1 lines)
Lines 150-155 $(document).ready(function() { Link Here
150
[% IF ( borrowernumber ) %]
150
[% IF ( borrowernumber ) %]
151
[% INCLUDE 'members-toolbar.inc' %]
151
[% INCLUDE 'members-toolbar.inc' %]
152
[% END %]
152
[% END %]
153
[% INCLUDE 'messages.inc' %]
153
154
154
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
155
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
155
<div style="display: none;" id="add_message_form">
156
<div style="display: none;" id="add_message_form">
Lines 189-196 $(document).ready(function() { Link Here
189
</form>
190
</form>
190
</div>
191
</div>
191
192
192
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
193
194
[% IF additional_materials %]
193
[% IF additional_materials %]
195
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
194
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
196
    [% additional_materials %]
195
    [% additional_materials %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-brief.tt (-5 / +1 lines)
Lines 76-86 Link Here
76
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
76
    <li><span class="label">Category: </span>[% description %] ([% categorycode %])</li>
77
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
77
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
78
    <li><span class="label">Expiration date: </span>
78
    <li><span class="label">Expiration date: </span>
79
    [% IF ( was_renewed ) %]
79
        [% dateexpiry %]
80
            <strong class="reregistrinfo">[% dateexpiry %]</strong>
81
    [% ELSE %]
82
            [% dateexpiry %]
83
    [% END %]
84
    </li>
80
    </li>
85
    <li><span class="label">Library: </span>[% branchname %]</li>
81
    <li><span class="label">Library: </span>[% branchname %]</li>
86
82
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-7 / +2 lines)
Lines 162-173 function validate1(date) { Link Here
162
</div>
162
</div>
163
[% END %]
163
[% END %]
164
<div class="yui-g">
164
<div class="yui-g">
165
  [% INCLUDE 'messages.inc' %]
165
166
166
[% IF ( unknowuser ) %]
167
[% IF ( unknowuser ) %]
167
   <div class="dialog message">This patron does not exist.</div>
168
   <div class="dialog message">This patron does not exist.</div>
168
[% ELSE %]
169
[% ELSE %]
169
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
170
171
    [% IF ( flagged ) %]
170
    [% IF ( flagged ) %]
172
    <div id="circmessages" class="circmessage attention">
171
    <div id="circmessages" class="circmessage attention">
173
        <ul>
172
        <ul>
Lines 344-354 function validate1(date) { Link Here
344
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
343
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
345
    
344
    
346
    <li><span class="label">Expiration date: </span>
345
    <li><span class="label">Expiration date: </span>
347
    [% IF ( was_renewed ) %]
346
        [% dateexpiry %]
348
            <strong class="reregistrinfo">[% dateexpiry %]</strong>
349
    [% ELSE %]
350
            [% dateexpiry %]
351
    [% END %]
352
    </li>
347
    </li>
353
    
348
    
354
    <li><span class="label">Library: </span>[% branchname %]</li>
349
    <li><span class="label">Library: </span>[% branchname %]</li>
(-)a/members/moremember.pl (-1 lines)
Lines 347-353 $template->param( Link Here
347
    borrowernumber  => $borrowernumber,
347
    borrowernumber  => $borrowernumber,
348
    othernames      => $data->{'othernames'},
348
    othernames      => $data->{'othernames'},
349
    categoryname    => $data->{'description'},
349
    categoryname    => $data->{'description'},
350
    was_renewed     => $input->param('was_renewed') ? 1 : 0,
351
    branch          => $branch,
350
    branch          => $branch,
352
    todaysdate      => C4::Dates->today(),
351
    todaysdate      => C4::Dates->today(),
353
    totalprice      => sprintf("%.2f", $totalprice),
352
    totalprice      => sprintf("%.2f", $totalprice),
(-)a/members/setstatus.pl (-11 / +9 lines)
Lines 31-36 use C4::Context; Link Here
31
use C4::Members;
31
use C4::Members;
32
use C4::Auth;
32
use C4::Auth;
33
33
34
use Koha::I18N;
35
use Koha::Messages;
36
use Koha::DateUtils;
34
37
35
my $input = new CGI;
38
my $input = new CGI;
36
39
Lines 54-69 if ( $reregistration eq 'y' ) { Link Here
54
	$sth->finish;
57
	$sth->finish;
55
	}
58
	}
56
59
60
if ($dateexpiry) {
61
    $dateexpiry = output_pref({dt => dt_from_string($dateexpiry, 'iso'), dateonly => 1});
62
    messages_set(gettext("Patron's account has been renewed until %1", $dateexpiry));
63
}
57
if($destination eq "circ"){
64
if($destination eq "circ"){
58
	if($dateexpiry){
65
    print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
59
        print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber&was_renewed=1");
60
	} else {
61
		print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
62
	}
63
} else {
66
} else {
64
	if($dateexpiry){
67
    print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
65
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber&was_renewed=1");
66
	} else {
67
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
68
	}
69
}
68
}
70
- 

Return to bug 11904