Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Repositories
    • Labels:
      None
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      crimsonHex is a repository of learning objects that supports several standards (e.g. IMS DRI, IMS CP).
      It is acessible using SOAP or REST.

      See http://mooshak.dcc.fc.up.pt:8080/crimsonHex for more details

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            Dongsheng Cai added a comment -

            Hi, Ricardo

            I am glad to hear you want to contribute a repository plugin for moodle!

            You can read repository api document: http://docs.moodle.org/en/Development:Repository_API to get started. And there is an plugin template at http://cvs.moodle.org/contrib/plugins/repository/demo/ , you can create a patch, so I can help test your plugin once you finish it.

            Let me know if you need any help.

            Show
            Dongsheng Cai added a comment - Hi, Ricardo I am glad to hear you want to contribute a repository plugin for moodle! You can read repository api document: http://docs.moodle.org/en/Development:Repository_API to get started. And there is an plugin template at http://cvs.moodle.org/contrib/plugins/repository/demo/ , you can create a patch, so I can help test your plugin once you finish it. Let me know if you need any help.
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Thanks for the support!

            I'm a JAVA developer, but i will try ...
            I've done some tests and i already connect to a instance of the repository and list the Learning Objects.
            My question is how can i handle several instances?

            Other question: how can i submit my code after i finished?

            Thanks in advance

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Thanks for the support! I'm a JAVA developer, but i will try ... I've done some tests and i already connect to a instance of the repository and list the Learning Objects. My question is how can i handle several instances? Other question: how can i submit my code after i finished? Thanks in advance
            Hide
            Dongsheng Cai added a comment -

            Hi, Ricardo

            If get_instance_option_names method is implemented in subclass, moodle will handle muliti instances for this plugin, you can take a look at repository/flickr_public/repository.class.php

            After you finished, we will create a contrib directory for you, so you can share your code worldwide

            Show
            Dongsheng Cai added a comment - Hi, Ricardo If get_instance_option_names method is implemented in subclass, moodle will handle muliti instances for this plugin, you can take a look at repository/flickr_public/repository.class.php After you finished, we will create a contrib directory for you, so you can share your code worldwide
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Thanks for the support.
            I already have:

            • instances management
            • single and federated search
            • preview of LOs

            My problem now is to get the file (ZIP file compliant with IMS CP).
            I successful create a resource URL and use file picker to select the LO and link it.
            But my goal is to use this file as a Moodle resource (available from the Files link).
            Moreover, when i use the IMS Content Package resource and use file picker to get the file i want, it stores the file in this path: http://localhost/moodle/draftfile.php/10/user_draft/476745605/InCircle and when i click in the link, it tries to open Access because the format is accdb ).

            So my question is how to efficiently handle the download of files.

            Thanks in advance.

            BTW, in addition of the features i've already implemented its possible to implement others (e.g submission of files)?

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Thanks for the support. I already have: instances management single and federated search preview of LOs My problem now is to get the file (ZIP file compliant with IMS CP). I successful create a resource URL and use file picker to select the LO and link it. But my goal is to use this file as a Moodle resource (available from the Files link). Moreover, when i use the IMS Content Package resource and use file picker to get the file i want, it stores the file in this path: http://localhost/moodle/draftfile.php/10/user_draft/476745605/InCircle and when i click in the link, it tries to open Access because the format is accdb ). So my question is how to efficiently handle the download of files. Thanks in advance. BTW, in addition of the features i've already implemented its possible to implement others (e.g submission of files)?
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Hi Dongsheng,

            Can you help me about my last comment?
            I can send to you my code or please give me a orientation to solve my problem.
            I look forward to see the crimsonHex plugin in version 2.0

            Thanks in advance.

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Hi Dongsheng, Can you help me about my last comment? I can send to you my code or please give me a orientation to solve my problem. I look forward to see the crimsonHex plugin in version 2.0 Thanks in advance.
            Hide
            Dongsheng Cai added a comment -

            Hi, Ricardo,
            Sorry for my delay.

            So far everything you have done is currect, after you stored your fine in draftarea, the job of repository finished, then we need to use moodle file api move the file to a currect file area.

            Can you send me your plugin to my email: dongsheng [at] moodle.com, thanks a lot for your contribution, if I missed your comments again, feel free to ping me by my email

            Cheers,
            Dongsheng Cai

            Show
            Dongsheng Cai added a comment - Hi, Ricardo, Sorry for my delay. So far everything you have done is currect, after you stored your fine in draftarea, the job of repository finished, then we need to use moodle file api move the file to a currect file area. Can you send me your plugin to my email: dongsheng [at] moodle.com, thanks a lot for your contribution, if I missed your comments again, feel free to ping me by my email Cheers, Dongsheng Cai
            Hide
            Dongsheng Cai added a comment -

            Adding Anthony here.

            Hi, Anthony

            Can we add this plugin to contrib, Ricardo would like to maintain this plugin, I am not sure how to setup contrib cvs read/write permission for him.

            And to Ricardo,
            I added boilerplates to your code, and a few small changes, can you please review it.

            Thanks in advance.

            Best regards,
            Dongsheng Cai

            Show
            Dongsheng Cai added a comment - Adding Anthony here. Hi, Anthony Can we add this plugin to contrib, Ricardo would like to maintain this plugin, I am not sure how to setup contrib cvs read/write permission for him. And to Ricardo, I added boilerplates to your code, and a few small changes, can you please review it. Thanks in advance. Best regards, Dongsheng Cai
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Hi all,

            When possible please send me the instructions of how to submit new versions of the crimsonHex plugin in cvs.
            I 'm reviewing now the plugin after the Dongsheng changes.

            Thanks!

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Hi all, When possible please send me the instructions of how to submit new versions of the crimsonHex plugin in cvs. I 'm reviewing now the plugin after the Dongsheng changes. Thanks!
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            After reviewing the code, two issues:

            • Preview link disappear
            • the window of the search form is overlapped by the main window.

            The rest is OK.

            Best regards,
            Ricardo Queirós

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - After reviewing the code, two issues: Preview link disappear the window of the search form is overlapped by the main window. The rest is OK. Best regards, Ricardo Queirós
            Hide
            Anthony Borrow added a comment -

            Dongsheng - Please feel free to add the code to CONTRIB and let me know if you have any questions or need any help. I know we had a brief exchange about it on jabber but I forget if I promised to do anything or not. I just don't want to be the bottleneck to moving this forward. Peace - Anthony

            Show
            Anthony Borrow added a comment - Dongsheng - Please feel free to add the code to CONTRIB and let me know if you have any questions or need any help. I know we had a brief exchange about it on jabber but I forget if I promised to do anything or not. I just don't want to be the bottleneck to moving this forward. Peace - Anthony
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Hi, Anthony

            I would like to maintain this plugin, I am not sure if you can setup contrib cvs read/write permission for me.

            Thanks in advance.

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Hi, Anthony I would like to maintain this plugin, I am not sure if you can setup contrib cvs read/write permission for me. Thanks in advance.
            Hide
            Dongsheng Cai added a comment - - edited

            Hi, anthony, I committed Ricardo's plugin to contrib today, but I am not sure how to setup write permission for him, can you help?

            Thanks in advance.

            (btw, I am quite happy to see your profile in http://moodle.com/hq )

            Show
            Dongsheng Cai added a comment - - edited Hi, anthony, I committed Ricardo's plugin to contrib today, but I am not sure how to setup write permission for him, can you help? Thanks in advance. (btw, I am quite happy to see your profile in http://moodle.com/hq )
            Hide
            Anthony Borrow added a comment -

            Dongsheng - I am happy to amongst such fine company! Thanks for committing the code to CVS. I have created a component in the tracker (http://tracker.moodle.org/browse/CONTRIB/component/10606) and made Ricardo the component lead so any new issues will be automatically assigned to him. I have also bumped his privileges in the tracker so that he can manage issues related to the crimsonhex repository component. For write access, Ricardo simply needs to go to http://moodle.org/cvs/ and apply for write access to contrib/plugins/repository/crimsonhex. Once he does, then I can get that approved for him. I would also suggest that Ricardo review http://docs.moodle.org/en/Development:Guidelines_for_contributed_code to do things like creating a Moodle Docs page and adding the entry in the Modules & Plugins database. Let me know if there are any questions or how I can be of help. Peace - Anthony

            Show
            Anthony Borrow added a comment - Dongsheng - I am happy to amongst such fine company! Thanks for committing the code to CVS. I have created a component in the tracker ( http://tracker.moodle.org/browse/CONTRIB/component/10606 ) and made Ricardo the component lead so any new issues will be automatically assigned to him. I have also bumped his privileges in the tracker so that he can manage issues related to the crimsonhex repository component. For write access, Ricardo simply needs to go to http://moodle.org/cvs/ and apply for write access to contrib/plugins/repository/crimsonhex. Once he does, then I can get that approved for him. I would also suggest that Ricardo review http://docs.moodle.org/en/Development:Guidelines_for_contributed_code to do things like creating a Moodle Docs page and adding the entry in the Modules & Plugins database. Let me know if there are any questions or how I can be of help. Peace - Anthony
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Hi Anthony,

            I'm using Tortoise for CVS operations.

            I can establish a read-only connection using anonymous login.
            But for contribute purposes i'm using the following CVSROOT field: :ext:rqueiros@cvs.moodle.org:/cvsroot/moodle.
            However when i put my password i receive the following message:

            "cvs [checkout aborted]: end of file from server (consult above messages if any)"

            Am i doing something wrong?

            Thanks in advance.

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Hi Anthony, I'm using Tortoise for CVS operations. I can establish a read-only connection using anonymous login. But for contribute purposes i'm using the following CVSROOT field: :ext:rqueiros@cvs.moodle.org:/cvsroot/moodle. However when i put my password i receive the following message: "cvs [checkout aborted] : end of file from server (consult above messages if any)" Am i doing something wrong? Thanks in advance.
            Hide
            Anthony Borrow added a comment -

            Ricardo - I am assuming that you attempted to use the cvs.moodle.org repository after I approved your CVS write request. Otherwise, yes the form of the repository looks correct as I am using

            :ext:arborrow@cvs.moodle.org:/cvsroot/moodle

            I am not sure but perhaps http://docs.moodle.org/en/CVS_for_Administrators#Switching_to_a_new_server_with_TortoiseCVS would be of some help.

            Although you will probably be more interested in http://docs.moodle.org/en/CVS_for_Developers. I would probably focus on the module name and make sure you are putting the full path since you only have read/write access to the crimsonHex directory.

            Let me know if you continue to run into problems. Peace - Anthony

            Show
            Anthony Borrow added a comment - Ricardo - I am assuming that you attempted to use the cvs.moodle.org repository after I approved your CVS write request. Otherwise, yes the form of the repository looks correct as I am using :ext:arborrow@cvs.moodle.org:/cvsroot/moodle I am not sure but perhaps http://docs.moodle.org/en/CVS_for_Administrators#Switching_to_a_new_server_with_TortoiseCVS would be of some help. Although you will probably be more interested in http://docs.moodle.org/en/CVS_for_Developers . I would probably focus on the module name and make sure you are putting the full path since you only have read/write access to the crimsonHex directory. Let me know if you continue to run into problems. Peace - Anthony
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Forgot the full path.
            Problem solved.

            Thanks Anthony!

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Forgot the full path. Problem solved. Thanks Anthony!
            Hide
            Anthony Borrow added a comment -

            Ricardo - No worries, glad you were able to get it working and thanks for posting back the positive results. Peace - Anthony

            Show
            Anthony Borrow added a comment - Ricardo - No worries, glad you were able to get it working and thanks for posting back the positive results. Peace - Anthony
            Hide
            Ricardo Alexandre Peixoto de Queirós added a comment -

            Hi all,

            I want to know when the plugin can move from contrib folder to repository folder.
            Thanks in advance.

            Ricardo Queirós

            Show
            Ricardo Alexandre Peixoto de Queirós added a comment - Hi all, I want to know when the plugin can move from contrib folder to repository folder. Thanks in advance. Ricardo Queirós
            Hide
            Dongsheng Cai added a comment -

            Hi, Ricardo

            Probably 2.1, we are so close to release 2.0, so no new features will be added

            Show
            Dongsheng Cai added a comment - Hi, Ricardo Probably 2.1, we are so close to release 2.0, so no new features will be added
            Hide
            Madhabendra Mandal added a comment -

            Hi Ricardo,
            I am facing the same issue. Can you please help me where to put the full path to solve the problems.

            Thanks in advance.

            Show
            Madhabendra Mandal added a comment - Hi Ricardo, I am facing the same issue. Can you please help me where to put the full path to solve the problems. Thanks in advance.
            Hide
            Madhabendra Mandal added a comment -

            Hi Ricardo,
            I am facing the same issue. Can you please help me where to put the full path to solve the problems.

            Thanks in advance.

            Show
            Madhabendra Mandal added a comment - Hi Ricardo, I am facing the same issue. Can you please help me where to put the full path to solve the problems. Thanks in advance.
            Hide
            Dongsheng Cai added a comment -

            This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.
            For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

            Show
            Dongsheng Cai added a comment - This issue was assigned to me automatically, however I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue. For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: