From c37a46537d6a5c83e83c3623033d140bf0310ffb Mon Sep 17 00:00:00 2001 From: Andrew Woods Date: Tue, 18 Sep 2018 17:13:56 -0400 Subject: [PATCH 01/24] Remove embedded Solr Related to: https://jira.duraspace.org/browse/VIVO-1592 --- .gitignore | 3 +- installer/pom.xml | 7 - installer/solr/pom.xml | 140 ------------------ .../main/webResources/META-INF/context.xml | 9 -- .../WEB-INF/classes/log4j.properties | 13 -- 5 files changed, 2 insertions(+), 170 deletions(-) delete mode 100644 installer/solr/pom.xml delete mode 100644 installer/solr/src/main/webResources/META-INF/context.xml delete mode 100644 installer/solr/src/main/webResources/WEB-INF/classes/log4j.properties diff --git a/.gitignore b/.gitignore index 08b9a4b199..425a6cfbcd 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /build.properties /runtime.properties /ontology/public/catalog-v0001.xml +settings.xml rdf/auth/firsttime/test-user-model.owl utilities/solrtester/.work @@ -11,8 +12,8 @@ utilities/rdbmigration/.work **/.idea **/*.iml **/target - **/overlays +*~ # Eclipse artifacts **/.settings diff --git a/installer/pom.xml b/installer/pom.xml index 2279970483..24e4226985 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -105,18 +105,11 @@ home - solr webapp - - org.vivoweb - vitro-solr - ${vitro-version} - war - org.vivoweb vivo-home diff --git a/installer/solr/pom.xml b/installer/solr/pom.xml deleted file mode 100644 index 061768e4e5..0000000000 --- a/installer/solr/pom.xml +++ /dev/null @@ -1,140 +0,0 @@ - - - 4.0.0 - - org.vivoweb - vivo-installer-solr - 1.11.0-SNAPSHOT - war - - - org.vivoweb - vivo-installer - 1.11.0-SNAPSHOT - .. - - - VIVO Install Solr App - - - - package - - app-name - - - ${app-name}solr - - - maven-war-plugin - - - - true - - - false - - - org.vivoweb - vitro-solr - war - - - - - src/main/webResources - true - - - - - - - - - pinstall - - tomcat-dir - - - - - maven-antrun-plugin - - - remove-webapp - verify - - run - - - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - install - install - - unpack - - - - - ${project.groupId} - ${project.artifactId} - ${project.version} - war - true - ${tomcat-dir}/webapps/${project.build.finalName} - - - - - - - - - - - - - - - maven-install-plugin - - true - - - - maven-clean-plugin - - - - overlays - - - - - - - - - - org.vivoweb - vitro-solr - war - - - diff --git a/installer/solr/src/main/webResources/META-INF/context.xml b/installer/solr/src/main/webResources/META-INF/context.xml deleted file mode 100644 index 51e4c1b846..0000000000 --- a/installer/solr/src/main/webResources/META-INF/context.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - diff --git a/installer/solr/src/main/webResources/WEB-INF/classes/log4j.properties b/installer/solr/src/main/webResources/WEB-INF/classes/log4j.properties deleted file mode 100644 index 89f1b4378f..0000000000 --- a/installer/solr/src/main/webResources/WEB-INF/classes/log4j.properties +++ /dev/null @@ -1,13 +0,0 @@ -log4j.appender.AllAppender=org.apache.log4j.RollingFileAppender -log4j.appender.AllAppender.File= ${catalina.base}/logs/${app-name}solr.log -log4j.appender.AllAppender.MaxFileSize=10MB -log4j.appender.AllAppender.MaxBackupIndex=10 -log4j.appender.AllAppender.layout=org.apache.log4j.PatternLayout -log4j.appender.AllAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{1}] %m%n - -log4j.rootLogger=INFO, AllAppender - -# Make all of the Solr classes quieter... -log4j.logger.org.apache.solr.level = WARNING -# ...except for this one. -log4j.logger.org.apache.solr.core.SolrResourceLoader.level = INFO From c332e3eacf144589650f0529e17d482ab76213ba Mon Sep 17 00:00:00 2001 From: Andrew Woods Date: Wed, 26 Sep 2018 16:38:32 -0400 Subject: [PATCH 02/24] Update default startup_listeners.txt for ElasticSearch Related to: https://jira.duraspace.org/browse/VIVO-1600 --- .gitignore | 1 + .../src/main/webapp/WEB-INF/resources/startup_listeners.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 08b9a4b199..bcbfb1b7de 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ utilities/rdbmigration/.work **/target **/overlays +*~ # Eclipse artifacts **/.settings diff --git a/webapp/src/main/webapp/WEB-INF/resources/startup_listeners.txt b/webapp/src/main/webapp/WEB-INF/resources/startup_listeners.txt index e7bdfa8864..47dd56595d 100644 --- a/webapp/src/main/webapp/WEB-INF/resources/startup_listeners.txt +++ b/webapp/src/main/webapp/WEB-INF/resources/startup_listeners.txt @@ -86,7 +86,7 @@ edu.cornell.mannlib.vitro.webapp.dao.jena.VClassGroupCache$Setup edu.cornell.mannlib.vivo.orcid.OrcidContextSetup -# This should be near the end, because it will issue a warning if the connection to Solr times out. -edu.cornell.mannlib.vitro.webapp.servlet.setup.SolrSmokeTest +# This should be near the end, because it will issue a warning if the connection to Solr or ElasticSearch times out. +edu.cornell.mannlib.vitro.webapp.servlet.setup.SearchEngineSmokeTest org.vivoweb.webapp.startup.i18nSetup From 87c98fd6fb6830fbae127c849c19aaff0dd7d2f6 Mon Sep 17 00:00:00 2001 From: Don Elsborg Date: Tue, 8 Jan 2019 07:48:32 -0700 Subject: [PATCH 03/24] [VIVO-1619] Create weblinks for data properties that have a range of anyURI and begin with http (#94) Related to: https://jira.duraspace.org/browse/VIVO-1619 * weblinks for dataprops of range URI * addressed issues identified by Benjamin and Graham * dependent on Vitro Pull 101 --- .../individual/propStatement-dataDefault.ftl | 108 ------------------ 1 file changed, 108 deletions(-) delete mode 100644 webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl diff --git a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl b/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl deleted file mode 100644 index 9806cb2865..0000000000 --- a/webapp/src/main/webapp/templates/freemarker/body/partials/individual/propStatement-dataDefault.ftl +++ /dev/null @@ -1,108 +0,0 @@ -<#-- $This file is distributed under the terms of the license in LICENSE$ --> - -<#-- VIVO-specific default data property statement template. - - This template must be self-contained and not rely on other variables set for the individual page, because it - is also used to generate the property statement during a deletion. - --> -<#import "lib-datetime.ftl" as dt> -<#import "lib-meta-tags.ftl" as lmt> -<#if property.rangeDatatypeURI?? && property.rangeDatatypeURI?contains("#")> - <#assign datatype = property.rangeDatatypeURI?substring(property.rangeDatatypeURI?last_index_of("#")+1) /> -<#else> - <#assign datatype = "none" /> - -<@showStatement statement property datatype /> - -<#macro showStatement statement property datatype> - <#assign theValue = statement.value /> - - <#if theValue?contains("