Skip to content

Commit 0da6f71

Browse files
committed
Add Koha's ILL request ID as custom reference for IncDocs request
1 parent 6d03671 commit 0da6f71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Koha/Plugin/Com/PTFSEurope/IncDocs.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ sub create_request {
962962
my $result = $incdocs_api->Create_Fulfillment_Request(
963963
{
964964
articleId => $submission->{other}->{articleId},
965-
customReference => $config->{payload_customreference} || '',
965+
customReference => $config->{payload_customreference} || $request->id_prefix.$request->illrequest_id,
966966
lenderLibraryId => $submission->{other}->{lenderLibraryId},
967967
requesterEmail => $requesterEmail,
968968
requesterLibraryId => $requesterLibraryId,

Koha/Plugin/Com/PTFSEurope/IncDocs/intranet-tmpl/configure.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<li>
3535
<label for="IncDocs_payload_customreference_input">Custom reference: </label>
3636
<input id="IncDocs_payload_customreference_input" class="required_input" placeholder="PTFS-Europe TEST - DO NOT FULFILL" type="text" name="payload_customreference" value="[% config.payload_customreference | html %]" size="35">
37-
<a href="#" class="library_limitation" data-bs-toggle="tooltip" title="The hardcoded customReference to be sent when placing the request. Otherwise, it will be sent empty"><i class="fa-solid fa-circle-question"></i></a>
37+
<a href="#" class="library_limitation" data-bs-toggle="tooltip" title="The hardcoded customReference to be sent when placing the request. Otherwise, Koha's ILL request ID is sent as reference"><i class="fa-solid fa-circle-question"></i></a>
3838
</li>
3939
<li>
4040
<label for="IncDocs_payload_requesteremail_input">Fallback requester email: </label>

0 commit comments

Comments
 (0)