Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarijo committed Dec 31, 2023
1 parent ab2d1ac commit e2049e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/main/java/widoco/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ private void loadPropertyFile(String path) throws IOException {
abstractSection = propertyFile.getProperty(Constants.PF_ABSTRACT_SECTION_CONTENT);
contextURI = propertyFile.getProperty(Constants.PF_CONTEXT_URI, "");
mainOntologyMetadata.setTitle(propertyFile.getProperty(Constants.PF_ONT_TITLE, "Title goes here"));
mainOntologyMetadata.setCreationDate(propertyFile.getProperty(Constants.PF_DATE_CREATED, "Creation date"));
mainOntologyMetadata.setModifiedDate(propertyFile.getProperty(Constants.PF_DATE_MODIFIED, "Modified date"));
mainOntologyMetadata.setCreationDate(propertyFile.getProperty(Constants.PF_DATE_CREATED, "Date created"));
mainOntologyMetadata.setModifiedDate(propertyFile.getProperty(Constants.PF_DATE_MODIFIED, "Date modified"));
mainOntologyMetadata.setIssuedDate(propertyFile.getProperty(Constants.PF_DATE_ISSUED, "Date issued"));
mainOntologyMetadata.setPreviousVersion(propertyFile.getProperty(Constants.PF_PREVIOUS_VERSION));
mainOntologyMetadata.setThisVersion(propertyFile.getProperty(Constants.PF_THIS_VERSION_URI));
mainOntologyMetadata.setLatestVersion(propertyFile.getProperty(Constants.PF_LATEST_VERSION_URI));
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/widoco/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public class Constants {
public static final String PF_CONTRIBUTORS_INSTITUTION = "contributorsInstitution";
public static final String PF_CONTRIBUTORS_INSTITUTION_URI = "contributorsInstitutionURI";
public static final String PF_DATE_CREATED = "dateCreated";
public static final String PF_DATE_ISSUED = "dateIssued";
public static final String PF_DATE_MODIFIED = "dateModified";
public static final String PF_DESCRIPTION = "description";
public static final String PF_DOI = "DOI";
Expand Down Expand Up @@ -498,15 +499,15 @@ private static String getAgents(ArrayList<Agent> auth) {
}
if (currAuth.getInstitutionName() != null && !"".equals(currAuth.getInstitutionName())) {
if (currAuth.getInstitutionURL() != null && !"".equals(currAuth.getInstitutionURL())) {
agents += ", (<a href=\"" + currAuth.getInstitutionURL() + "\">" + currAuth.getInstitutionName()
+ "</a>)";
agents += ", <a href=\"" + currAuth.getInstitutionURL() + "\">" + currAuth.getInstitutionName()
+ "</a>";
} else {
agents += ", " + currAuth.getInstitutionName();
}
} else {
if (currAuth.getInstitutionURL() != null && !"".equals(currAuth.getInstitutionURL())) {
agents += ", (<a href=\"" + currAuth.getInstitutionURL() + "\">" + currAuth.getInstitutionURL()
+ "</a>)";
agents += ", <a href=\"" + currAuth.getInstitutionURL() + "\">" + currAuth.getInstitutionURL()
+ "</a>";
}
}
if(currAuth.getEmail()!=null && !"".equals(currAuth.getEmail())){
Expand All @@ -518,7 +519,7 @@ private static String getAgents(ArrayList<Agent> auth) {
agents += "</dd>";
}
} catch (Exception e) {
logger.error("Error while writing authors, their urls or their instititions.");
logger.error("Error while writing authors, their urls or their institutions.");
}
return agents;
}
Expand Down

0 comments on commit e2049e8

Please sign in to comment.