Skip to content

Commit

Permalink
Merging 7.8 to 7.10
Browse files Browse the repository at this point in the history
* 7.8:
  It is now possible to map XPath expression that points to an attribute to a file chooser. Pointing to a tag will still automatically pick first src attribute from that tag when mapping to a file chooser.
  • Loading branch information
tomusiaka committed Sep 5, 2014
2 parents f886866 + 1aee243 commit 6d80a77
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/com/hannonhill/smt/util/WebServicesUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ private static String trimMetadataFieldValue(String fieldName, String fieldValue

/**
* Assigns given fieldValue of given fieldName to metadata object if it is a standard metadata field or
* adds it to the list of
* dynamicFields.
* adds it to the list of dynamicFields.
*
* @param metadata
* @param dynamicFields
Expand Down Expand Up @@ -306,6 +305,10 @@ else if (field.getChooserType() == ChooserType.FILE)
{
fieldValue = JTidy.tidyContentConditionally(fieldValue);
String path = XmlAnalyzer.getFirstSrcAttribute(fieldValue);

if (path == null)
path = fieldValue;

if (path != null && !path.trim().equals(""))
{
path = path.trim();
Expand Down

0 comments on commit 6d80a77

Please sign in to comment.