Skip to content

Commit

Permalink
UIU-1191 - Include Retrieval service point column in csv exports.
Browse files Browse the repository at this point in the history
  • Loading branch information
Terala-Priyanka committed Dec 13, 2024
1 parent b546783 commit c381745
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Add optional column "Retrieval service point" to requests search list. Refs UIREQ-1188.
* Increase code coverage for src/ChooseRequestTypeDialog.js by Jest/RTL tests. Refs UIREQ-1044.
* Cleanup retrieval service point implementation from deprecated folder. Refs UIREQ-1211.
* Include `Retrieval service point` column in csv exports. Refs UIREQ-1191.

## [11.0.2] (https://github.com/folio-org/ui-requests/tree/v11.0.2) (2024-12-10)
[Full Changelog](https://github.com/folio-org/ui-requests/compare/v11.0.1...v11.0.2)
Expand Down
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export const reportHeaders = [
'holdShelfExpirationDate',
'position',
'item.barcode',
'item.retrievalServicePointName',
'instance.title',
'instance.contributorNames',
'item.location.libraryName',
Expand Down Expand Up @@ -219,6 +220,7 @@ export const reportHeaders = [
export const expiredHoldsReportHeaders = [
'requester.name',
'requester.barcode',
'item.retrievalServicePointName',
'instance.title',
'item.barcode',
'item.callNumberComponents.prefix',
Expand Down
3 changes: 3 additions & 0 deletions src/routes/RequestsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,9 @@ class RequestsRoute extends React.Component {
const { addressLine1, city, region, postalCode, countryId } = record.deliveryAddress;
record.deliveryAddress = `${addressLine1 || ''} ${city || ''} ${region || ''} ${countryId || ''} ${postalCode || ''}`;
}
if (record.item.retrievalServicePointName) {
record.retrievalServicePointName = record.item.retrievalServicePointName;
}
record.instance.contributorNames = contributorNamesMap.join('; ');
if (record.tags) record.tags.tagList = tagListMap.join('; ');
});
Expand Down
1 change: 1 addition & 0 deletions translations/ui-requests/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
"deliveryAddress": "Delivery address",
"requester.pickupLocation": "Pickup location",
"pickupServicePoint.name": "Pickup service point",
"item.retrievalServicePointName": "Retrieval service point",
"requester.patronGroup.group": "Requester patron group",
"tags.tagList": "Tags",
"printDetails.printCount": "# Copies",
Expand Down

0 comments on commit c381745

Please sign in to comment.