@@ -, +, @@ --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 4 ++++ opac/sco/sco-main.pl | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt @@ -133,6 +133,7 @@ + @@ -142,6 +143,7 @@ + @@ -341,6 +343,8 @@ This item has been scheduled for automatic renewal and cannot be renewed [% ELSIF ISSUE.renew_error == 'onsite_checkout' %] This is a on-site checkout, it cannot be renewed. + [% ELSIF ISSUE.renew_error == 'too_unseen' %] + You have renewed this item the maximum number of consecutive times without it being seen by the library. [% ELSE %] No renewals allowed [% END %] --- a/opac/sco/sco-main.pl +++ a/opac/sco/sco-main.pl @@ -99,13 +99,14 @@ if (defined C4::Context->preference('SCOAllowCheckin')) { } my $issuerid = $loggedinuser; -my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed, $newissues) = ( +my ($op, $patronid, $patronlogin, $patronpw, $barcode, $confirmed, $seen, $newissues) = ( $query->param("op") || '', $query->param("patronid") || '', $query->param("patronlogin")|| '', $query->param("patronpw") || '', $query->param("barcode") || '', $query->param("confirmed") || '', + $query->param("seen") || 0, $query->param("newissues") || '', ); @@ -268,7 +269,7 @@ if ( $patron && ( $op eq 'renew' ) ) { my ($status,$renewerror) = CanBookBeRenewed( $borrower->{borrowernumber}, $item->itemnumber ); if ($status) { #warn "renewing"; - AddRenewal( $borrower->{borrowernumber}, $item->itemnumber ); + AddRenewal( $borrower->{borrowernumber}, $item->itemnumber, undef, undef, undef, undef, $seen ); push @newissueslist, $barcode; $template->param( renewed => 1 ); } --