From: ScottDowne Date: Tue, 11 Jan 2011 16:35:14 +0000 (-0500) Subject: [#246] uncommented attribution from XML X-Git-Tag: v0.2~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3fa2bb64f6daee34e32c7c7385615c373f3e0588;p=popcorn-js.git [#246] uncommented attribution from XML --- diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index 7c89e8f..cb84299 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -89,7 +89,7 @@ This video made exclusively for drumbeat.org - + @@ -97,15 +97,15 @@ - + Grassroots Mapping, Tungsten Monkey - + KeyBoard Cat, Charlie Schmidt - + Grassroots Mapping, Tungsten Monkey @@ -138,14 +138,14 @@ - + @@ -174,7 +174,7 @@ - + diff --git a/plugins/attribution/popcorn.attribution.html b/plugins/attribution/popcorn.attribution.html index 719be12..28f9c3d 100644 --- a/plugins/attribution/popcorn.attribution.html +++ b/plugins/attribution/popcorn.attribution.html @@ -13,8 +13,8 @@ .attribution({ start: 0, // seconds end: 10, // seconds - nameOfWork: "A Shared Culture", - copyrightHolder:"Jesse Dylan", + nameofwork: "A Shared Culture", + copyrightholder:"Jesse Dylan", license: "CC-BY-N6", licenseUrl: "http://creativecommons.org/licenses/by-nc/2.0/", target: 'attribdiv' @@ -22,9 +22,9 @@ .attribution({ start: 5, // seconds end: 15, // seconds - nameOfWork: "Internet", - nameOfWorkUrl:"http://www.archive.org/details/CC1232_internet", - copyrightHolder:"The Computer Chronicles", + nameofwork: "Internet", + nameofworkurl:"http://www.archive.org/details/CC1232_internet", + copyrightholder:"The Computer Chronicles", license:"CC-BY-NC-ND", licenseUrl: "http://creativecommons.org/licenses/by-nc-nd/2.0/", target: 'attribdiv' diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index ba9c023..18b3a7e 100644 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -6,11 +6,11 @@ * Attribution popcorn plug-in * Adds text to an element on the page. * Options parameter will need a mandatory start, end, target. - * Optional parameters include NameOfWork, NameOfWorkUrl, CopyrightHolder, CopyrightHolderUrl, license & licenseUrl. + * Optional parameters include nameofwork, NameOfWorkUrl, CopyrightHolder, CopyrightHolderUrl, license & licenseUrl. * Start is the time that you want this plug-in to execute * End is the time that you want this plug-in to stop executing * Target is the id of the document element that the text needs to be attached to, this target element must exist on the DOM - * NameOfWork is the title of the attribution + * nameofwork is the title of the attribution * NameOfWorkUrl is a url that provides more details about the attribution * CopyrightHolder is the name of the person/institution that holds the rights to the attribution * CopyrightHolderUrl is the url that provides more details about the copyrightholder @@ -47,10 +47,10 @@ options:{ start : {elem:'input', type:'text', label:'In'}, end : {elem:'input', type:'text', label:'Out'}, - nameOfWork : {elem:'input', type:'text', label:'Name of Work'}, - nameOfWorkUrl : {elem:'input', type:'text', label:'Url of Work'}, - copyrightHolder : {elem:'input', type:'text', label:'Copyright Holder'}, - copyrightHolderUrl : {elem:'input', type:'text', label:'Copyright Holder Url'}, + nameofwork : {elem:'input', type:'text', label:'Name of Work'}, + nameofworkurl : {elem:'input', type:'text', label:'Url of Work'}, + copyrightholder : {elem:'input', type:'text', label:'Copyright Holder'}, + copyrightHolderurl : {elem:'input', type:'text', label:'Copyright Holder Url'}, license : {elem:'input', type:'text', label:'License type'}, licenseUrl : {elem:'input', type:'text', label:'License URL'}, target : 'attribution-container' @@ -62,22 +62,22 @@ options._container = document.createElement( 'div' ); options._container.style.display = "none"; - if (options.nameOfWorkUrl) { - attrib += ""; + if (options.nameofworkurl) { + attrib += ""; } - if (options.nameOfWork) { - attrib += options.nameOfWork; + if (options.nameofwork) { + attrib += options.nameofwork; } - if (options.nameOfWorkUrl) { + if (options.nameofworkurl) { attrib += ""; } - if (options.copyrightHolderUrl) { - attrib += ""; + if (options.copyrightHolderurl) { + attrib += ""; } - if (options.copyrightHolder) { - attrib += ", " + options.copyrightHolder; + if (options.copyrightholder) { + attrib += ", " + options.copyrightholder; } - if (options.copyrightHolderUrl) { + if (options.copyrightHolderurl) { attrib += ""; } if (options.license) { @@ -122,4 +122,4 @@ } }; })()); -})( Popcorn ); \ No newline at end of file +})( Popcorn ); diff --git a/plugins/attribution/popcorn.attribution.unit.js b/plugins/attribution/popcorn.attribution.unit.js index 2133b61..542c80b 100644 --- a/plugins/attribution/popcorn.attribution.unit.js +++ b/plugins/attribution/popcorn.attribution.unit.js @@ -28,8 +28,8 @@ test("Popcorn attribution Plugin", function () { popped.attribution({ start: 0, // seconds end: 5, // seconds - nameOfWork: "A Shared Culture", - copyrightHolder:"Jesse Dylan", + nameofwork: "A Shared Culture", + copyrightholder:"Jesse Dylan", licenseType: "CC-BY-N6", licenseUrl: "http://creativecommons.org/licenses/by-nc/2.0/", target: 'attribdiv' @@ -37,9 +37,9 @@ test("Popcorn attribution Plugin", function () { .attribution({ start: 3, // seconds end: 10, // seconds - nameOfWork: "Internet", - nameOfWorkUrl:"http://www.archive.org/details/CC1232_internet", - copyrightHolder:"The Computer Chronicles", + nameofwork: "Internet", + nameofworkurl:"http://www.archive.org/details/CC1232_internet", + copyrightholder:"The Computer Chronicles", licenseType:"CC-BY-NC-ND", licenseUrl: "http://creativecommons.org/licenses/by-nc-nd/2.0/", target: 'attribdiv'