]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#255] attribution case fixes
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 23:30:32 +0000 (18:30 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 23:30:32 +0000 (18:30 -0500)
plugins/attribution/popcorn.attribution.html
plugins/attribution/popcorn.attribution.js
plugins/attribution/popcorn.attribution.unit.js

index 28f9c3d26a2e3f1944b7c401445fa353f4c6f4f9..fd3a1511218e9a43901cd4d30504937791058a4d 100644 (file)
@@ -16,7 +16,7 @@
         nameofwork: "A Shared Culture",
         copyrightholder:"Jesse Dylan",
         license: "CC-BY-N6",
-        licenseUrl: "http://creativecommons.org/licenses/by-nc/2.0/",
+        licenseurl: "http://creativecommons.org/licenses/by-nc/2.0/",
         target: 'attribdiv'
       } )
       .attribution({
@@ -26,7 +26,7 @@
         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/",
+        licenseurl: "http://creativecommons.org/licenses/by-nc-nd/2.0/",
         target: 'attribdiv'
       } )
 
index dd053ca871e1dd46ba052bda535104c8e59f36e1..dd44fcc3986670bdc24a9d845cc28ad1415dea3e 100644 (file)
@@ -50,9 +50,9 @@
           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'},
+          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'},
+          licenseurl         : {elem:'input', type:'text', label:'License URL'},
           target             : 'attribution-container'
         }
       },
         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.copyrightHolderurl) {
+        if (options.copyrightholderurl) {
           attrib += "</a>";
         }
 
 
         if (options.license) {
           if (licenses[options.license.toLowerCase()]) {
-            if (options.licenseUrl) {
-              attrib = "<a href='" + options.licenseUrl + "' target='_blank'><img src='"+ licenses[options.license.toLowerCase()] +"' border='0'/></a> " + attrib;
+            if (options.licenseurl) {
+              attrib = "<a href='" + options.licenseurl + "' target='_blank'><img src='"+ licenses[options.license.toLowerCase()] +"' border='0'/></a> " + attrib;
             } else {
               attrib = "<img src='"+ licenses[options.license.toLowerCase()] +"' />" + attrib;
             }
           } else {
-            if (options.licenseUrl) {
-              attrib += ", license: <a href='" + options.licenseUrl + "' target='_blank'>" + options.license + "</a> ";
+            if (options.licenseurl) {
+              attrib += ", license: <a href='" + options.licenseurl + "' target='_blank'>" + options.license + "</a> ";
             } else {
               attrib += ", license: " + options.license;
             }
index 542c80b80fc7281d567462872a68355ac0b865d1..31977705841f68eb9f92614cded02da2a2b3785c 100644 (file)
@@ -30,8 +30,8 @@ test("Popcorn attribution Plugin", function () {
       end: 5, // seconds
       nameofwork: "A Shared Culture",
       copyrightholder:"Jesse Dylan",
-      licenseType: "CC-BY-N6",
-      licenseUrl: "http://creativecommons.org/licenses/by-nc/2.0/",
+      license: "CC-BY-N6",
+      licenseurl: "http://creativecommons.org/licenses/by-nc/2.0/",
       target: 'attribdiv'
     } )
     .attribution({
@@ -40,8 +40,8 @@ test("Popcorn attribution Plugin", function () {
       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/",
+      license:"CC-BY-NC-ND",
+      licenseurl: "http://creativecommons.org/licenses/by-nc-nd/2.0/",
       target: 'attribdiv'
     } )
     .volume(0)