From d6ec777650da3135b4491dcc53cd306b6c87a2da Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Thu, 3 May 2018 19:37:20 -0700 Subject: [PATCH] NOJIRA: Adding support for specifying 'primary' tenant via properties file. --- build.properties | 14 --- cspace-ui/build.xml | 107 ++++++++++++++++++---- cspace-ui/cspace#template/WEB-INF/web.xml | 23 +++++ cspace-ui/cspace#template/index.html | 27 ++++++ 4 files changed, 137 insertions(+), 34 deletions(-) create mode 100644 cspace-ui/cspace#template/WEB-INF/web.xml create mode 100644 cspace-ui/cspace#template/index.html diff --git a/build.properties b/build.properties index f50d2a8a4..f537d76b3 100644 --- a/build.properties +++ b/build.properties @@ -6,20 +6,6 @@ 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 # diff --git a/cspace-ui/build.xml b/cspace-ui/build.xml index 70c9fd213..05df8849e 100644 --- a/cspace-ui/build.xml +++ b/cspace-ui/build.xml @@ -5,10 +5,35 @@ - + + + + + + + + + + + + + + + + + + @@ -22,16 +47,28 @@ - + Setting primary vars + The value of primary.profile.plugin.name is ${primary.profile.plugin.name} + + The value of primary.profile.plugin.name is ${primary.profile.plugin.name} + + - + + + + + + + + + + + + + + + + + + + + - + + -o ${primary.profile.plugin.js} --fail --insecure --remote-name --location https://unpkg.com/${primary.profile.plugin.package}@${primary.profile.plugin.version}/dist/${primary.profile.plugin.name}.min.js - + - + + - + - + @@ -115,10 +178,17 @@ + + + + + + + - + @@ -136,7 +206,6 @@ - @@ -147,7 +216,6 @@ - @@ -179,9 +247,8 @@ - - + @@ -189,7 +256,6 @@ - @@ -218,16 +284,17 @@ - - - + + - + diff --git a/cspace-ui/cspace#template/WEB-INF/web.xml b/cspace-ui/cspace#template/WEB-INF/web.xml new file mode 100644 index 000000000..b476587bd --- /dev/null +++ b/cspace-ui/cspace#template/WEB-INF/web.xml @@ -0,0 +1,23 @@ + + + + FallbackResourceFilter + org.collectionspace.services.common.filter.FallbackResourceFilter + + + FallbackResourceFilter + /* + + + ExpiresFilter + org.apache.catalina.filters.ExpiresFilter + + ExpiresDefault + access plus 12 hours + + + + ExpiresFilter + /* + + \ No newline at end of file diff --git a/cspace-ui/cspace#template/index.html b/cspace-ui/cspace#template/index.html new file mode 100644 index 000000000..d87b070d6 --- /dev/null +++ b/cspace-ui/cspace#template/index.html @@ -0,0 +1,27 @@ + + + + + + +
+ + + + + -- 2.47.3