You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be an edge case, but we need to double-check if there are more instances like this.
Reed schema defines the tag measure and its attributes as follows (image attached):
Note that all the attributes are references to other definitions, except for type, which is define withing the measure tag scope. Type is optional. It has choices, but one choice is listed.
Maybe because it has just one choice (one instance of choice with just one possible value), the parser interprets the choices as a value. Other attributes have multiple choices, which is parsed as an array.
I added a short piece of code to correct this. If the attribute has choices, it should parse as an array instead of a string. d69e8a9
# [7.0.0](v6.0.0...v7.0.0) (2020-12-04)
### Bug Fixes
* **annotation:** fix issues with annotations been overwritten when saved ([9e3c0cf](9e3c0cf)), closes [#282](#282)
* **annotation:** get app version from package.json and app id from the current CWRC-Writer instance ([cc52a20](cc52a20))
* **annotation:** improve test to add contributors ([e9841d4](e9841d4))
* **nerve:** use data from the form elements to update the entity ([01a0c37](01a0c37))
* **nssi[nerve]:** skip teiheader when sending document to nssi[nerve] ([f797df5](f797df5)), closes [#285](#285)
* **schematags:** filter tags using uppercase input ([7b8ce13](7b8ce13)), closes [#286](#286)
* assure single attribute dropdown is an array instead of a string ([d69e8a9](d69e8a9)), closes [#283](#283)
### Code Refactoring
* **gitdialog:** provide writer instance to logout component ([9bc1ae6](9bc1ae6))
### Features
* 🎸 config commitzen. Bump up version due to CI changes ([d7119e5](d7119e5))
* 🎸 travis-ci tweak ([7e0f4ad](7e0f4ad))
* 🎸 travis-ci tweaks ([448f75f](448f75f))
### BREAKING CHANGES
* **gitdialog:** provide writer instance to logout component
https://cwrc.ca/islandora/object/ceww%3Ae9fa47db-3dea-41b1-bc73-9ec22366f7a8
edit "measure" tag
click on "type" dropdown
result:
value once selected (let's say first) retains only that single letter (e.g.
type="c"
)The text was updated successfully, but these errors were encountered: