# HG changeset patch # User Sebastian Kruse # Date 1357820472 -3600 # Node ID e6b72868e395c8d21e425a614170d7e9c833ba4f # Parent ea856995abac475a26ece5f7c28209a2554f3b69 Allow more than one field of the same name (append the content) diff -r ea856995abac -r e6b72868e395 war/scripts/sti/STICore.js --- a/war/scripts/sti/STICore.js Thu Jan 10 13:20:42 2013 +0100 +++ b/war/scripts/sti/STICore.js Thu Jan 10 13:21:12 2013 +0100 @@ -381,7 +381,11 @@ isHeader = false; } else { var value = $(this).text(); - descriptionData[lastHeader] = value; + if (descriptionData[lastHeader] != null) + //append if a field occures more than once + descriptionData[lastHeader] += "\n" + value; + else + descriptionData[lastHeader] = value; isHeader = true; } }