cspace-config UI
- 1 What is UI section of the Spec
- 2 Where is UI section of the Spec
- 3 Structure
- 3.1.1 Single elements
- 3.1.1.1 login-dest
- 3.1.1.2 login-failed-dest
- 3.1.1.3 front-page
- 3.1.1.4 find-page
- 3.1.1 Single elements
- 3.2 Mappings
- 3.2.1 url
- 3.2.2 file
- 3.2.3 configure meta
What is UI section of the Spec
Ui specific paths and mappings to enable the UI to render correctly
Where is UI section of the Spec
part of cspace-config usually found in the tenant specific local settings
Structure
<ui>
<web>
<login-dest>/collectionspace/ui/lifesci/html/myCollectionSpace.html</login-dest>
<login-failed-dest>/collectionspace/ui/lifesci/html/index.html</login-failed-dest>
<front-page>/collectionspace/ui/lifesci/html/index.html</front-page>
<find-page>myCollectionSpace</find-page>
<mappings>
<map>
<url></url>
<recordtype>procedure</recordtype>
<file>/lifesci/html/record.html</file>
<configure>
<meta id="title">LifeSci CollectionSpace - {record/web-url}</meta>
</configure>
</map>
</mappings>
</web>
</ui>
Single elements
login-dest
String
no default
url of ui page to go to after successful login
login-failed-dest
String
no default
url of ui page to go to after unsuccessful login
front-page
String
no default
url of ui page to go to after you click the logout button
find-page
String
no default
name of the page for findedit so a specific uispec can be created for it based on the records that are specified as being in-findedit
Mappings
holds magic mappings that map procedure/authority specific urls onto generic UI pages. You can also specify simple regexes to perform on the content of those pages
url
String
*
recordtype