Skip to content

Commit 06453b9

Browse files
Stefan WeilUBMA Sysadmins
authored andcommitted
Fix Primo backend for dedupmrg records
1 parent 05610be commit 06453b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

module/VuFindSearch/src/VuFindSearch/Backend/Primo/RestConnector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ protected function processResponse(string $data, array $params = []): array
474474
$control = $pnx->control;
475475
$display = $pnx->display;
476476
$search = $pnx->search ?? null;
477-
$item['recordid'] = $this->getRecordId($control->recordid[0]);
477+
$recordId = $control->recordid[0];
478+
$recordId = str_starts_with($recordId, 'dedupmrg') ? $search->recordid[0] : $recordId;
479+
$item['recordid'] = $this->getRecordId($recordId);
478480
$item['title'] = $display->title[0] ?? '';
479481
$item['format'] = $display->type ?? [];
480482
// creators (use the search fields instead of display (if available) to get them as an array instead of a

0 commit comments

Comments
 (0)