Remove configuration for including space - change configuration option name

This commit is contained in:
EKT
2012-09-10 13:38:22 +03:00
parent 8bfd621d10
commit 7f287cfd14
2 changed files with 11 additions and 8 deletions

View File

@@ -480,10 +480,12 @@ public class ItemTag extends TagSupport
{ {
if (j > 0) if (j > 0)
{ {
if (isNoBreakLine){ if (isNoBreakLine){
boolean includeSpace = Boolean.valueOf(ConfigurationManager.getProperty("webui.itemdisplay.inclusespace")).booleanValue(); String separator = ConfigurationManager.getProperty("webui.itemdisplay.nobreakline.separator");
String separator = ConfigurationManager.getProperty("webui.itemdisplay.separator"); if (separator==null){
out.print((includeSpace?" ":"")+separator+" "); separator = "; "
}
out.print(separator);
} }
else { else {
out.print("<br />"); out.print("<br />");

View File

@@ -1424,10 +1424,11 @@ report.dir = ${dspace.dir}/reports/
# If a metadata value with style: "doi", "handle" or "resolver" matches a URL # 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. # 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 # If nobreakline option is applied for a field in itemdisplay then the following option defines the separator string.
# and if we want a space before the separator # If a non-breaking space is needed before or after the separator, this can be included using &nbsp;
webui.itemdisplay.inclusespace = false # (i.e. webui.itemdisplay.separator = ;&nbsp;)
webui.itemdisplay.separator = ; # If ommitted, the default separator is ';&nbsp;'
webui.itemdisplay.nobreakline.separator = ;
# Specify which strategy use for select the style for an item # Specify which strategy use for select the style for an item
plugin.single.org.dspace.app.webui.util.StyleSelection = \ plugin.single.org.dspace.app.webui.util.StyleSelection = \