Mercurial > hg > sv-survey-output
diff 1/htmlize.sh @ 5:506a5fff117f tip
Switch to clickthroughs for raw data
author | Chris Cannam |
---|---|
date | Fri, 26 Apr 2013 11:49:50 +0100 |
parents | 62138033f1a8 |
children |
line wrap: on
line diff
--- a/1/htmlize.sh Fri Apr 26 11:07:01 2013 +0100 +++ b/1/htmlize.sh Fri Apr 26 11:49:50 2013 +0100 @@ -1,9 +1,11 @@ #!/bin/bash -reqd_long="iam-summary sv-platform-profession happy-summary easy-summary prog--multichoice vamp-summary" +#reqd_long="iam-summary sv-platform-profession happy-summary easy-summary prog--multichoice vamp-summary" reqd_imageonly="response-count-quarterly-nonnorm iam-quarterly location-summary sv-platform-summary sv-platform-quarterly location-platform ua-summary ua-quarterly ua-platform sv-version-summary sv-version-quarterly sv-version-platform feature--multichoice feature-image-layer-respondents sv-plugs--multichoice prog-by-profession otherlang--multichoice" +reqd_imageonly="$reqd_imageonly iam-summary sv-platform-profession happy-summary easy-summary prog--multichoice vamp-summary" + for x in $reqd_long; do pic_url="http://code.soundsoftware.ac.uk/projects/sv-survey-output/repository/raw/1/charts/formatted/$x.png" short="$x" @@ -13,6 +15,9 @@ for x in $reqd_imageonly; do pic_url="http://code.soundsoftware.ac.uk/projects/sv-survey-output/repository/raw/1/charts/formatted/$x.png" - echo '<img src="'$pic_url'">' > html/"$x".html + short="$x" + case "$x" in *nonnorm) short=`echo $x|sed 's/-nonnorm//'` ;; esac + text_url="http://code.soundsoftware.ac.uk/projects/sv-survey-output/repository/entry/1/textout/$short.txt" + echo '<a href="'$text_url'"><img src="'$pic_url'"></a>' > html/"$x".html done