Project

General

Profile

Feature #6850

Export group of results as PDF

Added by Miguel José Amez Riendas over 5 years ago. Updated over 5 years ago.

Status:
Assigned
Priority:
Normal
Category:
Exercises
Target version:
Start date:
28/11/2013
Due date:
% Done:

50%

Estimated time:
25.00 h
Complexity:
Challenging
SCRUM pts - complexity:
13

Description

In our company we have developed a new feature in the export of results.
If you download Chamilo, you will be able to download exercise results in XLS or CSV, but not the complete evidence in one PDF per attempt, and all toguether zipped.
We have developed this issue and is fully functional on Chamilo 1.9.6.
We can upload this contribution if you want.
We are attaching to this ticket a pdf with a sample pdf and some snapshots with the use case:

- first, you select the output format for the results as zipped pdfs:
!save icon.png!

- Second, we tell the user to wait until the file is downloaded:

- And finally we download the file:

I attach here the resulting pdf:
!Javier De La Cuerda.pdf!

This is ALL programmed. What do you think about including it?


Files

save icon.png (105 KB) save icon.png Miguel José Amez Riendas, 28/11/2013 14:39
export_to_Zipped_pdf.png (95.1 KB) export_to_Zipped_pdf.png Miguel José Amez Riendas, 28/11/2013 14:39
waiting_for_download.png (76.9 KB) waiting_for_download.png Miguel José Amez Riendas, 28/11/2013 14:39
save_file.png (110 KB) save_file.png Miguel José Amez Riendas, 28/11/2013 14:39
Javier De La Cuerda.pdf (102 KB) Javier De La Cuerda.pdf Miguel José Amez Riendas, 28/11/2013 14:39
reports_pdf.rar (22.3 KB) reports_pdf.rar PDF Reports PHP Code Miguel José Amez Riendas, 02/04/2014 09:23

History

#1

Updated by Yannick Warnier over 5 years ago

Hello Miguel,

It would be very nice of you to send us the code, indeed. Are you familiar with Github? This is our preferred way to review code contributions and integrate them into the next version of Chamilo.

You can
  • fork the Chamilo repository on Github itself (https://github.com/chamilo/chamilo-lms)
  • then clone it on your computer (git clone https://github.com/miguel/chamilo-lms)
  • then set yourself into the 1.9.x branch (git checkout --track origin/1.9.x)
  • then add your contribution to your own repository, locally (git commit)
  • then push these changes to your own repository online (git push)
  • then go on Github and, for the changes you have sent, click on the button "Send pull request"

This way, we get the opportunity to review your code as a "change" (rather than as overwriting files), and you get credits on Github (public site) for having contributed to Chamilo (might help you in your future career).

Of course, you can also send us the changes directly.

Please note that you must accept to send your contribution under the GNU/GPLv3 license to do so, and tell me how to mention you in our https://campus.chamilo.org/documentation/credits.html file.

#2

Updated by Yannick Warnier over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Miguel José Amez Riendas
  • % Done changed from 90 to 80

Oh, and finally, you are welcome to set "Time spent" in this task once it's included, so we can estimate the total effort spent on this coming version.

I'm moving the progress to 80%. 90% is only for tasks needing review and already included in the code (so they can be tested on stable.chamilo.org)

I've also set you as developer here on support.chamilo.org so you can do a little more stuff with your tasks.

#3

Updated by Yannick Warnier over 5 years ago

I would also be interested in knowing if it was difficult for you to start coding with Chamilo and what we can do to make it easier.

#4

Updated by Miguel José Amez Riendas over 5 years ago

Hi Yanick,

I'm very happy to know you! First of all, I think that your work on this is amazing!
I'm introducing myself: I'm the systems administrator at Academia Cervantes in Guadalajara (Spain). I've got a large experience in development and coordinating teams. I've allways been related with the Academy, but in the past I contributed to the development of this tool: http://gratis.portalprogramas.com/Mercatest.html
We've developed it from the scratch and we also had a complete online free platform to upload and comercialize all the contents that the people wanted for free. As all the free initiatives, we had not more money to continue and a big problem with OVH people (they are the worst company ever in the world), we lost a lot of information and we hesitate to continue.

But as allways, bad experiences help you going on in live, and give you tons of experience, so our investigation spirit is allways there as the first second (you know).

Now I've introduced myself, I'm talking about the really important thing: Chamilo's project!

1. Talking about architecture and development issues (I think you want me to be honest): It is a little bit messy in many parts. Of course, firebug and php traces allways help, but there is so many redundant code. I know you are moving on to symfony2 (Julio Montoya told me) and that will be woooonderfull! Solid architecture, solid bug-tracking, COMPOSER, doctrine2, database abstraction layer, dependency injection... Huge list of benefits! But Julio also told me about the legacy code problem... I think it could be a little bit messy, but you can allways design it bundle by bundle.
2. GNU/GPLv3 mention won't be a problem. Put whatever you are used to do here, it's all good enough for me. I just want to contribute to make Chamilo the best GNU option (I reeeeeeally hate moodle).
3. About Github: I like Github, But I prefer bitbucket.org. Did you know it?
4. I can report and fix a lot of problems that we are seeing in Chamilo, it is good for me, but the problem is that I'm patching code on the stable production version in our Academy. I know that this is risky, but I'm patching on-demand issues. This is veeery good for Chamilo's progress, but it is difficult to be integrated with the newer versions (as 1.10 version), because I will need to patch 2 versions: Our production version and the head version that you have... I'm thinking about solutions for this, so Chamilo comunity could benefit from both worlds (mine and yours), because I think that Chamilo really needs feedback from production environments, with real-world situations in english teaching, maths teaching, language teaching, computers teaching and so on. I think you understand me very good.

Tell me what do you think about it and I could help whereever you need me!

Thanx!

#5

Updated by Yannick Warnier over 5 years ago

Hello Miguel,

I don't have much time to address each of your points, but I generally agree. Nice to know all the details. Please make sure you don't say too much on this public space :-)

For the patches, please do not worry about 1.10 for now. We will look into it and move all patches there progressively once we stop working on 1.9 (which should be just after 1.9.8 is published officially, in January or so).
I know bitbucket but I feel like there are many more options (in the background) on github. The move to github (from Google Code) has been a decision which spanned several months, and we considered bitbucket as well.

Anyway, thank your for your comments ( about how to improve) and please let me know if you need anything to send your patches. Julio will probably be the one in charge of merging them (I have a different plane of activity than development at the moment).

#6

Updated by Yannick Warnier over 5 years ago

  • Target version changed from 1.9.8 to 2.0
  • % Done changed from 80 to 50

Miguel, I am moving this task to 1.10 because I haven't heard from you (and your changes) since. No problem here, but no need to block the release of 1.9.8 for that either :-)

#7

Updated by Miguel José Amez Riendas over 5 years ago

Hi Yannick,

Sorry, sorry, sorry! I've been these days extinting fires at work and hadn't so much time.

I'm here with the pdf code (I think that all the changes are there, but tell me if something is wrong with the code).
I'm uploading a .rar file with the code update that should be unrared on the root folder.

Some things that should be corrected (I didn't have much time):
1. There is a PNG that could be added on the head of the resulting PDF. There I put Chamilo's logo (in our company we have our logo and it's really cool for students).
2. MPDF library should be updated to the final version, because the one you have on chamilo 1.9.8 has lots of mistakes and problems. I've tested the final one and there is no problem.

Hope this helps and sorry again,
Miguel

Also available in: Atom PDF