Comments (20)
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.
There would need to be one statement per blank in order to fit with the interaction component data structure.
from h5p-blanks.
I think I found that xAPI supports multiple blanks. Is our current implementation wrong then?
I saw that it was troublesome but not impossible to implement support for multiple correct answers for each blank though.
from h5p-blanks.
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.
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.
Waiting for feedback here...
from h5p-blanks.
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.
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.
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.
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.
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.
from h5p-blanks.
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.
Yes, I'm afraid I still get the same statement with only 1 plugin activated, H5P.
from h5p-blanks.
Just to make sure we're talking about the same thing, can you post the statement you're seeing?
from h5p-blanks.
{"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.
\nBilberries (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.
\nRedcurrant (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.
Hm.. well I'm throughly puzzled then!
from h5p-blanks.
Yeah, I would be able to figure this out with access to the server :)
from h5p-blanks.
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.
OK.
from h5p-blanks.
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)
- Input behavior
- Lack of accessible name for frames. HOT 1
- Focus shifts from navigation bar under Module 1 <h1> header to bypass button located in main content. HOT 1
- There are 2 main landmarks when there should only be 1. HOT 1
- Instructions text is coded as a header, but does not function as a header. HOT 3
- Signal-Symbols are not good HOT 1
- Fill in the blanks activity memory leak, activity uses 2 GB of memory in moodle but works fine on wordpress HOT 10
- Missing translation in version 1.12.1 HOT 1
- Fill in the blanks report doesn't work anymore HOT 4
- xAPI: correct response pattern HOT 9
- But how? HOT 3
- [Feature Request] Automatic checking of answers HOT 2
- Ignore typography / punctuation (apostrophes, quotes, …) HOT 5
- Allow to add alternative that are not displayed when solution appears HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-blanks.