diff --git a/Koha/ILL/Backend/Standard.pm b/Koha/ILL/Backend/Standard.pm index 0e9602094b..388b0ece74 100644 --- a/Koha/ILL/Backend/Standard.pm +++ b/Koha/ILL/Backend/Standard.pm @@ -948,6 +948,7 @@ sub add_request { $request->branchcode( $params->{other}->{branchcode} ); $request->status( $unauthenticated_request ? 'UNAUTH' : 'NEW' ); $request->backend( $params->{other}->{backend} ); + $request->notesopac( $params->{other}->{notesopac} ) if exists $params->{other}->{notesopac}; $request->placed( dt_from_string() ); $request->updated( dt_from_string() ); $request->batch_id( diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc index 8f860228b6..90bd211b88 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/create.inc @@ -103,6 +103,7 @@ [% IF type %] [% INCLUDE "ill/backends/Standard/shared/forms/${type}.inc" %] [% END %] + [% INCLUDE "ill/backends/Standard/shared/notes.inc" %] [% INCLUDE "ill/backends/Standard/shared/custom_fields.inc" %] [% IF whole.value.other.type && unauthenticated_ill && !logged_in_user %]
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/notes.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/notes.inc new file mode 100644 index 0000000000..5ec10d4579 --- /dev/null +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/ill/backends/Standard/shared/notes.inc @@ -0,0 +1,5 @@ +
+ Notes + + +
diff --git a/t/db_dependent/api/v1/ill_requests.t b/t/db_dependent/api/v1/ill_requests.t index d32ba2312f..5fea3acbc8 100755 --- a/t/db_dependent/api/v1/ill_requests.t +++ b/t/db_dependent/api/v1/ill_requests.t @@ -428,7 +428,7 @@ subtest 'patron_list() tests' => sub { subtest 'add() tests' => sub { - plan tests => 2; + plan tests => 3; $schema->storage->txn_begin; @@ -537,5 +537,9 @@ subtest 'add() tests' => sub { ## Authorized user test $t->post_ok( "//$userid:$password@/api/v1/ill/requests" => json => $body )->status_is(201); + # Confirm there is a notesopac value + my $req = Koha::ILL::Requests->search()->next; + ok( $req->notesopac, "notesopac value exists" ) if $req; + $schema->storage->txn_rollback; };