From 8a194a552a9465abbc15b420e66da6c7703d7a0a Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Sat, 28 Apr 2018 14:18:59 -0700 Subject: [PATCH] DRYD-387: Added support for setting UI plugin properties 'logo' and 'tenantid'. --- build.properties | 23 ++++- cspace-ui/build.xml | 119 ++++++++++++++++++++------ cspace-ui/cspace#anthro/index.html | 7 ++ cspace-ui/cspace#core/index.html | 7 ++ cspace-ui/cspace#dvp/index.html | 7 ++ cspace-ui/cspace#publicart/index.html | 7 ++ 6 files changed, 143 insertions(+), 27 deletions(-) diff --git a/build.properties b/build.properties index 4fb7d4c9f..f50d2a8a4 100644 --- a/build.properties +++ b/build.properties @@ -6,6 +6,23 @@ host=127.0.0.1 # The instance ID is blank by default. If it is added, by convention, # instance IDs should begin with an underscore (_). E.g.: _trs80 +# +# Default tenant ID's for profiles +# +cspace.profile.core.default.id=1 +cspace.profile.testsci.default.id=2 +cspace.profile.anthro.default.id=1500 +cspace.profile.publicart.default.id=5000 +cspace.profile.bonsai.default.id=3000 +cspace.profile.botgarden.default.id=3500 +cspace.profile.fcart.default.id=1000 +cspace.profile.herbarium.default.id=4000 +cspace.profile.lhmc.default.id=501 +cspace.profile.materials.default.id=2000 + +# +# Release version info +# release.version=5.1 cspace.release=${release.version}-SNAPSHOT cspace.instance.id=${env.CSPACE_INSTANCE_ID} @@ -16,15 +33,17 @@ cspace.services.context=${domain.cspace} cspace.services.war=${cspace.services.context}.war domain.nuxeo=nuxeo-server -# CSpace UI +# CSpace UI plugin defaults cspace.ui.dest= +cspace.ui.tenantid=1 +cspace.ui.logo=undefined +cspace.ui.message.title=CollectionSpace Default Profile cspace.ui.version=latest cspace.ui.basename=/cspace/core cspace.ui.webapp=cspace#core cspace.ui.webapp.name=cspaceUI cspace.ui.js=${cspace.ui.webapp.name}@${cspace.ui.version}.min.js - #nuxeo nuxeo.release=7.10-HF17 nuxeo.ear=nuxeo.ear diff --git a/cspace-ui/build.xml b/cspace-ui/build.xml index f91bfdfda..316a87ee8 100644 --- a/cspace-ui/build.xml +++ b/cspace-ui/build.xml @@ -15,25 +15,13 @@ - - - - - - - - - - - - - - + + Setting primary vars @@ -41,7 +29,30 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -83,6 +117,10 @@ + + + + @@ -90,13 +128,25 @@ - - - + + + + + + + + + + + + + + + @@ -109,13 +159,17 @@ + + + + - + @@ -124,6 +178,17 @@ + + + + + + + + + + + @@ -141,7 +206,7 @@ - + @@ -150,22 +215,26 @@ + + - + - + + + - + diff --git a/cspace-ui/cspace#anthro/index.html b/cspace-ui/cspace#anthro/index.html index 25573678a..e6464aecc 100644 --- a/cspace-ui/cspace#anthro/index.html +++ b/cspace-ui/cspace#anthro/index.html @@ -8,6 +8,13 @@