Issue Details (XML | Word | Printable)

Key: MDL-15758
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Penny Leach
Reporter: Penny Leach
Votes: 0
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-14591

add 'export to portfolio' button all through moodle

Created: 22/Jul/08 09:03 PM   Updated: 03/Sep/08 10:10 PM
Return to search
Component/s: Portfolio API
Affects Version/s: 1.9.3
Fix Version/s: 2.0

Issue Links:
Dependency
 

Participants: Penny Leach and Tim Hunt
Security Level: None
Resolved date: 03/Sep/08
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_20_STABLE


 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Penny Leach made changes - 24/Jul/08 11:18 PM
Field Original Value New Value
Status Open [ 1 ] In Progress [ 3 ]
Penny Leach added a comment - 25/Jul/08 04:33 PM
From http://docs.moodle.org/en/Development:Portfolio_API#Save_points_in_Moodle:
  • mod/assignment/view.php (online and uploaded file assignments)
  • mod/forum/discuss.php (whole page / individual posts / attachment only)
  • mod/chat/report.php (whole page / each session)
  • mod/glossary/view.php (whole glossary as CSV / each entry)
  • mod/database/view.php (whole database as CSV / each entry)
  • mod/resource/view.php (all embedded formats and typed-in content, not links)

Penny Leach added a comment - 25/Jul/08 04:34 PM
assignment module done (upload, upload single & online)

Penny Leach added a comment - 25/Jul/08 08:13 PM
forum is a bit complicated:
  • how to link attachments to posts - either individual post or full discussion - they need to be exported as HTML, but I can't just write the attachments out to disk and then link to them in HTML of the post. additionally I can't just put a placeholder link in the HTML because that introduces a dependency on an external system to be able to decode that. I can't keep the existing file url to the attachments because that assumes whoever views this in whatever resulting system this ends up in has access to moodle which is obviously a fallacy.
  • attachments by themselves are trivial however. (assuming reliance on files api)

ideas welcome


mjollnir_ committed 3 files to 'Moodle CVS' - 25/Jul/08 08:30 PM
MDL-15758 : beginning of forum implementation of portfolio export
MODIFY lang/en_utf8/forum.php   Rev. 1.39    (+4 -1 lines)
MODIFY mod/forum/discuss.php   Rev. 1.124    (+12 -1 lines)
MODIFY mod/forum/lib.php   Rev. 1.688    (+113 -3 lines)
Penny Leach added a comment - 25/Jul/08 09:34 PM
The more I think about this the more I am starting to be convinced that this is just not going to work until we start supporting more sophisticated export formats (eg LEAP)... exporting an entire forum thread (or even a post without attachments) as a file/html is just a bit too complicated.

Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 25/Jul/08 11:58 PM
MDL-14731 Updated a translated string for admin.
MDL-15758 Translated new strings for forum.
MODIFY ja_utf8/forum.php   Rev. 1.70    (+5 -2 lines)
MODIFY ja_utf8/admin.php   Rev. 1.281    (+2 -2 lines)
MODIFY ja_utf8/README   Rev. 1.768    (+1 -1 lines)
Penny Leach added a comment - 28/Jul/08 04:12 PM
uploadey resources are tricky - I can't immediately see where the link should go - the only place I can think is in the header frame when you have the keep navigation setting on... the other two (text & html) are done.

mjollnir_ committed 4 files to 'Moodle CVS' - 28/Jul/08 04:19 PM
MDL-15758 - added add to portfolio button to resource/text & html
MODIFY lang/en_utf8/resource.php   Rev. 1.14    (+2 -1 lines)
MODIFY mod/resource/lib.php   Rev. 1.88    (+72 -1 lines)
MODIFY mod/resource/type/text/Attic/resource.class.php   Rev. 1.39    (+13 -1 lines)
MODIFY mod/resource/type/html/Attic/resource.class.php   Rev. 1.44    (+14 -1 lines)
mjollnir_ committed 2 files to 'Moodle CVS' - 28/Jul/08 06:17 PM
MDL-15758 - commenting out some forum calls until the portfolio is ready
MODIFY mod/forum/lib.php   Rev. 1.690    (+10 -4 lines)
MODIFY mod/forum/discuss.php   Rev. 1.125    (+2 -2 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 28/Jul/08 06:23 PM
MDL-15758 fixed a bug in the return to url in forum
MODIFY mod/forum/lib.php   Rev. 1.691    (+2 -2 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 28/Jul/08 06:27 PM
MDL-15758 - fixing bugs I introduced in a refactor in assignment
MODIFY mod/assignment/lib.php   Rev. 1.335    (+3 -3 lines)
mjollnir_ committed 2 files to 'Moodle CVS' - 28/Jul/08 06:44 PM
MDL-15758 - fixing assignment & resource bugs
MODIFY mod/assignment/lib.php   Rev. 1.336    (+5 -1 lines)
MODIFY mod/resource/lib.php   Rev. 1.89    (+5 -1 lines)
Mitsuhiro Yoshida committed 5 files to 'Lang CVS' - 29/Jul/08 10:57 AM
MDL-15498 Translated new strings for forum.
MDL-15758 Translated a new string for resource.
MDL-15498 Adding a translated string file for completation.
MDL-13766 Translated new strings for repository.
MODIFY ja_utf8/resource.php   Rev. 1.32    (+2 -1 lines)
MODIFY ja_utf8/forum.php   Rev. 1.71    (+10 -1 lines)
MODIFY ja_utf8/README   Rev. 1.770    (+1 -1 lines)
ADD ja_utf8/repository.php   Rev. 1.1    (+0 -0 lines)
ADD ja_utf8/completion.php   Rev. 1.1    (+0 -0 lines)
martignoni committed 1 file to 'Lang CVS' - 01/Aug/08 01:39 AM
MDL-15758, new strings translated
MODIFY fr_utf8/forum.php   Rev. 1.48    (+4 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 01/Aug/08 02:07 AM
MDL-15758 one ore string
MODIFY fr_utf8/resource.php   Rev. 1.13    (+2 -1 lines)
mjollnir_ committed 3 files to 'Moodle CVS' - 01/Aug/08 08:30 PM
MDL-15758 - add export whole database activity to portfolio (still one entry to do)
MODIFY mod/data/lib.php   Rev. 1.185    (+168 -14 lines)
MODIFY mod/data/export_form.php   Rev. 1.4    (+10 -1 lines)
MODIFY mod/data/export.php   Rev. 1.6    (+15 -31 lines)
Penny Leach added a comment - 01/Aug/08 08:30 PM
whole database export is done.

Penny Leach added a comment - 01/Aug/08 08:45 PM
single database entry is a bit tricky - the obvious place to put it is with the edit/delete icons, but they're part of the templates as far as I can see, so not really able to be changed retroactively.... any suggestions?

mjollnir_ committed 2 files to 'Moodle CVS' - 05/Aug/08 12:08 AM
MDL-15758 - bring back full forum post export
MODIFY lang/en_utf8/forum.php   Rev. 1.42    (+2 -1 lines)
MODIFY mod/forum/lib.php   Rev. 1.699    (+91 -12 lines)
Tim Hunt added a comment - 05/Aug/08 12:40 AM
The edit and delete functionality is also very important to the functioning of the database module, yet we allow teachers to control it by editing the template, so why not allow them to control the export to portfolio button in exactly the same way? Make a variable for it that gets substituted.

The only tricky bit is the upgrade script to add it to all existing templates. I would have though it would be possible to devise a suitable search-and-replace type database upgrade to do it thought.


Mitsuhiro Yoshida committed 5 files to 'Lang CVS' - 05/Aug/08 11:44 AM
MDL-15928 Translated a new string for admin.
MDL-15758 Translated a new string for forum.
MDL-14591 Translated new strings for portfolio.
Brushed up an automatically generated translation file for TinyMCE.
MODIFY ja_utf8/forum.php   Rev. 1.73    (+2 -1 lines)
MODIFY ja_utf8/Attic/tinymce.php   Rev. 1.5    (+20 -20 lines)
MODIFY ja_utf8/admin.php   Rev. 1.285    (+2 -1 lines)
MODIFY ja_utf8/portfolio.php   Rev. 1.6    (+8 -1 lines)
MODIFY ja_utf8/README   Rev. 1.776    (+1 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 05/Aug/08 04:37 PM
MDL-15758 one more string
MODIFY fr_utf8/forum.php   Rev. 1.50    (+2 -1 lines)
mjollnir_ committed 3 files to 'Moodle CVS' - 05/Aug/08 09:26 PM
MDL-15758 - whole glossary (csv) export to portfolio
MODIFY mod/glossary/export.php   Rev. 1.37    (+6 -1 lines)
MODIFY mod/glossary/lib.php   Rev. 1.216    (+127 -1 lines)
MODIFY lang/en_utf8/glossary.php   Rev. 1.14    (+2 -1 lines)
Penny Leach added a comment - 05/Aug/08 09:45 PM
whole glossary is done.

martignoni committed 1 file to 'Lang CVS' - 05/Aug/08 10:03 PM
MDL-15758 string added
MODIFY fr_utf8/glossary.php   Rev. 1.17    (+2 -1 lines)
Penny Leach made changes - 05/Aug/08 11:39 PM
Link This issue will be resolved by MDL-15951 [ MDL-15951 ]
mjollnir_ committed 1 file to 'Moodle CVS' - 05/Aug/08 11:40 PM
 MDL-15758 - export single glossary entry mostly done.
MODIFY mod/glossary/lib.php   Rev. 1.217    (+71 -1 lines)
Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 06/Aug/08 12:24 AM
MDL-15758 Translated a new string for glossary.
MDL-15498 Adding a translated help file for completation.
ADD ja_utf8/help/completion/completionlocked.html   Rev. 1.1    (+0 -0 lines)
MODIFY ja_utf8/glossary.php   Rev. 1.42    (+2 -1 lines)
MODIFY ja_utf8/README   Rev. 1.777    (+1 -1 lines)
mjollnir_ committed 4 files to 'Moodle CVS' - 14/Aug/08 06:37 PM
MDL-15758 - added export to portfolio for single database entry

still to do - files stuff for entries (rest of module not converted)
MODIFY mod/data/db/upgrade.php   Rev. 1.21    (+13 -1 lines)
MODIFY mod/data/version.php   Rev. 1.38    (+2 -2 lines)
MODIFY mod/data/templates.php   Rev. 1.78    (+4 -1 lines)
MODIFY mod/data/lib.php   Rev. 1.192    (+111 -15 lines)
Penny Leach added a comment - 14/Aug/08 06:38 PM
single database entry is done with an upgrade to add ##export## to the list & single templates.

mjollnir_ committed 3 files to 'Moodle CVS' - 14/Aug/08 08:40 PM
MDL-15758 - fixing bugs nico found in testing
MODIFY portfolio/type/boxnet/Attic/lib.php   Rev. 1.11    (+1 -1 lines)
MODIFY mod/assignment/type/upload/assignment.class.php   Rev. 1.55    (+2 -2 lines)
MODIFY mod/assignment/lib.php   Rev. 1.345    (+2 -2 lines)
mjollnir_ committed 10 files to 'Moodle CVS' - 15/Aug/08 12:01 AM
MDL-15758 - slight change to the portfolio_add_button contract to be more flexible.
MODIFY mod/glossary/export.php   Rev. 1.38    (+8 -6 lines)
MODIFY mod/assignment/type/upload/assignment.class.php   Rev. 1.56    (+3 -3 lines)
MODIFY lang/en_utf8/portfolio.php   Rev. 1.12    (+1 -0 lines)
MODIFY lib/portfoliolib.php   Rev. 1.25    (+72 -19 lines)
MODIFY mod/data/lib.php   Rev. 1.193    (+2 -2 lines)
MODIFY mod/glossary/lib.php   Rev. 1.220    (+2 -2 lines)
MODIFY mod/forum/lib.php   Rev. 1.702    (+7 -4 lines)
MODIFY mod/resource/lib.php   Rev. 1.95    (+3 -3 lines)
MODIFY mod/forum/discuss.php   Rev. 1.127    (+3 -2 lines)
MODIFY mod/assignment/lib.php   Rev. 1.346    (+3 -3 lines)
Mitsuhiro Yoshida committed 1 file to 'Lang CVS' - 15/Aug/08 01:08 AM
MDL-15758 Translated a new string for portfolio.
MODIFY ja_utf8/portfolio.php   Rev. 1.12    (+2 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 16/Aug/08 05:30 PM
MDL-15758 string added
MODIFY fr_utf8/portfolio.php   Rev. 1.8    (+2 -1 lines)
mjollnir_ committed 5 files to 'Moodle CVS' - 18/Aug/08 06:16 PM
MDL-15758 - chat module portfolio export
MODIFY mod/chat/version.php   Rev. 1.30    (+2 -2 lines)
MODIFY mod/chat/report.php   Rev. 1.44    (+32 -1 lines)
MODIFY mod/chat/lib.php   Rev. 1.120    (+88 -1 lines)
MODIFY lang/en_utf8/chat.php   Rev. 1.13    (+3 -1 lines)
MODIFY mod/chat/db/access.php   Rev. 1.8    (+29 -1 lines)
Penny Leach added a comment - 18/Aug/08 06:18 PM
chat done!

mjollnir_ committed 4 files to 'Moodle CVS' - 19/Aug/08 02:31 AM
MDL-15758 and MDL-15768

- updated forum portfolio code to use files api and added forum export caps.
MODIFY mod/forum/db/access.php   Rev. 1.17    (+39 -2 lines)
MODIFY mod/forum/version.php   Rev. 1.78    (+2 -2 lines)
MODIFY mod/forum/lib.php   Rev. 1.710    (+46 -38 lines)
MODIFY lang/en_utf8/forum.php   Rev. 1.44    (+4 -1 lines)
Mitsuhiro Yoshida committed 5 files to 'Lang CVS' - 19/Aug/08 04:35 AM
Translated new strings for assignment and portfolio.
MDL-15758 Translated new strings for chat and forum.
MODIFY ja_utf8/README   Rev. 1.790    (+1 -1 lines)
MODIFY ja_utf8/chat.php   Rev. 1.26    (+3 -1 lines)
MODIFY ja_utf8/assignment.php   Rev. 1.37    (+3 -2 lines)
MODIFY ja_utf8/portfolio.php   Rev. 1.13    (+2 -1 lines)
MODIFY ja_utf8/forum.php   Rev. 1.75    (+6 -3 lines)
martignoni committed 1 file to 'Lang CVS' - 27/Aug/08 04:38 PM
MDL-15758 chat export caps
MODIFY fr_utf8/chat.php   Rev. 1.17    (+4 -2 lines)
mjollnir_ committed 2 files to 'Moodle CVS' - 03/Sep/08 08:05 PM
MDL-15758 - added back full forum exports
MODIFY mod/forum/lib.php   Rev. 1.725    (+73 -40 lines)
MODIFY mod/forum/discuss.php   Rev. 1.129    (+2 -3 lines)
Penny Leach added a comment - 03/Sep/08 10:10 PM
upload resource is dependent on http://tracker.moodle.org/browse/MDL-16325 which is blocking me so i'm closing this and will open a separate task.

Penny Leach made changes - 03/Sep/08 10:10 PM
Fix Version/s 2.0 [ 10122 ]
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]
mjollnir_ committed 2 files to 'Moodle CVS' - 05/Sep/08 08:44 PM
MDL-15758 - remove dependence on 'userid' callback parameter in assignment portfolio caller as it's handled by the parent class
MODIFY mod/assignment/lib.php   Rev. 1.359    (+3 -3 lines)
MODIFY mod/assignment/type/upload/assignment.class.php   Rev. 1.58    (+1 -2 lines)
mjollnir_ committed 3 files to 'Moodle CVS' - 10/Sep/08 05:06 AM
MDL-15758: fixing regressions i introduced in lib.php v 1.359
MODIFY mod/assignment/lib.php   Rev. 1.362    (+9 -3 lines)
MODIFY mod/assignment/type/upload/assignment.class.php   Rev. 1.59    (+1 -0 lines)
MODIFY lang/en_utf8/assignment.php   Rev. 1.30    (+2 -1 lines)
Mitsuhiro Yoshida committed 8 files to 'Lang CVS' - 11/Sep/08 02:22 AM
MDL-15760 - Translated a new string for box.net portfolio plugin.
MDL-15758 - Translated a new string for assignment.
MDL-16378 - Translated new strings for Remote Moodle users.
MDL-15402 - Translated new strings for Repository.
MDL-16409 - Translated new strings for Report questioninstances.
MDL-16423 - Translated new strings for Portfolio.
MODIFY ja_utf8/portfolio.php   Rev. 1.19    (+4 -1 lines)
MODIFY ja_utf8/role.php   Rev. 1.71    (+2 -1 lines)
MODIFY ja_utf8/moodle.php   Rev. 1.312    (+4 -2 lines)
MODIFY ja_utf8/README   Rev. 1.810    (+1 -1 lines)
MODIFY ja_utf8/repository.php   Rev. 1.24    (+3 -1 lines)
MODIFY ja_utf8/portfolio_boxnet.php   Rev. 1.6    (+2 -1 lines)
MODIFY ja_utf8/report_questioninstances.php   Rev. 1.2    (+7 -1 lines)
MODIFY ja_utf8/assignment.php   Rev. 1.39    (+2 -1 lines)
mjollnir_ committed 2 files to 'Moodle CVS' - 16/Sep/08 11:46 PM
MDL-15758 - adding back in changes to default presets for imagegallery for export placeholder
MODIFY mod/data/preset/imagegallery/listtemplate.html   Rev. 1.6    (+1 -1 lines)
MODIFY mod/data/preset/imagegallery/singletemplate.html   Rev. 1.6    (+2 -2 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 17/Sep/08 01:25 AM
MDL-15758: fixing up mod/chat supported formats
MODIFY mod/chat/lib.php   Rev. 1.126    (+1 -1 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 17/Sep/08 04:42 AM
MDL-15758 - make sure there's a break between mutliple-session chat export
MODIFY mod/chat/lib.php   Rev. 1.127    (+8 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 21/Sep/08 05:02 PM
MDL-15758, new string translated and some corrections
MODIFY fr_utf8/assignment.php   Rev. 1.43    (+5 -4 lines)