# HG changeset patch # User Nicholas Jillings # Date 1464274500 -3600 # Node ID f595f5f5a7b9665acc637a124d4d96bde502a0ea # Parent fbc22422d73da39906081327e5ac0187e8bdb35d Implementation for #93 diff -r fbc22422d73d -r f595f5f5a7b9 js/core.js --- a/js/core.js Thu May 26 10:07:15 2016 +0100 +++ b/js/core.js Thu May 26 15:55:00 2016 +0100 @@ -2487,7 +2487,7 @@ this.outsideReferenceHolder = document.createElement('button'); this.outsideReferenceHolder.className = 'outside-reference'; this.outsideReferenceHolder.setAttribute('track-id',index); - this.outsideReferenceHolder.textContent = "Play Reference"; + this.outsideReferenceHolder.textContent = this.parent.specification.label || "Reference"; this.outsideReferenceHolder.disabled = true; this.outsideReferenceHolder.onclick = function(event) @@ -2510,7 +2510,7 @@ progress = progress.split('.')[0]; this.outsideReferenceHolder.textContent = progress+'%'; } else { - this.outsideReferenceHolder.textContent = "Play Reference"; + this.outsideReferenceHolder.textContent = this.parent.specification.label || "Reference"; } }; this.startPlayback = function() @@ -2535,7 +2535,7 @@ }; this.getPresentedId = function() { - return 'Reference'; + return this.parent.specification.label || "Reference"; }; this.canMove = function() { diff -r fbc22422d73d -r f595f5f5a7b9 js/specification.js --- a/js/specification.js Thu May 26 10:07:15 2016 +0100 +++ b/js/specification.js Thu May 26 15:55:00 2016 +0100 @@ -626,6 +626,7 @@ this.marker = null; this.enforce = false; this.gain = 0.0; + this.label = null; this.startTime = null; this.stopTime = null; this.schema = specification.schema.getAllElementsByName('audioelement')[0];; diff -r fbc22422d73d -r f595f5f5a7b9 xml/test-schema.xsd --- a/xml/test-schema.xsd Thu May 26 10:07:15 2016 +0100 +++ b/xml/test-schema.xsd Thu May 26 15:55:00 2016 +0100 @@ -161,6 +161,7 @@ +