Skip to content

Commit

Permalink
Merge branch 'issue780' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
twagoo committed Jan 11, 2016
2 parents dce96ca + 0ede9f1 commit ee658bc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public class FacetConstants {
* regular expression that matches the language prefix in description (group
* 1 matches the ISO639-3 language code)
*/
public static final String DESCRIPTION_LANGUAGE_PATTERN = "^\\{lang='([A-z-]+)'\\}";
public static final String DESCRIPTION_LANGUAGE_PATTERN = "^\\{(name|code):.*\\}";

/**
* regular expression that matches the syntax of the 'languageCode' field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import eu.clarin.cmdi.vlo.wicket.components.LanguageInfoLink;
import com.google.common.collect.ImmutableSet;
import eu.clarin.cmdi.vlo.FacetConstants;
import eu.clarin.cmdi.vlo.JavaScriptResources;
import eu.clarin.cmdi.vlo.config.VloConfig;
import eu.clarin.cmdi.vlo.pojo.DocumentField;
import eu.clarin.cmdi.vlo.pojo.FacetSelection;
Expand All @@ -38,9 +37,6 @@
import org.apache.wicket.Component;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.extensions.markup.html.basic.SmartLinkMultiLineLabel;
import org.apache.wicket.markup.head.CssHeaderItem;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.JavaScriptHeaderItem;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.Link;
import org.apache.wicket.markup.html.list.ListItem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ public String convertToString(String fieldValue, Locale locale) throws Conversio

@Override
public String convertToString(String fieldValue, Locale locale) throws ConversionException {
//For now, we simply ignore this information (see <https://trac.clarin.eu/ticket/780>)
return fieldValue.replaceAll(FacetConstants.DESCRIPTION_LANGUAGE_PATTERN, "");
}

Expand Down

0 comments on commit ee658bc

Please sign in to comment.