Oppia Moodle Export Block - Moodle Question /Quiz ID Reference

63 views
Skip to first unread message

Nitin Jain

unread,
Nov 2, 2015, 8:58:10 AM11/2/15
to OppiaMobile
Hi Alex,

Thanks for always being very prompt with your responses...

I have two more queries.

First
When we export a moodle course using Oppia Moodle Export Block, he get a XML containing all the course data like activities, questions, quizzes, etc... but that XML actually doesn't contain any moodle reference IDs like what was the particular question id, quiz id, activity id inside moodle.

If i can get the references inside XML then my work would be pretty easy and error less to be able to sync quizzes /questions attempts directly with Moodle.

Could you please advise if this is possible? If yes then how? I mean if you can point me to some directions to do that?

Second
i was wondering how can i remove Moodle-Oppia Block dependency from Django server to be able to export the course without Django server connection? I know when we export the course, then quiz questions are also pushed to Django Server Database.. but i want to disable that feature and also wish to be able to export the complete course without the need of Django.

Please advise.

Regards
Nitin







Alex Little

unread,
Nov 3, 2015, 4:17:20 PM11/3/15
to oppia...@googlegroups.com
Hi Nitin,

Sure, hope I can help out with both of these (I'm also sure there may be multiple ways of doing these - so I'm not necessarily giving 'the' answer)...

References in the XML to the Moodle ID nos
There shouldn't be any issue with adding the Moodle id numbers to the xml attributes (the system currently used the digest approach, so we keep track of changes/updates to the content/activities - and because we've no need of the moodle id numbers once exported ). Then in the app, you'd need to update the database there so that it read and recorded these moodle id numbers, especially for when submitting tracking/usage information back into Moodle.

In the export block - have a look at the getXML() functions in each of activity/xxxxx.php (for each activity type) for adding the moodle id to the output xml.

Removing Moodle-Oppia block dependency
The main dependency, as you say, is because of the quiz export (so they are also available on the Django Oppia server for the quiz results etc). So you'd just need to export the quizzes and questions from Moodle into the JSON format that the Oppia app uses (as in what you see in the XML for a quiz activity) - and then in this way you could preserve the Moodle id numbers for the quizzes/questions (and just replace the ones used from the django oppia server instead).

To look at the structure for this - take a look at the QuizJSONSerializer in https://github.com/DigitalCampus/django-oppia/blob/master/oppia/quiz/api/serializers.py - this shows how the quiz object is built in python and then converted to JSON.

Just to follow up, the root of both of these is that we really had only considered Moodle to be an authoring system for Oppia, and we didn't want to tie ourselves to only being able to use Moodle. It's been a convenient way for us to allow course creation for Oppia without people needing many technical skills.

Hope that helps,
Cheers,
Alex
--
You received this message because you are subscribed to the Google Groups "OppiaMobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oppiamobile...@googlegroups.com.
To post to this group, send email to oppia...@googlegroups.com.
Visit this group at http://groups.google.com/group/oppiamobile.
To view this discussion on the web visit https://groups.google.com/d/msgid/oppiamobile/c82a8745-9520-4006-84fd-03683c26b110%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alex Little
Director, Digital Campus
al...@digital-campus.org
http://digital-campus.org
mobile (UK): +44 7548 236 650
skype: alexlittleou
twitter: @digicampusteam & @alexlittle

Fred Lewis

unread,
Nov 4, 2015, 2:08:32 AM11/4/15
to Alex Little, oppia...@googlegroups.com
Wow Alex,

That was fast!  Tanks for your invaluable input, it will go a long way to help us figure this all out  :-)

Cheers... fred

Nitin Jain

unread,
Nov 6, 2015, 7:39:33 AM11/6/15
to OppiaMobile, Fred Lewis
Hi Alex,

Well, thank you for your speedy response..

That definitely gives us a good direction to move forward.

I have drafted a complete plan what me and fred want to achieve (PFA), and we wanted you to please take a look at it once and advise if we are going into correct direction or if you have any further advise on that.

Looking forward for your valuable response.

Regards
Nitin
~~~~
Project_Plan_Moodle_Oppia_V1.docx

rmen...@googlemail.com

unread,
Apr 16, 2016, 11:02:43 AM4/16/16
to OppiaMobile
Hi Nitin and Fred,

From what I read in your Project Plan you and me are trying to do the same thing.
I'm also trying to remove Django from the equation, so that Moodle and the Oppia Android App can communicate directly.

I was searching for ways to do that and saw your thread.
So I wanted to ask how your progress is, how you went about it and if you have code you can share.


I would really appreciate your help.

Regards,
Robel

Nitin Jain

unread,
Apr 18, 2016, 5:05:35 AM4/18/16
to OppiaMobile
Hi Robel,

We are developing the code under a paid contract with HopeGames, Hong Kong and the 1st release is not yet completed, but i would notify the company about your query and someone from the company should get in touch with you soon.

Regards
Nitin
~~~~

Nitin Jain

unread,
Apr 21, 2016, 1:12:59 AM4/21/16
to ccp-ict, OppiaMobile
Yeah, Moodle Official App also provides an offline feature but its an hybrid app and doesn't support quiz as now..

while oppia-app and specially the one we are developing (on the top of oppia-app) is native and supports quizzes seamlessly and with offline capabilities.

On Thu, Apr 21, 2016 at 2:25 AM, ccp-ict <ccp...@jhu.edu> wrote:

Hey there :)

I hadn't checked in a while, honestly, but reading this thread made me want to see what other Moodle-related apps were out there. I see that there's an "official" Moodle app - https://download.moodle.org/mobile/.

Are there significant difference between Oppia & this app? One issue for me was always offline access to content, but the description of the Moodle app seems to suggest that is now possible. (I'm downloading it right now w/the idea of testing out this specific feature...)

James​



From: oppia...@googlegroups.com <oppia...@googlegroups.com> on behalf of Nitin Jain <nitin...@gmail.com>
Sent: Monday, April 18, 2016 5:05 AM
To: OppiaMobile
Subject: [oppiamobile] Re: Oppia Moodle Export Block - Moodle Question /Quiz ID Reference
 
--
You received this message because you are subscribed to the Google Groups "OppiaMobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oppiamobile...@googlegroups.com.
To post to this group, send email to oppia...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards
Nitin Jain
+91-8552819190
+91-9810759190
~~~~~~~~~~~~~

ccp-ict

unread,
Apr 21, 2016, 3:26:49 AM4/21/16
to OppiaMobile

Alright, I've already come across one biggie... Quizzes aren't available offline in the Moodle app. Maybe folks here already knew that. If so, I apologize! I'm still relatively new to this OppiaMobile stuff :) Either way, that's a show-stopper for me. –James



From: ccp-ict
Sent: Wednesday, April 20, 2016 4:55 PM
To: Nitin Jain; OppiaMobile
Subject: Re: [oppiamobile] Re: Oppia Moodle Export Block - Moodle Question /Quiz ID Reference
 

Hey there :)

I hadn't checked in a while, honestly, but reading this thread made me want to see what other Moodle-related apps were out there. I see that there's an "official" Moodle app - https://download.moodle.org/mobile/.

Are there significant difference between Oppia & this app? One issue for me was always offline access to content, but the description of the Moodle app seems to suggest that is now possible. (I'm downloading it right now w/the idea of testing out this specific feature...)

James​



From: oppia...@googlegroups.com <oppia...@googlegroups.com> on behalf of Nitin Jain <nitin...@gmail.com>
Sent: Monday, April 18, 2016 5:05 AM
To: OppiaMobile
Subject: [oppiamobile] Re: Oppia Moodle Export Block - Moodle Question /Quiz ID Reference
 

ccp-ict

unread,
Apr 21, 2016, 3:26:50 AM4/21/16
to Nitin Jain, OppiaMobile

Hey there :)

I hadn't checked in a while, honestly, but reading this thread made me want to see what other Moodle-related apps were out there. I see that there's an "official" Moodle app - https://download.moodle.org/mobile/.

Are there significant difference between Oppia & this app? One issue for me was always offline access to content, but the description of the Moodle app seems to suggest that is now possible. (I'm downloading it right now w/the idea of testing out this specific feature...)

James​



From: oppia...@googlegroups.com <oppia...@googlegroups.com> on behalf of Nitin Jain <nitin...@gmail.com>
Sent: Monday, April 18, 2016 5:05 AM
To: OppiaMobile
Subject: [oppiamobile] Re: Oppia Moodle Export Block - Moodle Question /Quiz ID Reference
 
Reply all
Reply to author
Forward
0 new messages