Skip to content

Commit

Permalink
Merge pull request #853 from HDRUK/release-preprod/v3.2.0
Browse files Browse the repository at this point in the history
GAT-1732: Release preprod/v3.2.0
  • Loading branch information
loki-sinclair-hdruk authored Nov 7, 2022
2 parents 0451c00 + 91e5a1c commit 9d25388
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/filters/filters.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export default class FiltersService {
Object.keys(filters).forEach(filterKey => {
// 9. Set filter values to title case (all except publisher) / upper case (publisher) and remove white space
if (filterKey === 'publisher') {
filters[filterKey] = filters[filterKey].map(value =>
value.includes('>') ? value.split(' > ')[1].toString().toUpperCase().trim() : value.toString().toUpperCase().trim()
filters[filterKey] = filters[filterKey].map(value =>
value.includes('>') ? value.split('>')[1].toString().toUpperCase().trim() : value.toString().toUpperCase().trim()
);
} else {
filters[filterKey] = filters[filterKey].map(value => (filterKey === 'spatial') ? value.toString().trim() : helper.toTitleCase(value.toString().trim()));
Expand Down

0 comments on commit 9d25388

Please sign in to comment.