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

(-)a/circ/circulation.pl (-1 / +1 lines)
Lines 709-715 $template->param( Link Here
709
    surname           => $borrower->{'surname'},
709
    surname           => $borrower->{'surname'},
710
    showname          => $borrower->{'showname'},
710
    showname          => $borrower->{'showname'},
711
    category_type     => $borrower->{'category_type'},
711
    category_type     => $borrower->{'category_type'},
712
    was_renewed       => $query->param('was_renewed') ? 1 : 0,
713
    expiry            => format_date($borrower->{'dateexpiry'}),
712
    expiry            => format_date($borrower->{'dateexpiry'}),
714
    categorycode      => $borrower->{'categorycode'},
713
    categorycode      => $borrower->{'categorycode'},
715
    categoryname      => $borrower->{description},
714
    categoryname      => $borrower->{description},
Lines 754-759 $template->param( Link Here
754
if ($stickyduedate) {
753
if ($stickyduedate) {
755
    $session->param( 'stickyduedate', $duedatespec );
754
    $session->param( 'stickyduedate', $duedatespec );
756
}
755
}
756
$session->flush;
757
757
758
my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
758
my ($picture, $dberror) = GetPatronImage($borrower->{'borrowernumber'});
759
$template->param( picture => 1 ) if $picture;
759
$template->param( picture => 1 ) if $picture;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 69-75 function update_child() { Link Here
69
function confirm_reregistration() {
69
function confirm_reregistration() {
70
    var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?"));
70
    var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?"));
71
    if (is_confirmed) {
71
    if (is_confirmed) {
72
    window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&desintation=[% destination %]&reregistration=y';
72
    window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=[% destination %]&reregistration=y';
73
    }
73
    }
74
}
74
}
75
function export_barcodes() {
75
function export_barcodes() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +1 lines)
Lines 128-133 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
128
[% IF ( borrowernumber ) %]
128
[% IF ( borrowernumber ) %]
129
[% INCLUDE 'members-toolbar.inc' %]
129
[% INCLUDE 'members-toolbar.inc' %]
130
[% END %]
130
[% END %]
131
[% INCLUDE 'messages.inc' %]
131
132
132
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
133
<!--  INITIAL BLOC : PARAMETERS & BORROWER INFO -->
133
<div style="display: none;" id="add_message_form">
134
<div style="display: none;" id="add_message_form">
Lines 167-174 var MSG_EXPORT_SELECT_CHECKOUTS = _("You must select checkout(s) to export"); Link Here
167
</form>
168
</form>
168
</div>
169
</div>
169
170
170
[% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% expiry %]</div>[% END %]
171
172
[% IF additional_materials %]
171
[% IF additional_materials %]
173
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
172
    <div id="materials" class="dialog message">Note about the accompanying materials: <br />
174
    [% additional_materials %]
173
    [% 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 182-193 function validate1(date) { Link Here
182
</div>
182
</div>
183
[% END %]
183
[% END %]
184
<div class="yui-g">
184
<div class="yui-g">
185
  [% INCLUDE 'messages.inc' %]
185
186
186
[% IF ( unknowuser ) %]
187
[% IF ( unknowuser ) %]
187
   <div class="dialog message">This patron does not exist.</div>
188
   <div class="dialog message">This patron does not exist.</div>
188
[% ELSE %]
189
[% ELSE %]
189
    [% IF ( was_renewed ) %]<div class="dialog message">Patron's account has been renewed until [% dateexpiry %]</div>[% END %]
190
191
    [% IF ( flagged ) %]
190
    [% IF ( flagged ) %]
192
    <div id="circmessages" class="circmessage attention">
191
    <div id="circmessages" class="circmessage attention">
193
        <ul>
192
        <ul>
Lines 358-368 function validate1(date) { Link Here
358
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
357
    <li><span class="label">Registration date: </span>[% dateenrolled %]</li>
359
    
358
    
360
    <li><span class="label">Expiration date: </span>
359
    <li><span class="label">Expiration date: </span>
361
    [% IF ( was_renewed ) %]
360
        [% dateexpiry %]
362
            <strong class="reregistrinfo">[% dateexpiry %]</strong>
363
    [% ELSE %]
364
            [% dateexpiry %]
365
    [% END %]
366
    </li>
361
    </li>
367
    
362
    
368
    <li><span class="label">Library: </span>[% branchname %]</li>
363
    <li><span class="label">Library: </span>[% branchname %]</li>
(-)a/members/moremember.pl (-1 lines)
Lines 429-435 $template->param( Link Here
429
    borrowernumber  => $borrowernumber,
429
    borrowernumber  => $borrowernumber,
430
    othernames      => $data->{'othernames'},
430
    othernames      => $data->{'othernames'},
431
    categoryname    => $data->{'description'},
431
    categoryname    => $data->{'description'},
432
    was_renewed     => $input->param('was_renewed') ? 1 : 0,
433
    branch          => $branch,
432
    branch          => $branch,
434
    todaysdate      => C4::Dates->today(),
433
    todaysdate      => C4::Dates->today(),
435
    totalprice      => sprintf("%.2f", $totalprice),
434
    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