Skip to content

Commit

Permalink
Merge pull request #764 from digirati-co-uk/feature/fix-manifest-import
Browse files Browse the repository at this point in the history
Fixed manifest import error
  • Loading branch information
stephenwf committed Jul 4, 2023
2 parents 658ab45 + 867198f commit 7619f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
-->

### Fixed
- Fix bug when importing Manifests with long labels

## [v2.1.2](https://github.com/digirati-co-uk/madoc-platform/compare/v2.1.1...v2.1.2)
Hotfix release for submissions in progress.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { InternationalString } from '@iiif/presentation-3';

export function trimInternationalString(intString: InternationalString) {
for (const [key, value] of Object.entries(intString)) {
if (value) {
if (value && value[0] && value[0].length > 3000) {
value[0] = value[0].substring(0, 3000);
return intString;
}
Expand Down

0 comments on commit 7619f11

Please sign in to comment.