Mercurial > hg > STI-GWT
changeset 70:e6b72868e395 trimmed_data
Allow more than one field of the same name (append the content)
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 10 Jan 2013 13:21:12 +0100 |
parents | ea856995abac |
children | a610b45d0f90 |
files | war/scripts/sti/STICore.js |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }