From 81deaa65cf85254180b79f63b99f20798f87c5b9 Mon Sep 17 00:00:00 2001
From: Michael Becker <michael.becker@uni-leipzig.de>
Date: Mon, 1 Jul 2024 15:53:16 +0200
Subject: [PATCH] display temple overview on main page

---
 config/pom.xml.template            | 16 ++++------------
 modules/core/web/content/index.xed | 12 ++++++++++++
 modules/design/web/css/main.css    |  5 +++++
 modules/design/xslt/navigation.xsl |  1 -
 4 files changed, 21 insertions(+), 13 deletions(-)

diff --git a/config/pom.xml.template b/config/pom.xml.template
index 54dcae5..8654326 100644
--- a/config/pom.xml.template
+++ b/config/pom.xml.template
@@ -142,6 +142,10 @@
       <groupId>org.mycore</groupId>
       <artifactId>mycore-iview2</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.mycore</groupId>
+      <artifactId>mycore-neo4j</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.mycore</groupId>
       <artifactId>mycore-webtools</artifactId>
@@ -167,10 +171,6 @@
       <groupId>de.uni-leipzig.urz</groupId>
       <artifactId>dptbase-common</artifactId>
     </dependency>
-    <dependency>
-      <groupId>de.uni-leipzig.urz</groupId>
-      <artifactId>dptbase-glossary</artifactId>
-    </dependency>
     <dependency>
       <groupId>de.uni-leipzig.urz</groupId>
       <artifactId>dptbase-agent</artifactId>
@@ -179,14 +179,6 @@
       <groupId>de.uni-leipzig.urz</groupId>
       <artifactId>dptbase-infomail</artifactId>
     </dependency>
-    <dependency>
-      <groupId>de.uni-leipzig.urz</groupId>
-      <artifactId>dptbase-news</artifactId>
-     </dependency>
-    <dependency>
-      <groupId>de.uni-leipzig.urz</groupId>
-      <artifactId>dptbase-neo4j</artifactId>
-    </dependency>
 
     <dependency>
       <groupId>jakarta.servlet</groupId>
diff --git a/modules/core/web/content/index.xed b/modules/core/web/content/index.xed
index 9863954..66b1db5 100644
--- a/modules/core/web/content/index.xed
+++ b/modules/core/web/content/index.xed
@@ -16,6 +16,18 @@
           </p>
         </div>
       </html:section>
+
+      <xed:form xmlns:xed="http://www.mycore.de/xeditor" method="post" class="dpt-editor-form">
+        <xed:if test="not($CurrentUser = 'guest')">
+          <html:section>
+            <div class="container">
+              <h2>Übersicht über die Anlage</h2>
+              <iframe id="temple-graph-view" src="/receive/EgyptPhilaeComplex_complex_00000001?XSL.Style=neo4j_full"
+                      title="complex overview"/>
+            </div>
+          </html:section>
+        </xed:if>
+      </xed:form>
     </div>
 
   </section>
diff --git a/modules/design/web/css/main.css b/modules/design/web/css/main.css
index 296a375..b49f077 100644
--- a/modules/design/web/css/main.css
+++ b/modules/design/web/css/main.css
@@ -2,3 +2,8 @@
 @import url('./fonts.css');
 @import url('./footer.css');
 @import url('./navigation.css');
+
+#temple-graph-view {
+    width: 100%;
+    height: 500px;
+}
\ No newline at end of file
diff --git a/modules/design/xslt/navigation.xsl b/modules/design/xslt/navigation.xsl
index 2ece966..5dc986a 100644
--- a/modules/design/xslt/navigation.xsl
+++ b/modules/design/xslt/navigation.xsl
@@ -11,7 +11,6 @@
     <xsl:for-each select="$loaded_navigation_xml//item[@href=$browserAddress]">
       <ul>
         <xsl:for-each select="child::item">
-          <xsl:message select="concat('usernot: ', @userNot, '; current user: ', $CurrentUser)"/>
           <xsl:if test="not(@userNot = $CurrentUser)">
             <li>
               <xsl:call-template name="addLink">
-- 
GitLab