Right now the method for renewing a patron (updating their expiration date), is a javascript: link that upon confirmation redirects back to moremember.pl with a reregistration=y parameter. In order to make this possible without javascript, the logical thing to do would be to make it a real URL:
<a href="/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->" onclick="confirm_reregistration(); return false;">Renew</a> This should work fine, but leaves out the confirmation step. Is the confirmation necessary? Also: Should there be feedback passed back to moremember.pl to let the user know that the patron's expiration date has been updated? Right now a bug prevents the expiration date from even showing up on moremember.pl after the renewal link has been clicked, but even with that bug fixed perhaps there should be a message: "This account has been renewed until xxxx-xx-xx" That's probably doable in the template alone. Is there ever a time when a renewal will fail? Should there be code for passing such an error back to the screen? -- Owen _______________________________________________ Koha-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/koha-devel
