# HG changeset patch # User Nicholas Jillings # Date 1494332494 -3600 # Node ID 394b5e20d78fb57c97f10e374caef66a913c11ad # Parent 058f270e6d4d751b94ad89b24beae5a55a16431b #209. Added minNumberPlays and maxNumberPlays to specifications diff -r 058f270e6d4d -r 394b5e20d78f js/specification.js --- a/js/specification.js Fri May 05 09:35:06 2017 +0100 +++ b/js/specification.js Tue May 09 13:21:34 2017 +0100 @@ -17,6 +17,8 @@ this.preSilence = undefined; this.postSilence = undefined; this.playOne = undefined; + this.minNumberPlays = undefined; + this.maxNumberPlays = undefined; // nodes this.metrics = undefined; @@ -548,6 +550,8 @@ this.restrictMovement = undefined; this.position = undefined; this.commentBoxPrefix = "Comment on track"; + this.minNumberPlays = undefined; + this.maxNumberPlays = undefined; this.audioElements = []; this.commentQuestions = []; this.schema = schemaRoot.getAllElementsByName("page")[0]; @@ -809,6 +813,8 @@ this.stopTime = undefined; this.sampleRate = undefined; this.image = undefined; + this.minNumberPlays = undefined; + this.maxNumberPlays = undefined; this.alternatives = []; this.schema = schemaRoot.getAllElementsByName('audioelement')[0]; this.parent = undefined; diff -r 058f270e6d4d -r 394b5e20d78f xml/test-schema.xsd --- a/xml/test-schema.xsd Fri May 05 09:35:06 2017 +0100 +++ b/xml/test-schema.xsd Tue May 09 13:21:34 2017 +0100 @@ -27,6 +27,9 @@ + + + @@ -67,6 +70,8 @@ + + @@ -107,6 +112,8 @@ + + @@ -238,6 +245,8 @@ + +