From 29c8528f485f05dbeff9deaff1aac928262b1026 Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Tue, 11 Jan 2011 12:42:08 -0500 Subject: [PATCH] [#246] attribution - if the user did not specify any parameters just pull the text from the tag --- demos/semantic_video/xml/webMadeMovies.xml | 10 +++++----- plugins/attribution/popcorn.attribution.js | 6 ++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/demos/semantic_video/xml/webMadeMovies.xml b/demos/semantic_video/xml/webMadeMovies.xml index cb84299..e687a19 100644 --- a/demos/semantic_video/xml/webMadeMovies.xml +++ b/demos/semantic_video/xml/webMadeMovies.xml @@ -58,11 +58,11 @@ - - - - - + + + + + diff --git a/plugins/attribution/popcorn.attribution.js b/plugins/attribution/popcorn.attribution.js index 18b3a7e..dd053ca 100644 --- a/plugins/attribution/popcorn.attribution.js +++ b/plugins/attribution/popcorn.attribution.js @@ -80,6 +80,12 @@ if (options.copyrightHolderurl) { attrib += ""; } + + //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) { -- 2.43.0