Skip to content

Commit

Permalink
Merge branch 'master' into UISACQCOMP-166
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam authored Oct 31, 2023
2 parents 44033b8 + fc2f33d commit ccae7e8
Show file tree
Hide file tree
Showing 4 changed files with 173 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## (5.1.0 IN PROGRESS)

* Sort the list of countries based on the current locale. Refs UISACQCOMP-164.
* Add `inputType` prop to `<SingleSearchForm>`. Refs UISACQCOMP-165.

## [5.0.0](https://github.com/folio-org/stripes-acq-components/tree/v5.0.0) (2023-10-12)
[Full Changelog](https://github.com/folio-org/stripes-acq-components/compare/v4.0.2...v5.0.0)
Expand Down
6 changes: 6 additions & 0 deletions lib/AcqList/SingleSearchForm/SingleSearchForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const SingleSearchForm = ({
selectedIndex,
changeSearchIndex,
searchableOptions,
inputType,
}) => {
const [translatedSearchableIndexes, setTranslatedSearchableIndexes] = useState();
const intl = useIntl();
Expand Down Expand Up @@ -96,6 +97,10 @@ const SingleSearchForm = ({
searchableOptions={searchableOptions}
searchableIndexesPlaceholder={searchableIndexesPlaceholder}
selectedIndex={selectedIndex}
inputType={inputType}
lockWidth
newLineOnShiftEnter
onSubmitSearch={submitSearch}
/>

<Button
Expand Down Expand Up @@ -135,6 +140,7 @@ SingleSearchForm.propTypes = {
]),
selectedIndex: PropTypes.string,
changeSearchIndex: PropTypes.func,
inputType: PropTypes.string,
};

SingleSearchForm.defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion translations/stripes-acq-components/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
"acquisition_method.technical": "Technical",
"filter.acqUnit.noAcqUnit": "Sin unidad de adquisición",
"filter.placeholder": "Filtro",
"fundDistribution.fundStatus.Inactive": "Inactive",
"fundDistribution.fundStatus.Inactive": "Inactivo",
"fundDistribution.fundStatus.Frozen": "Frozen",
"resultsCount": "{resultsCount, number} {resultsCount, plural, one {record found} other {records found}}",
"filter.expenseClass": "Expense class",
Expand Down
165 changes: 165 additions & 0 deletions translations/stripes-acq-components/sk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
{
"label.sourceFilter": "Source",
"sources.api": "API",
"sources.edi": "EDI",
"sources.marc": "MARC",
"sources.user": "User",
"filter.false": "No",
"filter.true": "Yes",
"label.emptyValue": " ",
"validation.required": "Required!",
"label.acqUnits": "Acquisition units",
"fileUploader.dropFile": "Drag and drop to upload a document",
"fileUploader.selectFile": "or choose file",
"button.close": "Close",
"button.save": "Save",
"modal.resultsHeader": "Search results",
"modal.noSourceYet": "No source yet",
"modal.totalSelected": "Total selected: {count}",
"fundDistribution.addBtn": "Add fund distribution",
"fundDistribution.amount": "Amount",
"fundDistribution.code": "Code",
"fundDistribution.encumbrance": "Encumbrance",
"fundDistribution.id": "Fund ID",
"label.tags": "Tags",
"searchAndFilter": "Search & filter",
"search": "Search",
"resetAllFilters": "Reset all",
"paymentMethod.cash": "Cash",
"paymentMethod.card": "Credit card",
"paymentMethod.eft": "EFT",
"paymentMethod.depAccount": "Deposit account",
"paymentMethod.physicalCheck": "Physical check",
"paymentMethod.bankDraft": "Bank draft",
"paymentMethod.internalTransfer": "Internal transfer",
"paymentMethod.other": "Other",
"fundDistribution.value": "Value",
"fundDistribution.type": "Type",
"fundDistribution.type.sign.percent": "%",
"fundDistribution.type.percent": "Percent",
"fundDistribution.type.amount": "Amount",
"fundDistribution.remainingAmount": "Remaining amount to be distributed: {remainingAmount}",
"validation.fundDistributionType": "All distributions should be the same type",
"validation.shouldBeEqualToTotalAmount": "The percentage or amount(s) should be equal 100% of the total",
"showTags": "Show tags",
"addTagFor": "Add tag for: {filterValue}",
"filter.tags": "Tags",
"fundDistribution.name": "Fund",
"fundDistribution.adjustmentDescription": "Adjustment",
"validation.fundDistribution.uniqueFunds": "You can not have multiple distributions for the same fund with the same expense class.",
"validation.cantBeNegativeOrEmpty": "Can not be negative or empty",
"label.contributor": "Contributor",
"label.contributorType": "Contributor type",
"label.productId": "Product ID",
"label.qualifier": "Qualifier",
"label.productIdType": "Product ID type",
"FormFooter.cancel": "Cancel",
"FormFooter.save": "Save & close",
"filter.organization.lookup": "Organization look-up",
"filter.organization.lookupNoSupport": "Organization look-up is not supported",
"order.status.closed": "Closed",
"order.status.open": "Open",
"order.status.pending": "Pending",
"order.type.oneTime": "One-Time",
"order.type.ongoing": "Ongoing",
"order.format.electronicResource": "Electronic Resource",
"order.format.physicalResource": "Physical Resource",
"order.format.PEMix": "P/E Mix",
"order.format.other": "Other",
"fundDistribution.initialEncumbrance": "Initial encumbrance",
"fundDistribution.currentEncumbrance": "Current encumbrance",
"organization": "Organization",
"tagWasAdded": "Tag was added",
"tagWasNotAdded": "Tag was not added",
"newTagWasNotCreated": "New tag was not created",
"receiving.itemStatus.In process": "In process",
"receiving.itemStatus.On order": "On order",
"receiving.itemStatus.Available": "Available",
"receiving.itemStatus.In transit": "In transit",
"receiving.itemStatus.Order closed": "Order closed",
"receiving.itemStatus.Undefined": "Undefined",
"filter.user.lookup": "User look-up",
"filter.user.lookupNoSupport": "user look-up is not supported",
"piece.pieceFormat.electronic": "Electronic",
"piece.pieceFormat.physical": "Physical",
"piece.pieceFormat.other": "Other",
"piece.pieceStatus.expected": "Expected",
"piece.pieceStatus.received": "Received",
"validation.cantContainSpaces": "Spaces aren't allowed",
"no-ui-plugin-find-user": "[no user-selection plugin]",
"modal.selectAll": "Select all",
"fundDistribution.expenseClass": "Expense class",
"validation.invalidURL": "URL is not valid, must include URL scheme. Eg. ftp://",
"modal.selectItem": "{value} checkbox",
"modal.selectItemDefault": "record {value} checkbox",
"noPermissionsMessage": "You do not have permissions for this page.",
"fundDistribution.unavailableFund": "<b>Unavailable fund name</b>",
"currency": "Currency",
"currentExchangeRate": "Current exchange rate",
"useSetExchangeRate": "Use set exchange rate",
"useSetExchangeRate.tooltip": "Choose another currency to interact with this field",
"setExchangeRate": "Set exchange rate",
"setExchangeRate.tooltip": "Check use set exchange rate to interact with this field",
"validation.shouldBePositive": "Should be positive",
"referenceNumbers.addReferenceNumbers": "Add vendor reference number",
"referenceNumbers.refNumber": "Vendor reference number",
"referenceNumbers.refNumberType": "Vendor reference type",
"referenceNumbers.refNumberType.subscriptionRefNumber": "Vendor subscription reference number",
"referenceNumbers.refNumberType.internalNumber": "Vendor internal number",
"referenceNumbers.refNumberType.continuationRefNumber": "Vendor continuation reference number",
"referenceNumbers.refNumberType.refNumber": "Vendor order reference number",
"referenceNumbers.refNumberType.titleNumber": "Vendor title number",
"exchangeRate": "Exchange rate",
"appMenu.keyboardShortcuts": "Keyboard shortcuts",
"filter.acqUnit": "Acquisition unit",
"shortcut.new": "Create a new record",
"shortcut.edit": "Edit a record",
"shortcut.save": "Save a record",
"shortcut.expandCollapse": "Expand or collapse an accordion",
"shortcut.expandAllSections": "Expand all accordions",
"shortcut.collapseAllSections": "Collapse all accordions",
"shortcut.search": "Go to Search & Filter pane",
"shortcut.openShortcutModal": "View keyboard shortcuts list",
"holding.createFromLocation": "Create new holdings for location",
"holding.label": "Select holdings",
"location.label": "Name (code)",
"validation.shouldBePositiveAmount": "Amount must be a positive number",
"invalidReference": "Invalid reference",
"acquisition_method.approvalPlan": "Approval plan",
"acquisition_method.dda": "Demand driven acquisitions (DDA)",
"acquisition_method.depository": "Depository",
"acquisition_method.eba": "Evidence based acquisitions (EBA)",
"acquisition_method.exchange": "Exchange",
"acquisition_method.free": "Free",
"acquisition_method.gift": "Gift",
"acquisition_method.internalTransfer": "Internal transfer",
"acquisition_method.membership": "Membership",
"acquisition_method.other": "Other",
"acquisition_method.purchase": "Purchase",
"acquisition_method.purchaseAtVendorSystem": "Purchase at vendor system",
"acquisition_method.technical": "Technical",
"filter.acqUnit.noAcqUnit": "No acquisition unit",
"filter.placeholder": "Filter",
"fundDistribution.fundStatus.Inactive": "Inactive",
"fundDistribution.fundStatus.Frozen": "Frozen",
"resultsCount": "{resultsCount, number} {resultsCount, plural, one {record found} other {records found}}",
"filter.expenseClass": "Expense class",
"filter.fundCode": "Fund code",
"button.apply": "Apply",
"filter.numberRange.max": "To",
"filter.numberRange.min": "From",
"holdings.deleteModal.heading": "Delete Holdings",
"holdings.deleteModal.message": "This piece is connected to records in inventory. After this edit there will be no other pieces OR items connected to the related Holdings record(s). After making this change would you like FOLIO to delete the Holdings record(s)?",
"holdings.deleteModal.keepHoldings": "Keep Holdings",
"filter.dynamic.emptyMessage": "Start typing to load options",
"validation.cantBeNegative": "Can not be negative",
"validation.maxCantBeLessMin": "\"To\" can not be less than \"From\"",
"validation.cannotMixTypesForZeroPrice": "Fund distribution types cannot be mixed for a price of 0",
"versionHistory.pane.header": "Version history",
"versionHistory.pane.sub": "{count, plural, one {# version} other {# versions}}",
"versionHistory.card.changed": "Changed",
"versionHistory.card.select.tooltip": "View this version",
"versionHistory.card.version.current": "Current version",
"versionHistory.card.version.original": "Original version",
"versionHistory.deletedRecord": "Record deleted"
}

0 comments on commit ccae7e8

Please sign in to comment.