DS-2265 Publisher information header in submissions will only be shown when there is information available to show

This commit is contained in:
philip Vissenaekens
2014-11-07 14:10:02 +01:00
parent ba1596dd05
commit e7576cefc8

View File

@@ -377,12 +377,12 @@ public class UploadStep extends AbstractSubmissionStep
if (ConfigurationManager.getBooleanProperty("webui.submission.sherparomeo-policy-enabled", true)){ if (ConfigurationManager.getBooleanProperty("webui.submission.sherparomeo-policy-enabled", true)){
List div = divIn.addList("submit-upload-new", List.TYPE_FORM);
div.setHead(T_sherpa_title);
SHERPASubmitService sherpaSubmitService = new DSpace().getSingletonService(SHERPASubmitService.class); SHERPASubmitService sherpaSubmitService = new DSpace().getSingletonService(SHERPASubmitService.class);
if(sherpaSubmitService.hasISSNs(context, item)) { if(sherpaSubmitService.hasISSNs(context, item)) {
List div = divIn.addList("submit-upload-new", List.TYPE_FORM);
div.setHead(T_sherpa_title);
//Since sherpa web service doesn't work reliable with more than 1 issn, perform the service for each issn //Since sherpa web service doesn't work reliable with more than 1 issn, perform the service for each issn
Set<String> issns = sherpaSubmitService.getISSNs(context, item); Set<String> issns = sherpaSubmitService.getISSNs(context, item);