Skip to content

Commit

Permalink
UIIN-3162 apply call number prefix and suffix separately
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDenis committed Jan 14, 2025
1 parent 18cd885 commit 1d1101a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/BrowseResultsList/getBrowseResultsFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ const getBrowseResultsFormatter = ({
return typeName || <NoValue />;
},
callNumber: r => {
const fullCallNumber = [r?.callNumberPrefix, r?.callNumber, r?.callNumberSuffix].filter(Boolean).join(' ');

if (r?.totalRecords) {
return getTargetRecord(r?.fullCallNumber, r, ...commonTargetRecordArgs);
return getTargetRecord(fullCallNumber, r, ...commonTargetRecordArgs);
}
return <MissedMatchItem query={r.fullCallNumber} />;
return <MissedMatchItem query={fullCallNumber} />;
},
classificationNumber: r => {
if (r?.totalRecords) {
Expand Down

0 comments on commit 1d1101a

Please sign in to comment.