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 (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("<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
# 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 &nbsp;
# (i.e. webui.itemdisplay.separator = ;&nbsp;)
# If ommitted, the default separator is ';&nbsp;'
webui.itemdisplay.nobreakline.separator = ;
# Specify which strategy use for select the style for an item
plugin.single.org.dspace.app.webui.util.StyleSelection = \