]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#246] attribution - if the user did not specify any parameters just pull the text...
authorScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 17:42:08 +0000 (12:42 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Tue, 11 Jan 2011 17:42:08 +0000 (12:42 -0500)
demos/semantic_video/xml/webMadeMovies.xml
plugins/attribution/popcorn.attribution.js

index cb84299ab9dd6d94295a304b17da29f0fcb0d096..e687a19ddcac1d426ed25d15740902cfbc1b1851 100644 (file)
       <attribution id="attrib" nameofwork="A Shared Culture" copyrightholder="Jesse Dylan" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
       <attribution id="villagetelcoattrib" nameofwork="Village Telco" copyrightholder="Richard Mills" license="CC-BY-NC" licenseurl="http://creativecommons.org/licenses/by-nc/2.0/"/>
       <attribution id="prodigyattrib" nameofwork="Prodigy Commercial" nameofworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
-      <attribution id="compuserveattrib" nameofwork="1991 Compuserve Internet" nameworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
-      <attribution id="aolattrib" nameofwork="1996 AOL Commercial" nameworkurl="http://www.youtube.com/watch?v=0kf1DBg5vJs" />
-      <attribution id="chronicles1attrib" nameofwork="Internet" nameworkurl="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/" />
-      <attribution id="chronicles2attrib" nameofwork="The Internet" nameworkurl="http://www.archive.org/details/episode_1134" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
-      <attribution id="bankattrib" nameofwork="Using the Bank (1947)" nameworkurl="http://www.archive.org/details/Usingthe1947" copyrightholder="The Prelinger Archives" />
+      <attribution id="compuserveattrib" nameofwork="1991 Compuserve Internet" nameofworkurl="http://www.youtube.com/watch?v=TSlb7-FJr3k" />
+      <attribution id="aolattrib" nameofwork="1996 AOL Commercial" nameofworkurl="http://www.youtube.com/watch?v=0kf1DBg5vJs" />
+      <attribution id="chronicles1attrib" 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/" />
+      <attribution id="chronicles2attrib" nameofwork="The Internet" nameofworkurl="http://www.archive.org/details/episode_1134" copyrightholder="The Computer Chronicles" license="CC-BY-NC-ND" licenseurl="http://creativecommons.org/licenses/by-nc-nd/2.0/" />
+      <attribution id="bankattrib" nameofwork="Using the Bank (1947)" nameofworkurl="http://www.archive.org/details/Usingthe1947" copyrightholder="The Prelinger Archives" />
       <attribution id="networksattrib" nameofwork="Computer Networks - The Heralds of Resource Sharing" nameofworkurl="http://video.google.com/videoplay?docid=4989933629762859961#" copyrightholder="MIT"/>
     </attributions>
     <articles>
index 18b3a7e321dcf7266b750d11bdbdbd63c0730424..dd053ca871e1dd46ba052bda535104c8e59f36e1 100644 (file)
         if (options.copyrightHolderurl) {
           attrib += "</a>";
         }
+
+        //if the user did not specify any parameters just pull the text from the tag
+        if ( attrib === "" ) {
+          attrib = options.text;
+        }
+
         if (options.license) {
           if (licenses[options.license.toLowerCase()]) {
             if (options.licenseUrl) {