]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
NOJIRA: Update deploy target for UI plugins to better handling tentants using the...
authorRichard Millet <remillet@yahoo.com>
Fri, 4 May 2018 17:52:05 +0000 (10:52 -0700)
committerRichard Millet <remillet@yahoo.com>
Fri, 4 May 2018 17:52:05 +0000 (10:52 -0700)
cspace-ui/cspace#core#template/WEB-INF/web.xml [new file with mode: 0644]
cspace-ui/cspace#core#template/index.html [new file with mode: 0644]

diff --git a/cspace-ui/cspace#core#template/WEB-INF/web.xml b/cspace-ui/cspace#core#template/WEB-INF/web.xml
new file mode 100644 (file)
index 0000000..3c1a184
--- /dev/null
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="3.0" metadata-complete="true">
+        <filter>
+                <filter-name>FallbackResourceFilter</filter-name>
+                <filter-class>org.collectionspace.services.common.filter.FallbackResourceFilter</filter-class>
+        </filter>
+        <filter-mapping>
+                <filter-name>FallbackResourceFilter</filter-name>
+                <url-pattern>/*</url-pattern>
+        </filter-mapping>
+        <filter>
+                <filter-name>ExpiresFilter</filter-name>
+                <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
+                <init-param>
+                        <param-name>ExpiresDefault</param-name>
+                        <param-value>access plus 2 hours</param-value>
+                </init-param>
+        </filter>
+        <filter-mapping>
+                <filter-name>ExpiresFilter</filter-name>
+                <url-pattern>/*</url-pattern>
+        </filter-mapping>
+</web-app>
diff --git a/cspace-ui/cspace#core#template/index.html b/cspace-ui/cspace#core#template/index.html
new file mode 100644 (file)
index 0000000..cf2ecf7
--- /dev/null
@@ -0,0 +1,22 @@
+<html>
+       <head>
+               <meta charset="UTF-8" />
+       </head>
+       <body>
+               <div id="cspace"></div>
+               <script src="/cspace-ui/cspaceUI@@UI_VERSION@.min.js"></script>
+               <script>
+                       cspaceUI({
+                               tenantid: '@TENANT_ID@',
+                               // No quotes for logo value.  Use "undefined" (no quotes) for default logo
+                               logo: @LOGO@,
+                               messages: {
+                               // Override the login page title
+                                       'about.title': '@MESSAGE_TITLE@',
+                               },
+                               basename: '@PLUGIN_BASENAME@',
+                               prettyUrls: true,
+                       });
+               </script>
+       </body>
+</html>