Git Product home page Git Product logo

Comments (20)

falcon-git avatar falcon-git commented on June 27, 2024

Do note that each line may have multiple blanks as well, and it might not be possible to understand each line if it stands on its own. We're actually considering to remove the multiple lines feature. They were there because we initially didn't use a wysiwyg text editor in this content type, but now there is really not reason to have that feature anymore, and most ppl only uses one line and creates several lines with the wysiwyg editor anyway.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

There would need to be one statement per blank in order to fit with the interaction component data structure.

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

I think I found that xAPI supports multiple blanks. Is our current implementation wrong then?

https://h5p.org/node/3426

I saw that it was troublesome but not impossible to implement support for multiple correct answers for each blank though.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Sorry yes, you are quite right and so is your documentation. My error.

I didn't get the interaction component properties when I tested though. Has that documentation been implemented? Here's the statement I got:

{
    "id": "faa6db0a-3bc4-4e96-b58d-6582b268e430",
    "actor": {
        "name": "admin",
        "mbox": "mailto:[email protected]",
        "objectType": "Agent"
    },
    "verb": {
        "id": "http://adlnet.gov/expapi/verbs/answered",
        "display": {
            "en-US": "answered"
        }
    },
    "result": {
        "score": {
            "scaled": 0,
            "raw": 0,
            "min": 0,
            "max": 2
        },
        "completion": true,
        "duration": "PT12.8S"
    },
    "context": {
        "contextActivities": {
            "category": [
                {
                    "id": "http://h5p.org/libraries/H5P.Blanks-1.4",
                    "objectType": "Activity"
                }
            ],
            "grouping": [
                {
                    "id": "http://localhost:8888/wordpress/h5p-test/",
                    "definition": {
                        "name": {
                            "en": " | H5P testWordPress sandbox"
                        },
                        "type": "http://activitystrea.ms/schema/1.0/page",
                        "moreInfo": "http://localhost:8888/wordpress/h5p-test/"
                    },
                    "objectType": "Activity"
                }
            ]
        }
    },
    "timestamp": "2015-10-22T10:55:47.307Z",
    "stored": "2015-10-22T10:55:47.307Z",
    "authority": {
        "name": "H5P",
        "account": {
            "homePage": "https://sandbox.watershedlrs.com",
            "name": "CDrGGtiYAEjUFr"
        },
        "objectType": "Agent"
    },
    "version": "1.0.0",
    "object": {
        "id": "http://localhost:8888/wordpress/wp-admin/admin-ajax.php?action=h5p_embed&id=9",
        "definition": {
            "extensions": {
                "http://h5p.org/x-api/h5p-local-content-id": 9
            },
            "name": {
                "en-US": "Fill in the blanks"
            }
        },
        "objectType": "Activity"
    }
}

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

That was strange. If you try the example on H5P.org you get it in your console so it is implemented yes.

https://h5p.org/fill-in-the-blanks

Does it show up in console in your test server?

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

Waiting for feedback here...

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Hi, sorry for the slow reply. Can you remind me how to turn on statements in the console? I know you mentioned it in another thread but I can't remember which repo it was on.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Found it H5P.externalDispatcher.on('xAPI', function(event){console.log(JSON.parse(JSON.stringify(event.data.statement)));})

So confirmed, I'm not getting interaction components in console on my local wordpress either.

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

Ok, that probably doesn't prove anything since there might be other event listeners that runs before your's messing up the statement.

Have you got the latest version of the H5P library? Not the H5P plugin for Wordpress, but the content types https://h5p.org/update-all-content-types

Are you looking at the "answered" statements?

Could you provide a link to the page where this content is so that I may debug it?

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

I aim to check those questions later today or tomorrow. Unfortunately I can't give you access as I'm running this on localhost. I don't have a live Wordpress I can test this on.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Confirmed - I updated the libraries and checked that I was looking at the "answered" statement.

I attach the h5p file below. I had to rename this to .png for github to let me upload it, so hopefully you can download it and rename? If not I'll send it via email.

fill-in-the-blanks-9

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

Thanks. I was unable to reproduce the problem with your code when running it in WP. If you turn of any xAPI related plugins on your site, does this still happen in the console?

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Yes, I'm afraid I still get the same statement with only 1 plugin activated, H5P.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Just to make sure we're talking about the same thing, can you post the statement you're seeing?

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

{"actor":{"account":{"name":"53e4abae-76e7-42d9-858e-c54c29059fa4","homePage":"https://h5p.org/"},"objectType":"Agent"},"verb":{"id":"http://adlnet.gov/expapi/verbs/answered","display":{"en-US":"answered"}},"object":{"id":"https://h5p.org/fill-in-the-blanks","objectType":"Activity","definition":{"extensions":{"http://h5p.org/x-api/h5p-local-content-id":837},"name":{"en-US":"Fill in the Blanks"},"description":{"en-US":"

Insert the missing words in this text about berries found in Norwegian forests and mountainous regions.

\n

Bilberries (Vaccinium myrtillus), also known as __________berries are edible, nearly black berries found in nutrient-poor soils.

\n

__________berries (Rubus chamaemorus) are edible orange berries similar to raspberries or blackberries found in alpine and arctic tundra. 

\n

Redcurrant (Ribes rubrum) are red translucent berries with a diameter of 8–10 mm, and are closely related to its black colored relative __________currant. 

\n"},"type":"http://adlnet.gov/expapi/activities/cmi.interaction","interactionType":"fill-in","correctResponsesPattern":["{case_matters=false}blue[,]Cloud[,]black"]}},"context":{"contextActivities":{"category":[{"id":"http://h5p.org/libraries/H5P.Blanks-1.4","objectType":"Activity"}]}},"result":{"score":{"min":0,"max":3,"raw":0,"scaled":0},"duration":"PT31.57S","response":"wef[,]sdf[,]sdf"}}

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

Hm.. well I'm throughly puzzled then!

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

Yeah, I would be able to figure this out with access to the server :)

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

I close this issue, and you could consider open a new one if you still think the issue is with H5P and not your setup.

from h5p-blanks.

garemoko avatar garemoko commented on June 27, 2024

OK.

from h5p-blanks.

falcon-git avatar falcon-git commented on June 27, 2024

I actually found the problem now. When "Automatically check answers after input" is on it works, when it isn't on and you press the check button the properties are missing. This has been fixed on master and will be released soon. The problem seems to be caused by a merge that went wrong.

from h5p-blanks.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.