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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-2 / +2 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 %]&destination=[% destination %]&reregistration=y';
111
    }
111
    }
112
}
112
}
113
function export_barcodes() {
113
function export_barcodes() {
Lines 161-167 function searchToHold(){ Link Here
161
        <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button>
161
        <button class="btn btn-small dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button>
162
            <ul class="dropdown-menu">
162
            <ul class="dropdown-menu">
163
                [% IF ( CAN_user_borrowers ) %]
163
                [% IF ( CAN_user_borrowers ) %]
164
                    <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% cardnumber %]&amp;destination=[% destination %]&amp;reregistration=y">Renew patron</a></li>
164
                    <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=[% destination %]&amp;reregistration=y">Renew patron</a></li>
165
                [% ELSE %]
165
                [% ELSE %]
166
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li>
166
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li>
167
                [% END %]
167
                [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +2 lines)
Lines 720-726 No patron matched <span class="ex">[% message %]</span> Link Here
720
720
721
			[% IF ( warndeparture ) %]
721
			[% IF ( warndeparture ) %]
722
			<li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
722
			<li><span class="circ-hlt">Expiration:</span> Patron's card will expire soon.
723
			Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% cardnumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
723
            Patron's card expires on [% expiry %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
724
724
725
			</li>
725
			</li>
726
			[% END %]
726
			[% END %]
Lines 733-739 No patron matched <span class="ex">[% message %]</span> Link Here
733
733
734
			[% IF ( expired ) %]
734
			[% IF ( expired ) %]
735
			<li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
735
			<li><span class="circ-hlt">Expiration:</span> Patron's card has expired.
736
			[% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;cardnumber=[% cardnumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
736
            [% IF ( expiry ) %]Patron's card expired on [% expiry %][% END %] <a href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=circ&amp;reregistration=y">Renew</a> or <a href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]">Edit Details</a>
737
737
738
			</li>
738
			</li>
739
			[% END %]
739
			[% END %]
(-)a/members/setstatus.pl (-12 / +10 lines)
Lines 37-43 my $input = new CGI; Link Here
37
checkauth($input, 0, { borrowers => 1 }, 'intranet');
37
checkauth($input, 0, { borrowers => 1 }, 'intranet');
38
38
39
my $destination = $input->param("destination") || '';
39
my $destination = $input->param("destination") || '';
40
my $cardnumber = $input->param("cardnumber");
41
my $borrowernumber=$input->param('borrowernumber');
40
my $borrowernumber=$input->param('borrowernumber');
42
my $status = $input->param('status');
41
my $status = $input->param('status');
43
my $reregistration = $input->param('reregistration') || '';
42
my $reregistration = $input->param('reregistration') || '';
Lines 55-69 if ( $reregistration eq 'y' ) { Link Here
55
	}
54
	}
56
55
57
if($destination eq "circ"){
56
if($destination eq "circ"){
58
	if($dateexpiry){
57
    if($dateexpiry){
59
        print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber&was_renewed=1");
58
        print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber&was_renewed=1");
60
	} else {
59
    } else {
61
		print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
60
        print $input->redirect("/cgi-bin/koha/circ/circulation.pl?$borrowernumber");
62
	}
61
    }
63
} else {
62
} else {
64
	if($dateexpiry){
63
    if($dateexpiry){
65
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber&was_renewed=1");
64
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?$borrowernumber&was_renewed=1");
66
	} else {
65
    } else {
67
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
66
        print $input->redirect("/cgi-bin/koha/members/moremember.pl?$borrowernumber");
68
	}
67
    }
69
}
68
}
70
- 

Return to bug 14910