Revision 61092
Added by Konstantina Galouni almost 3 years ago
DivHelpContentService.java | ||
---|---|---|
193 | 193 |
String link_result_bulk_content = "<div> <div><span class=\"uk-text-bold\"><span uk-icon=\"icon: info\"> </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 "DOI","ACCESS_MODE","DATE".</li> <li>The value "DOI" is required</li> <li>Access mode column should have values: "OPEN","CLOSED" or "EMBARGO".</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 "OPEN".</li> </ul> </div> </div>"; |
194 | 194 |
String link_metadata_content = "<div> <div><span class=\"uk-text-bold\"><span uk-icon=\"icon: info\"> </span> Information:</span> Manage access mode & type of selected research results. For OpenAIRE this functionality isn't available.</div> </div>"; |
195 | 195 |
|
196 |
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>"; |
|
196 |
String portal_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 and 101017452</span></p>"; |
|
197 |
String monitor_dashboard_footer_content = "<p class=\"uk-margin-remove-bottom\"><span style=\"font-size:8pt\">This OpenAIRE MONITOR dashboard is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541 and 101017452</span></p>"; |
|
198 |
String community_footer_content = "<p class=\"uk-margin-remove-bottom\"><span style=\"font-size:8pt\">This OpenAIRE gateway is part of a project that has received funding from the European Union's Horizon 2020 research and innovation programme under grant agreements No. 777541, 731011 and 101017452</span></p>"; |
|
197 | 199 |
|
198 | 200 |
List<DivId> divIds = divIdService.getDivIdsByPortalType(portalType); |
199 | 201 |
|
... | ... | |
219 | 221 |
} else if (div.getName().equals("link-metadata")) { |
220 | 222 |
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, link_metadata_content, false)); |
221 | 223 |
} else if (div.getName().equals("footer")) { |
222 |
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, footer_content, true)); |
|
224 |
if(portalType.equals("community")) { |
|
225 |
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, community_footer_content, true)); |
|
226 |
} else if(portalType.equals("funder") || portalType.equals("ri") || portalType.equals("project") || portalType.equals("organization")) { |
|
227 |
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, monitor_dashboard_footer_content, true)); |
|
228 |
} else { |
|
229 |
this.insertOrUpdateDivHelpContent(new DivHelpContent(div.getId(), portalId, portal_footer_content, true)); |
|
230 |
} |
|
223 | 231 |
} |
224 | 232 |
} |
225 | 233 |
} |
Also available in: Unified diff
[Trunk | Admin Tools Library]: DivHelpContentService.java: Updated default footer div helptext for new communities and added default footer div helptext for new monitor dashboards and other portals.