Check out the LimeSurvey source code on GitHub!

function strip_tags_full does'nt strip -oth- codes

6 years 3 months ago #50204 by jooghe

We're upgrading from 1.85 to 1.90+ Build 9118. I found a difference in the export of datafiles (SPSS and R).
in LS 1.85 the -oth- values in the database (from the "Other" option in eg. a List type question), were stripped so that they appear as a missing value in the exported data file (.dat or .csv).
In 1.90 Now the -oth- value is in the exported data file. Since the type this field is numeric it gives warning messages wen importing the file in R. SPSS does not seem the give warnings, but still it is bit strange to have character values in a numeric field. We use this export also for an export to SAS and there it als generates warnings.

I think the stripping of the "-oth-" text was done in export_data_functions.php with the function strip_tags_full. The line that converts the -oth- values has been commented in LS 1.9.
Do you know what the reason was ? Should it have been handled in the new FlattenText function ?

Thanks for any feedback.

Please Log in to join the conversation.

6 years 3 months ago #50208 by jooghe
And after thinking a bit more...

I bumped on this with questions that had only numeric answercodes.
But it actually makes sense not to filter the -oth- in case the answer codes are character codes. then you can keep -oth- in the data and it is clearly different from a missing value. So you don't want to lose that information.

So -oth- should only be filtered when you have numeric answercodes, or it should be changed to a special value eg. 99999, but that's dangerous as wel. But I guess that this is not an upgrade issue anymore.

We'll advise users to use character answercodes and explain why.


Please Log in to join the conversation.

6 years 3 months ago #50252 by Mazi
If you think it's a bug or it can be easily imporved, please open a ticket at our bugtracker.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form