]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#246] uncommented attribution from XML
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 16:35:14 +0000 (11:35 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 16:35:14 +0000 (11:35 -0500)
demos/semantic_video/xml/webMadeMovies.xml
plugins/attribution/popcorn.attribution.html
plugins/attribution/popcorn.attribution.js
plugins/attribution/popcorn.attribution.unit.js

index 7c89e8f13563168a8ce2768a5ff61cd1c2ba1984..cb84299ab9dd6d94295a304b17da29f0fcb0d096 100644 (file)
@@ -89,7 +89,7 @@
     <resources>
       <footnote in="00:00:00" out="00:15:00" target="footnotediv">This video made exclusively for drumbeat.org </footnote>
       <tagthisperson target="inthisvideo" in="00:00:05:02" out="00:00:10:07" person="Steve Song" />
-      <!--<attribution in="00:00:05:02" out="00:00:10:07" target="container5" resourceid="villagetelcoattrib"></attribution>-->
+      <attribution in="00:00:05:02" out="00:00:10:07" target="container5" resourceid="villagetelcoattrib"></attribution>
       <twitter in="00:00:05:02" out="00:00:10:07" title="Steve Song" src="@stevesong" target="personaltwitter" width="238" height="120"/>
       <wikipedia in="00:00:05:02" out="00:00:10:07" resourceid="villagetelco" numberofwords="200" lang="en" target="wikidiv"/>
       <flickr in="00:00:05:02" out="00:00:10:07" target="personalflickr" userid="78868639@N00" numberofimages="8" padding="4px"/>
 
       <twitter in="00:00:10:07" out="00:00:18:04" title="Oil Spill" src="#oilspill" target="twitter" width="238" height="120"/>
       <googlenews in="00:00:10:07" out="00:00:18:04" target="googlenewsdiv" topic="Oil Spill"/>
-      <!--<attribution in="00:00:10:07" out="00:00:18:04" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>-->
+      <attribution in="00:00:10:07" out="00:00:18:04" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
 
       <tagthisperson target="inthisvideo" in="00:00:18:04" out="00:00:25:02" person="Keyboard Cat"/>
       <twitter in="00:00:18:04" out="00:00:25:02" title="Keyboard Cat" src="#keyboardcat" target="twitter" width="238" height="120"/>
-      <!--<attribution in="00:00:18:04" out="00:00:25:02" target="container5">KeyBoard Cat, Charlie Schmidt</attribution>-->
+      <attribution in="00:00:18:04" out="00:00:25:02" target="container5">KeyBoard Cat, Charlie Schmidt</attribution>
       <googlenews in="00:00:18:04" out="00:00:25:02" target="googlenewsdiv" topic="Keyboard Cat"/>
 
       <tagthisperson target="inthisvideo" in="00:00:28:09" out="00:00:29:07" person="Jeffrey Warren" />
-      <!--<attribution in="00:00:28:09" out="00:00:29:07" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>-->
+      <attribution in="00:00:28:09" out="00:00:29:07" target="container5">Grassroots Mapping, Tungsten Monkey</attribution>
       <tagthisperson target="inthisvideo" in="00:00:29:08" out="00:00:31:00" person="Village Telco Guy" />
 
       <wikipedia in="00:00:32:00" out="00:00:41:00" resourceid="theinternet" numberofwords="200" target="wikidiv"/>
       <wikipedia in="00:02:23:01" out="00:02:26:00" resourceid="aol" numberofwords="200" target="wikidiv"/>
       <wikipedia in="00:02:26:01" out="00:02:33:00" resourceid="prodigy" numberofwords="200" target="wikidiv"/>
 
-      <!--<attribution in="00:02:15:09" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
+      <attribution in="00:02:15:09" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
       <attribution in="00:02:17:01" out="00:02:20:00" target="container5" resourceid="aolattrib"></attribution>
       <attribution in="00:02:20:01" out="00:02:17:00" target="container5" resourceid="compuserveattrib"></attribution>
       <attribution in="00:02:17:01" out="00:02:26:00" target="container5" resourceid="aolattrib"></attribution>
       <attribution in="00:02:26:01" out="00:02:33:00" target="container5" resourceid="prodigyattrib"></attribution>
       <attribution in="00:02:37:00" out="00:02:47:00" target="container5" resourceid="networksattrib"></attribution>
       <attribution in="00:02:47:01" out="00:02:55:00" target="container5" resourceid="bankattrib"></attribution>
-      <attribution in="00:03:07:10" out="00:03:29:00" target="container5" resourceid="bankattrib"></attribution>-->
+      <attribution in="00:03:07:10" out="00:03:29:00" target="container5" resourceid="bankattrib"></attribution>
 
       <wikipedia in="00:02:41:00" out="00:02:57:00" resourceid="internetprotocol" numberofwords="200" target="wikidiv"/>
       <wikipedia in="00:02:57:01" out="00:03:03:00" resourceid="timbernerslee" numberofwords="200" target="wikidiv"/>
       <tagthisperson target="inthisvideo" in="00:04:03:06" out="00:04:07:00" person="Noah Workman" />
       <twitter in="00:04:03:06" out="00:04:07:00" title="Noah Workman" src="@noahworkman" target="personaltwitter" width="238" height="120"/>
       <tagthisperson target="inthisvideo" in="00:04:03:06" out="00:04:13:01" person="Wilken Sanches" />
-      <!--<attribution in="00:04:10:00" out="00:04:13:00" target="container5" resourceid="attrib"></attribution>-->
+      <attribution in="00:04:10:00" out="00:04:13:00" target="container5" resourceid="attrib"></attribution>
       <tagthisperson target="inthisvideo" in="00:04:13:02" out="00:04:19:05" person="Keechang Kim" />
       <twitter in="00:04:19:06" out="00:04:24:01" title="Celine Celines" src="from:celinecelines" target="personaltwitter" width="238" height="120"/>
       <tagthisperson target="inthisvideo" in="00:04:19:06" out="00:04:24:01" person="Celine Celines" />
index 719be124b209f5cc672c8d1f31467ae24edfd7eb..28f9c3d26a2e3f1944b7c401445fa353f4c6f4f9 100644 (file)
@@ -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'
index ba9c023e4538fc060f48084f60b4b69d3c3043c9..18b3a7e321dcf7266b750d11bdbdbd63c0730424 100644 (file)
@@ -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
         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'
         options._container = document.createElement( 'div' );
         options._container.style.display = "none";
               
-        if (options.nameOfWorkUrl) {
-          attrib += "<a href='" + options.nameOfWorkUrl + "' target='_blank'>";
+        if (options.nameofworkurl) {
+          attrib += "<a href='" + options.nameofworkurl + "' target='_blank'>";
         }
-        if (options.nameOfWork) {
-          attrib += options.nameOfWork;
+        if (options.nameofwork) {
+          attrib += options.nameofwork;
         }
-        if (options.nameOfWorkUrl) {
+        if (options.nameofworkurl) {
           attrib += "</a>";
         }
-        if (options.copyrightHolderUrl) {
-          attrib += "<a href='" + options.copyrightHolderUrl + "' target='_blank'>";
+        if (options.copyrightHolderurl) {
+          attrib += "<a href='" + options.copyrightHolderurl + "' target='_blank'>";
         }
-        if (options.copyrightHolder) {
-          attrib += ", " + options.copyrightHolder;
+        if (options.copyrightholder) {
+          attrib += ", " + options.copyrightholder;
         }
-        if (options.copyrightHolderUrl) {
+        if (options.copyrightHolderurl) {
           attrib += "</a>";
         }
         if (options.license) {
       }
     };
   })());
-})( Popcorn );
\ No newline at end of file
+})( Popcorn );
index 2133b6147e8643ac8545fa199f6d56c790674571..542c80b80fc7281d567462872a68355ac0b865d1 100644 (file)
@@ -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'