Giter Site home page Giter Site logo

tincanstatementviewer's Introduction

###Overview

This repo contains a statement viewing page for Tin Can API statement streams.

  • Copy the file config.js.template to config.js and set Config.endpoint to the LRS endpoint, including a trailing slash (ex: https://cloud.scorm.com/tc/public/)
  • Set the endpoint credentials in Config.authUser and Config.authPassword as provided by the LRS
  • Load: index.html in a browser

###Contact: [email protected]
http://tincanapi.com

tincanstatementviewer's People

Contributors

brianjmiller avatar bscscorm avatar davidells avatar fishhooks avatar ingramj avatar tedwards avatar tseabrooks avatar twiglet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tincanstatementviewer's Issues

Bug in resources/scripts/TinCanViewer.js - missing underscore

Line 573:

    catch (error){
        TCDriver_Log("Error occurred while trying to display statement with id " + stmt.id + ": " + error.message);
    }

Must be (note underscore) :
catch (error){
_TCDriver_Log("Error occurred while trying to display statement with id " + stmt.id + ": " + error.message);
}

Plamen

"incorrectly failed" in activity stream sounds weird.

If a statement has:

  1. The verb "failed"
  2. An activity type of "cmi.interaction"
  3. a result success of "false"

The activity stream will then display as in the screenshot attached. You get a similar thing with "successfully passed"

IMHO the adverbs "correctly" and "incorrectly" should only appear if the verb is http://adlnet.gov/expapi/verbs/answered.

There is a counter argument that statement viewer is for more technical people who may care more about the information than the grammar and that the viewer should continue to behave as it does.

Filtering 0.95 + 0.9 Results in Duplicate Display of 0.95 Statements in IE8

If I use Statement Viewer against an LRS with 0.9, 0.95, and 1.0.0 statements, the 1.0.0, 0.95 + 0.9 combined, and 0.95 filters work fine on initial use. But filtering on 0.9 shows me my 0.95 statements, and then returning to the 0.95 + 0.9 filter shows me a double set of my 0.95 statements.

I was unable to reproduce this in Firefox, so it might be an IE-only behavior.

'More' URL is parsed incorrectly

The /statements endpoint returns "more" with a value of:

http://localhost:3000/xAPI/statements?limit=25&related_activities=false&related_agents...

And the StatementViewer tries to load the following:

http://localhost:3000/http://localhost:3000/xAPI/statements?limit=25&related_activities...

Implement Cache-busting for IE

I can reproducibly create a scenario where POSTing statements (e.g., voiding) from outside an LRS implementing statement viewer seems to be ignored by IE* caching the Ajax request. Would be nice to have some cache-busting.

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.