CVS log for loncom/interface/lonpdfupload.pm
Up to [LON-CAPA] / loncom / interface
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue Jun 9 21:22:57 2015 UTC (9 years, 5 months ago) by damieng
Branches: MAIN
CVS tags: version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
HEAD
Diff to previous 1.24: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.24: +2 -1
lines
fixed bug 6782, and escaped most localized messages used in Javascript blocks to make sure bugs like that do not happen again
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Dec 12 14:21:22 2014 UTC (9 years, 11 months ago) by raeburn
Branches: MAIN
CVS tags: version_2_11_1
Diff to previous 1.23: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.23: +4 -4
lines
- Coding style: keys()
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Feb 28 19:20:06 2014 UTC (10 years, 8 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_11_0_RC3,
version_2_11_0
Diff to previous 1.22: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.22: +5 -5
lines
Fix wording typos
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Sep 14 11:24:06 2012 UTC (12 years, 1 month ago) by goltermann
Branches: MAIN
CVS tags: version_2_11_0_RC2,
version_2_11_0_RC1
Diff to previous 1.21: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.21: +6 -3
lines
added essay response to pdf form functionality.
students can now print and upload a pdf with essay problems with form fields in it. after uploading they will get a notice that their essay is saved as a draft but not yet submitted.
fixed a missing <span> tag.
special thanks to jeconia kapitako who helped with inplementing textareas into lon capa pdf forms.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Nov 2 15:14:21 2011 UTC (13 years ago) by bisitz
Branches: MAIN
CVS tags: language_hyphenation_merge,
language_hyphenation,
BZ4492-merge,
BZ4492-feature_horizontal_radioresponse
Diff to previous 1.20: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.20: +2 -2
lines
Ignore case in check for valid PDF file extension
Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Mar 22 15:39:37 2010 UTC (14 years, 7 months ago) by onken
Branches: MAIN
CVS tags: version_2_9_X,
version_2_9_1,
version_2_9_0,
version_2_8_99_1,
version_2_10_X,
version_2_10_1,
version_2_10_0_RC2,
version_2_10_0_RC1,
version_2_10_0,
loncapaMITrelate_1,
PRINT_INCOMPLETE_base,
PRINT_INCOMPLETE
Diff to previous 1.19: preferred, colored
Changes since revision 1.19: +1 -2
lines
Deletes double declared variable ($result) in sub grade_pdf.
Revision
1.19:
download - view:
text,
markup,
annotated -
[selected for diffs]
Mon Mar 22 15:33:38 2010 UTC (14 years, 7 months ago) by
onken
Branches:
MAIN
Diff to previous 1.18:
preferred,
colored
Changes since revision 1.18: +13 -12
lines
Avoids a server-error when uploading a pdf-file without formfields.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Mar 18 19:11:05 2010 UTC (14 years, 7 months ago) by raeburn
Branches: MAIN
Diff to previous 1.17: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.17: +71 -13
lines
- Check if symb is in current list of resources via navmaps,
instead of lesser check via &lonnet::is_on_map() for resource.
- If resource is in a folder or composite page added via DOCS,
can check if domain and courseID match those of current course.
- generate warnings, if not.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Mar 18 16:08:48 2010 UTC (14 years, 7 months ago) by raeburn
Branches: MAIN
Diff to previous 1.16: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.16: +35 -33
lines
- Check resource is in course, before making submission.
- Display warning instead of grade display if no form items were found in course map.
- Some coding style changes: keys().
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Mar 18 14:50:15 2010 UTC (14 years, 7 months ago) by raeburn
Branches: MAIN
Diff to previous 1.15: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.15: +43 -2
lines
- Ensure user is in course context.
- use File::MMagic to confirm a PDF file was uploaded.
- Breadcrumb trail for two step process: 1. upload form, 2. processing result.
- Check permission from canuse_pdfforms course config.
- if none set, default to default for domain of course.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 18 13:16:11 2010 UTC (14 years, 7 months ago) by raeburn
Branches: MAIN
Diff to previous 1.14: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.14: +7 -60
lines
- Making pdfupload more like the rest of LON-CAPA.
- Authz handler: lonacc
- path: /adm/pdfupload
- remove "use package" for packages which are not actually used
- use routine in loncommon.pm to generate HTTP header.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Oct 17 03:13:35 2009 UTC (15 years ago) by raeburn
Branches: MAIN
CVS tags: version_2_9_99_0,
bz6209-base,
bz6209,
GCI_3
Diff to previous 1.13: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.13: +2 -2
lines
- Consistent wording.
- "Navigate" no longer used.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jun 17 13:00:38 2009 UTC (15 years, 4 months ago) by bisitz
Branches: MAIN
CVS tags: version_2_8_99_0,
bz5969,
bz2851,
GCI_2,
BZ5971-printing-apage
Diff to previous 1.12: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.12: +12 -2
lines
- Added breadcrumbs
- Wrap Upload button in <p>aragraph (padding)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon May 25 12:54:18 2009 UTC (15 years, 5 months ago) by bisitz
Branches: MAIN
Diff to previous 1.11: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.11: +15 -10
lines
- Corrected handler info text
- First check for valid user, then start data_table
- Optimized wrong-username-message:
- Standard error style
- Standard format username:domain
- Optimized &mt usage
Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat May 23 05:26:15 2009 UTC (15 years, 5 months ago) by onken
Branches: MAIN
Diff to previous 1.10: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.10: +2 -2
lines
- fix problem with students pdf-upload
I don't know what exactly went wrong. There shut be different cases with advanced roles.
More research is necessary... good night (:
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat May 23 04:07:09 2009 UTC (15 years, 5 months ago) by onken
Branches: MAIN
Diff to previous 1.9: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.9: +2 -2
lines
- showing 'Your are correct.' in overview table when get APPROX_ANS response for a problem
Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu May 21 05:57:50 2009 UTC (15 years, 5 months ago) by raeburn
Branches: MAIN
Diff to previous 1.8: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.8: +2 -2
lines
- By default, first arg passed to &start_page has &mt() applied to it, within locnommon.pm.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu May 21 04:58:40 2009 UTC (15 years, 5 months ago) by onken
Branches: MAIN
Diff to previous 1.7: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.7: +20 -2
lines
- parse responses for problem status like EXACT_ANS, APPROX_ANS and INCORRECT into human readable format
Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu May 21 03:09:01 2009 UTC (15 years, 5 months ago) by onken
Branches: MAIN
Diff to previous 1.6: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.6: +12 -15
lines
- fix TODO "get a Problemname" including a clean part information
- localize title in page header.
- call end_page() for a clean page closure.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sat May 16 00:28:38 2009 UTC (15 years, 5 months ago) by bisitz
Branches: MAIN
Diff to previous 1.5: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.5: +20 -17
lines
Optimized screen layout, wording and localization:
- Wording
- Optimized mt usage
- Added new phrases to de.pm
- Always separate Navigate link from rest of screen by <hr>
- Make headlines headlines
- Added error style to error message
- Corrected grading table header and added table headline
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 15 23:40:54 2009 UTC (15 years, 5 months ago) by bisitz
Branches: MAIN
Diff to previous 1.4: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.4: +25 -28
lines
Optimized screen layout and code routines:
- Replaced pick_boxish code by real pick_box routines
- Corrected Navigate link
Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri May 15 17:53:06 2009 UTC (15 years, 5 months ago) by onken
Branches: MAIN
Diff to previous 1.3: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.3: +52 -43
lines
- correct localization
- correct web-design with using user addicted CSS entries for pick_boxes
- correct web-design for problem results with data_table
- don't show partnumber for problems with only one part in result table
in the end:
- stundents are able to upload PDF-Forms
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Apr 4 21:47:41 2009 UTC (15 years, 7 months ago) by bisitz
Branches: MAIN
CVS tags: BZ5434-fox
Diff to previous 1.2: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.2: +4 -4
lines
XHTML conform tags (input, br, hr)
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Apr 3 15:40:17 2009 UTC (15 years, 7 months ago) by onken
Branches: MAIN
Diff to previous 1.1: preferred, colored to selected 1.19: preferred, colored
Changes since revision 1.1: +75 -82
lines
Upgrade for PDF-Forms.
Now only perl is used to read out PDF-Formdata. Before you copy lonpdfupload.pm in to your Apache-folder check the needed Steps below.
----------
Enable PDF-Forms in LON-CAPA
First you need to install the AcroTeX-education bundle from ctan.
Get the package and unzip it:
[root@loncapa ]# wget http://tug.ctan.org/get/macros/latex/contrib/acrotex.zip
[root@loncapa ]# unzip acrotex.zip
go into the acrotex-folder and install
[root@loncapa ]# cd acrotex
[root@loncapa acrotex]# latex acrotex.ins
Now move the folder acrotex file into the latex path. You can easy find it by searching for "cite.sty" or some other tex-packages.
[root@loncapa /]# locate cite.sty
/usr/share/texmf/tex/latex/cite/cite.sty
/usr/share/texmf/tex/latex/cite/drftcite.sty
/usr/share/texmf/tex/latex/cite/overcite.sty
On CentOS the latex path is: /usr/share/texmf/tex/latex/ (perhaps there is different to
[root@loncapa acrotex]# cd ..
[root@loncapa ]# mv acrotex /usr/share/texmf/tex/latex/
Remove the acrotex.zip
[root@loncapa]# rm acrotex.zip
After that you must rehash tex:
[root@loncapa ]# texhash
Now you are able to print PDF with Forms (Radiobutton-, Comboboxes-, Textfield based problems).
The second thing to do is to enable the Upload-script lonpdfupload.pm. Before you can use it you have to install CAM::PDF for perl. It is available on CPAN so you can use the perl –MCPAN -eshell.
[root@loncapa ~]# perl -MCPAN -eshell
cpan shell -- CPAN exploration and modules installation (v1.7602)
ReadLine support enabled
cpan>install CAM::PDF
(…follow installation and also install the dependencies)
cpan>exit
Next you need to copy the upload-script from CVS to the LON-CAPA Apache folder.
[root@loncapa ~]# cp [your-cvs-folder]/loncom/interface/lonpdfupload.pm /home/httpd/lib/perl/Apache/
Now restart httpd:
[root@loncapa ~]# /etc/init.d/httpd restart
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Sep 9 13:56:44 2008 UTC (16 years, 2 months ago) by onken
Branches: MAIN
Diff to selected 1.19: preferred, colored
Uploadscript for PDF-Forms
Comments are current in german
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>