diff --git a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java b/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java index 16ec23856a..8d6c689fca 100644 --- a/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java +++ b/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java @@ -480,10 +480,12 @@ public class ItemTag extends TagSupport { if (j > 0) { - if (isNoBreakLine){ - boolean includeSpace = Boolean.valueOf(ConfigurationManager.getProperty("webui.itemdisplay.inclusespace")).booleanValue(); - String separator = ConfigurationManager.getProperty("webui.itemdisplay.separator"); - out.print((includeSpace?" ":"")+separator+" "); + if (isNoBreakLine){ + String separator = ConfigurationManager.getProperty("webui.itemdisplay.nobreakline.separator"); + if (separator==null){ + separator = "; " + } + out.print(separator); } else { out.print("
"); diff --git a/dspace/config/dspace.cfg b/dspace/config/dspace.cfg index 0d84706980..f104867355 100644 --- a/dspace/config/dspace.cfg +++ b/dspace/config/dspace.cfg @@ -1424,10 +1424,11 @@ report.dir = ${dspace.dir}/reports/ # If a metadata value with style: "doi", "handle" or "resolver" matches a URL # already, it is simply rendered as a link with no other manipulation. -# If nobreakline option is applied for a field in itemdisplay then the following options define the separator string -# and if we want a space before the separator -webui.itemdisplay.inclusespace = false -webui.itemdisplay.separator = ; +# If nobreakline option is applied for a field in itemdisplay then the following option defines the separator string. +# If a non-breaking space is needed before or after the separator, this can be included using   +# (i.e. webui.itemdisplay.separator = ; ) +# If ommitted, the default separator is '; ' +webui.itemdisplay.nobreakline.separator = ; # Specify which strategy use for select the style for an item plugin.single.org.dspace.app.webui.util.StyleSelection = \