Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TapirLink #770

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/fix-null-constraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ ALTER TABLE "ENCOUNTER" ALTER COLUMN "HASSPOTIMAGE" DROP NOT NULL;
ALTER TABLE "ENCOUNTER" ALTER COLUMN "HASRIGHTSPOTIMAGE" DROP NOT NULL;
ALTER TABLE "ENCOUNTER" ALTER COLUMN "NUMSPOTSLEFT" DROP NOT NULL;
ALTER TABLE "ENCOUNTER" ALTER COLUMN "NUMSPOTSRIGHT" DROP NOT NULL;
ALTER TABLE "ENCOUNTER" ALTER COLUMN "OKEXPOSEVIATAPIRLINK" DROP NOT NULL;
ALTER TABLE "ENCOUNTER" ALTER COLUMN "OKEXPOSEVIATAPIRLINK" DROP NOT NULL; -- TODO before merge: does some schema need updating as well?
ALTER TABLE "ENCOUNTER" ALTER COLUMN "UNIDENTIFIABLE" DROP NOT NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ allowNicknames=true
#library editing
isCatalogEditable = true

#TapirLink-related settings
#http://www.mantamatcher.org/tapirlink/admin/configurator.php

#GBIF IPT-related settings
#iptURL = http://localhost:8080/ipt-2.0.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ allowNicknames=true
#library editing
isCatalogEditable = true

#TapirLink-related settings
#http://www.mantamatcher.org/tapirlink/admin/configurator.php

#GBIF IPT-related settings
#iptURL = http://localhost:8080/ipt-2.0.2

Expand Down
20 changes: 0 additions & 20 deletions src/main/java/org/ecocean/CommonConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,6 @@ public static String getURLToMastheadGraphic(String context) {
return getProperty("urlToMastheadGraphic", context);
}

public static String getTapirLinkURL(String context) {
return getProperty("tapirLinkURL", context);
}

public static String getIPTURL(String context) {
return getProperty("iptURL", context);
}
Expand Down Expand Up @@ -770,22 +766,6 @@ public static boolean showEXIFData(String context) {
return showEXIF;
}

/**
* This configuration option defines whether a pre-installed TapirLink provider will be used in conjunction with this database to expose
* mark-recapture data to biodiversity frameworks, such as the GBIF.
*
* @return true if a TapirLink provider is used with the framework. False otherwise.
*/
public static boolean useTapirLinkURL(String context) {
initialize(context);
boolean useTapirLink = true;
if ((getProperty("tapirLinkURL", context) != null) && (getProperty("tapirLinkURL",
context).equals("false"))) {
useTapirLink = false;
}
return useTapirLink;
}

public static boolean showMeasurements(String context) {
return showCategory("showMeasurements", context);
}
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/org/ecocean/Encounter.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,6 @@ public void setSampleTakenForDiet(Boolean sampleTakenForDiet) {
// whether this encounter has a right-side spot image extracted
// public boolean hasRightSpotImage = false;

// Indicates whether this record can be exposed via TapirLink
private boolean okExposeViaTapirLink = false;

// whether this encounter has been approved for public display
// private boolean approved = true;
// integers of the latitude and longitude degrees
Expand Down Expand Up @@ -1165,7 +1162,6 @@ public void addAdditionalImageName(SinglePhotoVideo file) {
/*
public void approve() {
approved = true;
okExposeViaTapirLink = true;
}
*/
/**
Expand Down Expand Up @@ -1463,12 +1459,10 @@ public boolean wasRejected() {

public void reject() {
unidentifiable = true;
//okExposeViaTapirLink=false;
}

public void reaccept() {
unidentifiable = false;
//okExposeViaTapirLink=true;
}
*/
public String getGPSLongitude() {
Expand Down Expand Up @@ -2075,14 +2069,6 @@ public String getDWCDecimalLongitude() {
return null;
}

public boolean getOKExposeViaTapirLink() {
return okExposeViaTapirLink;
}

public void setOKExposeViaTapirLink(boolean ok) {
okExposeViaTapirLink = ok;
}

public void setAlternateID(String newID) {
this.otherCatalogNumbers = newID;
}
Expand Down
139 changes: 0 additions & 139 deletions src/main/java/org/ecocean/servlet/EncounterSetTapirLinkExposure.java

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/java/org/ecocean/servlet/MassExposeGBIF.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// TODO before PR: remove this whole file? Or at least post()? Seems like it
// only does tapir link stuff but I don't have context on the product
package org.ecocean.servlet;

import org.ecocean.CommonConfiguration;
Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/bundles/commonConfiguration.properties
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ allowNicknames=true
#library editing
isCatalogEditable = true

#TapirLink-related settings
#http://www.mantamatcher.org/tapirlink/admin/configurator.php

#GBIF IPT-related settings
#iptURL = http://localhost:8080/ipt-2.0.2

Expand Down
1 change: 0 additions & 1 deletion src/main/resources/bundles/de/header.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ userWiki = Benutzer-Wiki
software = Kunden-Software
grid = Raster
general = Bibliotheksverwaltung
tapirLink = TapirLink
iptLink = GBIF IPT
photoKeywords = Foto-Schl\u00FCsselw\u00F6rter
adoptions = Adoptionen
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/bundles/en/header.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ userWiki = User Wiki
software = Client Software
grid = Grid
general = Library Administration
tapirLink = TapirLink
iptLink = GBIF IPT
photoKeywords = Photo Keywords
adoptions = Adoptions
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/bundles/es/header.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ userWiki = Wiki Usuario
software = Software Cliente
grid = Cuadr\u00edcula
general = Administraci\u00f3n de Wildbook
tapirLink = TapirLink
iptLink = GBIF IPT
photoKeywords = Photo Keywords
adoptions = Adopciones
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/bundles/fr/header.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ userWiki = Utilisateur Wiki
software = Logiciel client
grid = Grille
general = Administracion de Wildbook
tapirLink = TapirLink
iptLink = GBIF IPT
photoKeywords = Mots-cl\u00e9s photo
adoptions = Adoptions
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/bundles/it/header.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ userWiki = Wiki dell'utente
software = Software cliente
grid = Griglia
general = Generale
tapirLink = TapirLink
iptLink = GBIF IPT
photoKeywords = Parole chiave foto
adoptions = adozioni
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/org/ecocean/batch/BatchParser.properties
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ column.encounter.photographerEmail=Photographer Email
column.encounter.photographerPhone=Photographer Phone
column.encounter.photographerAddress=Photographer Address
column.encounter.interestedResearchers=Interested Researchers
column.encounter.okExposeViaTapirLink=TapirLink?

# Define required columns.
column.encounter.catalogNumber.required=true
Expand Down Expand Up @@ -177,7 +176,6 @@ format.encounter.photographerEmail=string
format.encounter.photographerPhone=string
format.encounter.photographerAddress=string
format.encounter.interestedResearchers=string+
format.encounter.okExposeViaTapirLink=boolean


#=============
Expand Down
14 changes: 0 additions & 14 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@
/appadmin/batch* = authc, roles[admin]
/EncounterSetSubmitterID = authc, roles[researcher]

/EncounterSetTapirLinkExposure = authc, roles[researcher]
/GenePopExport = authc, roles[researcher]
/individualSearchResultsExport.jsp = authc, roles[researcher]
/encounters/exportSearchResults.jsp = authc, roles[researcher]
Expand Down Expand Up @@ -366,7 +365,6 @@
/MediaAssetAttach= authc, roles[researcher]
/EncounterResetDate = authc, roles[researcher]
/IndividualSearchExportCapture = authc, roles[researcher]
/EncounterSetTapirLinkExposure = authc, roles[researcher]
/EncounterSetLocation = authc, roles[researcher]
/EncounterSetLocationID = authc, roles[researcher]
/CRCExportReport = authc, roles[researcher]
Expand Down Expand Up @@ -1228,12 +1226,6 @@
<servlet-class>org.ecocean.servlet.export.EncounterAnnotationExportExcelFile</servlet-class>
</servlet>


<servlet>
<servlet-name>EncounterSetTapirLinkExposure</servlet-name>
<servlet-class>org.ecocean.servlet.EncounterSetTapirLinkExposure</servlet-class>
</servlet>

<servlet>
<servlet-name>EncounterSetLocation</servlet-name>
<servlet-class>org.ecocean.servlet.EncounterSetLocation</servlet-class>
Expand Down Expand Up @@ -2606,12 +2598,6 @@
<url-pattern>/RemoveEmailAddress</url-pattern>
</servlet-mapping>
-->
<servlet-mapping>
<servlet-name>EncounterSetTapirLinkExposure</servlet-name>
<url-pattern>/EncounterSetTapirLinkExposure</url-pattern>
</servlet-mapping>



<servlet-mapping>
<servlet-name>IndividualSetSex</servlet-name>
Expand Down
Loading