View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12130 | Feature requests | Import/Export | public | 2017-02-14 22:00 | 2017-05-19 12:01 |
Reporter | Assigned To | ||||
Priority | none | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Summary | 12130: Export printable questionnaires - all languages zipped - and make it a bulk action | ||||
Description | Basic idea is to enable an easy way of archiving questionnaires in a standardized format that can be read in any computer by anybody. Surveys are programmed in LimeSurvey usually by people who do not create the questionnaires. The Questionnaires are often created by people who do not manage LimeSuevey. So it would be reasonable to archive the survey in a format that is not related to LimeSurvey nor QueXML. The idea is manage archiving so I would should also work as mass-action. Select a number of surveys, and then generate archive formats (plugin-maybe?).
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Story point estimate | |||||
Users affected % | |||||
related to | 12414 | closed | Bug reports | exporting printable - template assets not visible in some extractors (eg windows default) |
|
|
I would say HTML is better to use if you need to to co-work with doc formats where the actual pre-programming editing goes (eg breaking lines etc). |
|
Also, he's just adding a button in the export action, I see no problem with that. |
|
@1: We have coded a review system for a client. It adds a single text question for each survey page that allows entering comments. In addition to that we also load (using Ajax) previously entered text comments at these question so other can read what colleagues have commented. @t6nnp6nn : You should add a check if required image files exist at /application/controllers/admin/printablesurvey.php(1714): I get a PHP warning there: getimagesize(/var/www/vhosts/mysurveyhosting.com/limesurvey/upload/templates/templatename/files/print_img_radio.png): failed to open stream: No such file or directory One general question: What's the benefit of getting all the HTML of the survey if we can't display it properly after download because no embedded CSS files are loaded? Can we improve that so we can make it a package that can be forwarded to others that includes the survey structure (HTML) + design details (image, CSS)? |
|
The benefit? See the original post. I am using for archiving - collaboration. All material under the template folder is packed with the zip and the CSS of the template itself is loaded. I have not tested it with too many templates though. Works for me at least. All assets related to Yii are not included, yes. @Mazi regarding the error you are getting. Are you able to view the printable version through LS? |
|
@t6nnp6nn: The error also shows up with the printable version because the path to the "printimg..." files is hard coded but at some templates these reside at a different location (e.g. with older templates these were not located within the /files folder but at the template root). RE "All material under the template folder is packed with the zip and the CSS of the template itself is loaded.": At my tests the ZIP files created even when using the default template only contained one single .html file. No images, no CSS, so the file when being viewed at the browser looks pretty ugly. |
|
Must be an issue if you only get html files. |
|
regarding the missing image. It is not related with this feature. I would think the image should be in CSS instead of hard-coded. But again - it's a separate issue - not related to this change at all. |
|
Yes, the missing file is more template related, no bug related to this feature. But the missing CSS and other files I would consider a bug. Do you need any more details to debug this? LS version tested is 2.64.7+170404. |
|
I currently tested on 2.64.7 which is the latest release in github. I will see if I get my hands around 2.64.7+170404 to test. |
|
I tested the default template and only the single html file was created. |
|
I tested on here: tested on v2.65.0 (current master) - also works as expected. I am unable to reproduce. Also unable to get my hands on v2.64.7 for now. Maybe you can test with 'debug'=>2, and see if you get any error output ? |
|
I also only get the HTML file, no template assets exported. Environment:
|
|
@tpartner I have tested on various installations on different set-ups and I am unable to reproduce. |
|
@t6nnp6nn, did that - no errors in either case. I also tried from https://demo.limesurvey.org with the same result. (export attached) |
|
@tpartner I am a bit confused. What do you mean by same result ? The zip you provided has the whole template folder included as meant to. |
|
@t6nnp6nn, that's not what I see (capture-2.png). And, opening questionnaire_214844_en.html gives an un-styled page (capture-3.png). |
|
pretty weird stuff :) |
|
@t6nnp6nn, it may be a Windows issue. What are you testing on? |
|
Yes, Im running ubuntu 14. I wonder if there might be something wrong with the ZIP format generated? |
|
Just to confirm: I am also using a Windows (10) PC and never got more than a single html file within the export. |
|
Okay, so I can extract the template files with 7-Zip so there is obviously a problem when using the native Windows extraction tool. Unfortunately, that is what a large percentage of users will try to use. |
|
I can confirm that using 7zip extracts the "template" folder as well. But at console, there are still ~32 files not being loaded (file not found error). Some from the "assets" folder, some from /styles or /scripts. The HTML layout therefore still looks very "basic" (no colors, logos , ...). |
|
OK. tried to open with 7Zip on Win10 and this kind of shows an no-named empty folder in the root. |
|
No problem. Ping me when ready to re-test. |
|
l'Il lmake a separate issue regarding the zip |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-02-14 22:00 |
|
New Issue | |
2017-02-15 10:20 |
|
Note Added: 43014 | |
2017-02-15 12:04 | DenisChenu | Note Added: 43015 | |
2017-02-15 12:12 |
|
Note Added: 43016 | |
2017-02-15 12:12 |
|
Note Added: 43017 | |
2017-05-17 16:04 | Mazi | Note Added: 43627 | |
2017-05-17 16:04 | Mazi | Note Edited: 43627 | |
2017-05-17 18:09 |
|
Note Added: 43628 | |
2017-05-18 09:11 | Mazi | Note Added: 43636 | |
2017-05-18 09:23 |
|
Note Added: 43638 | |
2017-05-18 09:26 |
|
Note Added: 43639 | |
2017-05-18 10:02 | Mazi | Note Added: 43640 | |
2017-05-18 10:30 |
|
Note Added: 43642 | |
2017-05-18 10:36 | Mazi | Note Added: 43643 | |
2017-05-18 12:13 |
|
Note Added: 43644 | |
2017-05-18 12:53 | tpartner | Note Added: 43645 | |
2017-05-18 13:09 |
|
Note Added: 43646 | |
2017-05-18 13:28 | tpartner | File Added: printable_survey_Test - TP_214844.zip | |
2017-05-18 13:28 | tpartner | Note Added: 43647 | |
2017-05-18 13:28 | tpartner | Note Edited: 43647 | |
2017-05-18 13:48 |
|
Note Added: 43648 | |
2017-05-18 14:03 | tpartner | File Added: capture-3.png | |
2017-05-18 14:03 | tpartner | File Added: capture-2.png | |
2017-05-18 14:03 | tpartner | Note Added: 43650 | |
2017-05-18 14:12 |
|
File Added: Screenshot from 2017-05-18 15:11:38.png | |
2017-05-18 14:12 |
|
Note Added: 43651 | |
2017-05-18 14:18 | tpartner | Note Added: 43652 | |
2017-05-18 14:22 |
|
Note Added: 43653 | |
2017-05-18 14:23 |
|
Note Edited: 43653 | |
2017-05-18 14:28 | Mazi | Note Added: 43654 | |
2017-05-18 14:30 | tpartner | Note Added: 43655 | |
2017-05-18 14:41 | Mazi | Note Added: 43657 | |
2017-05-18 14:45 |
|
Note Added: 43658 | |
2017-05-18 14:46 | tpartner | Note Added: 43659 | |
2017-05-18 18:08 |
|
Assigned To | => user14106 |
2017-05-18 18:08 |
|
Status | new => assigned |
2017-05-19 11:58 |
|
Status | assigned => closed |
2017-05-19 11:58 |
|
Resolution | open => fixed |
2017-05-19 11:58 |
|
Note Added: 43664 | |
2017-05-19 12:01 |
|
Relationship added | related to 12414 |