Skip to content
Snippets Groups Projects
Commit 6e1773ae authored by Sascha Steinbiss's avatar Sascha Steinbiss
Browse files

do not always strip 'term=' from product

parent 82c78ace
No related branches found
No related tags found
No related merge requests found
...@@ -776,15 +776,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements ...@@ -776,15 +776,7 @@ public class GFFStreamFeature extends SimpleDocumentFeature implements
StringBuilder buffer = new StringBuilder(); StringBuilder buffer = new StringBuilder();
if (values != null && values.size() > 0) { if (values != null && values.size() > 0) {
for (int value_index = 0; value_index < values.size(); ++value_index) { for (int value_index = 0; value_index < values.size(); ++value_index) {
final String this_value; String this_value = GFF3Encoder.encode(values.elementAt(value_index));
int index = values.elementAt(value_index).indexOf("term=");
// strip off the 'term=' etc
if (index > -1)
this_value = GFF3Encoder.encode(values.elementAt(value_index)
.substring(index + 5,
values.elementAt(value_index).length() - 1));
else
this_value = GFF3Encoder.encode(values.elementAt(value_index));
if (value_index > 0 && value_index < (values.size())) { if (value_index > 0 && value_index < (values.size())) {
buffer.append(","); buffer.append(",");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment