Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Editor / Add support for conditional default view
When creating an editor configuration with more than one default view an exception is returned. ``` Error on line 82 of edit.xsl: XPTY0004: A sequence of more than one item is not allowed as the second argument of concat() ``` Instead, select the first default view defined. Also add support for conditionally defined default views: ```xml <view name="default-for-dataset" default="true" displayIfRecord="count(//dcat:Catalog/dcat:dataset) > 0"> <tab id="Dataset" default="true"> <section name="Dataset info"/> </tab> </view> <view name="default-for-service" default="true" displayIfRecord="count(//dcat:Catalog/dcat:service) > 0"> <tab id="Service" default="true"> <section name="Service info"/> </tab> </view> ```
- Loading branch information