@@ -, +, @@ too --- installer/data/mysql/atomicupdate/bug_27947.pl | 8 ++++---- installer/data/mysql/en/optional/auth_val.yml | 4 ++++ installer/data/mysql/fr-CA/facultatif/auth_val.sql | 3 ++- .../data/mysql/fr-FR/1-Obligatoire/authorised_values.sql | 3 ++- installer/data/mysql/nb-NO/2-Valgfritt/auth_val.sql | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- 6 files changed, 15 insertions(+), 8 deletions(-) --- a/installer/data/mysql/atomicupdate/bug_27947.pl +++ a/installer/data/mysql/atomicupdate/bug_27947.pl @@ -13,10 +13,10 @@ return { say $out "Add AR_CANCELLATION category for authorised values"; $dbh->do(q{ - INSERT IGNORE INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','NOT_FOUND','Item could not be located on shelves'); - }); - $dbh->do(q{ - INSERT IGNORE INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); + INSERT IGNORE INTO authorised_values (category, authorised_value, lib) VALUES + ('AR_CANCELLATION','NOT_FOUND','Item could not be located on shelves'), + ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'), + ('AR_CANCELLATION','OPAC','Cancelled from the OPAC user page') }); say $out "Add AR_CANCELLATION authorised values"; --- a/installer/data/mysql/en/optional/auth_val.yml +++ a/installer/data/mysql/en/optional/auth_val.yml @@ -309,3 +309,7 @@ tables: - category: "AR_CANCELLATION" authorised_value: "DAMAGED" lib: "Item was found to be too damaged to fill article request" + + - category: "AR_CANCELLATION" + authorised_value: "OPAC" + lib: "Cancelled from the OPAC user page" --- a/installer/data/mysql/fr-CA/facultatif/auth_val.sql +++ a/installer/data/mysql/fr-CA/facultatif/auth_val.sql @@ -93,4 +93,5 @@ INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('HOLD_CA -- article request cancellation INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','NOT_FOUND','Item could not be located on shelves'); -INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','OPAC','Cancelled from the OPAC user page'); --- a/installer/data/mysql/fr-FR/1-Obligatoire/authorised_values.sql +++ a/installer/data/mysql/fr-FR/1-Obligatoire/authorised_values.sql @@ -727,4 +727,5 @@ INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('HOLD_CA -- article request cancellation INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','NOT_FOUND','Item could not be located on shelves'); -INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','OPAC','Cancelled from the OPAC user page'); --- a/installer/data/mysql/nb-NO/2-Valgfritt/auth_val.sql +++ a/installer/data/mysql/nb-NO/2-Valgfritt/auth_val.sql @@ -112,4 +112,5 @@ INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('HOLD_CA -- article request cancellation INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','NOT_FOUND','Item could not be located on shelves'); -INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','DAMAGED','Item was found to be too damaged to fill article request'); +INSERT INTO authorised_values (category, authorised_value, lib) VALUES ('AR_CANCELLATION','OPAC','Cancelled from the OPAC user page'); --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -879,7 +879,7 @@ if( result ){ $.ajax({ type: "DELETE", - url: '/api/v1/public/patrons/'+borrowernumber+'/article_requests/'+article_request_id, + url: '/api/v1/public/patrons/'+borrowernumber+'/article_requests/'+article_request_id+'?cancellation_reason=OPAC', success: function( data ) { row.parents('tr').hide({ duration: 'slow', --