[Trunk | Admin Tools Library]: DivHelpContentService.java: In method "addDivHelpContentsInPortal()" (when creating a new portal), added default footer div help content for divId with name "footer".

This commit is contained in:
Konstantina Galouni 2021-06-04 09:25:55 +00:00
parent 62cb461196
commit e3d5e5679b
1 changed files with 4 additions and 0 deletions

View File

@ -193,6 +193,8 @@ public class DivHelpContentService {
String link_result_bulk_content = "<div> <div><span class=\"uk-text-bold\"><span uk-icon=\"icon: info\">&nbsp;</span> Information:</span> Upload a csv file containing a list of DOIs. For each DOI found in the file, metadata will be fetched from CrossRef or Datacite and will be added to your selected research results.</div> <div class=\"uk-margin-top uk-text-small\"><span class=\"uk-text-bold\">CSV format:</span> <ul class=\"uk-list\"> <li>The format of CSV file should be &quot;DOI&quot;,&quot;ACCESS_MODE&quot;,&quot;DATE&quot;.</li> <li>The value &quot;DOI&quot; is required</li> <li>Access mode column should have values: &quot;OPEN&quot;,&quot;CLOSED&quot; or &quot;EMBARGO&quot;.</li> <li>Date column valid format is YYYY-MM-DD and is required when access mode has value EMBARGO.</li> <li>In case access mode is not available default value is &quot;OPEN&quot;.</li> </ul> </div> </div>";
String link_metadata_content = "<div> <div><span class=\"uk-text-bold\"><span uk-icon=\"icon: info\">&nbsp;</span> Information:</span> Manage access mode &amp; type of selected research results. For OpenAIRE this functionality isn&#39;t available.</div> </div>";
String footer_content = "<p class=\"uk-margin-remove-bottom\"><span style=\"font-size:8pt\">OpenAIRE has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541, 731011 and 101017452</span></p>";
List<DivId> divIds = divIdService.getDivIdsByPortalType(portalType);
for( DivId div : divIds ) {
@ -216,6 +218,8 @@ public class DivHelpContentService {
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, link_result_bulk_content, false));
} else if (div.getName().equals("link-metadata")) {
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, link_metadata_content, false));
} else if (div.getName().equals("footer")) {
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, footer_content, true));
}
}
}