diff --git a/chant.php b/chant.php
index 9a22d9d..a899550 100644
--- a/chant.php
+++ b/chant.php
@@ -62,7 +62,9 @@ while ($s = $req1->fetch_assoc()) {
}
echo '
';
-if($c['gabc'] > '') {
+if($c['copyrighted']) {
+ echo 'This tune is still under copyright.';
+} elseif($c['gabc'] > '') {
echo '

';
} else {
echo 'Yet to be transcribed. ';
@@ -214,63 +216,64 @@ $report_form
POPUP1;
}
-echo "Download
\n\n";
-$content = json_decode($c['gabc']);
-if(is_string($content)) {
- echo '- GABC
'."\n";
-} elseif(is_array($content)) {
- $gabcs = array();
- foreach($content as $e) {
- if($e[0] == 'gabc') $gabcs[] = $e[1];
- }
- if(count($gabcs) > 1) {
- echo "- GABC
";
- for($i = 0; $i < count($gabcs); $i++) {
- echo '- Element '.($i+1)."
\n";
+if(!$c['copyrighted']) {
+ echo "Download
\n\n";
+ $content = json_decode($c['gabc']);
+ if(is_string($content)) {
+ echo '- GABC
'."\n";
+ } elseif(is_array($content)) {
+ $gabcs = array();
+ foreach($content as $e) {
+ if($e[0] == 'gabc') $gabcs[] = $e[1];
+ }
+ if(count($gabcs) > 1) {
+ echo "- GABC
\n";
+ } else {
+ echo '- GABC
'."\n";
}
- echo "
\n";
- } else {
- echo '- GABC
'."\n";
}
-}
-foreach(array('pdf','svg','eps','png') as $a) {
- echo '- '.strtoupper($a).'
'."\n";
-}
-echo "
\n";
-if($c['gabc_verses'] || $c['tex_verses']){
- echo "\n";
-}
+ if($c['gabc_verses'] || $c['tex_verses']){
+ echo "\n";
+ }
-echo "Open with external tool
\n\n";
-$gabc = (($c['office-part'] && $txt['usage_s'][$c['office-part']] > '')?'annotation: '.$txt['usage_s'][$c['office-part']]."\n":'');
-$mode_r = False;
-if($c['mode'] > '') {
- if($c['mode'] == 'p') {
- $mode = "T. pereg.";
- } elseif(in_array($c['mode'], array('c','d','e'))) {
- $mode = strtoupper($c['mode']).($c['mode_var']?' '.$c['mode_var']:'');
- } else {
- $mode = $c['mode'].($c['mode_var']?' '.$c['mode_var']:'');
- }
-}
-if($mode) $gabc .= "annotation: $mode\n";
-$gabc .= "%%\n";
-if(is_string($content)) {
- $gabc .= $content."\n";
-} elseif(is_array($content)) {
- foreach($content as $e) {
- if($e[0] == 'gabc') $gabc .= $e[1]."\n";
- }
-}
-echo '- Illuminare Score editor
+ echo "Open with external tool
\n\n";
+ $gabc = (($c['office-part'] && $txt['usage_s'][$c['office-part']] > '')?'annotation: '.$txt['usage_s'][$c['office-part']]."\n":'');
+ $mode_r = False;
+ if($c['mode'] > '') {
+ if($c['mode'] == 'p') {
+ $mode = "T. pereg.";
+ } elseif(in_array($c['mode'], array('c','d','e'))) {
+ $mode = strtoupper($c['mode']).($c['mode_var']?' '.$c['mode_var']:'');
+ } else {
+ $mode = $c['mode'].($c['mode_var']?' '.$c['mode_var']:'');
+ }
+ }
+ if($mode) $gabc .= "annotation: $mode\n";
+ $gabc .= "%%\n";
+ if(is_string($content)) {
+ $gabc .= $content."\n";
+ } elseif(is_array($content)) {
+ foreach($content as $e) {
+ if($e[0] == 'gabc') $gabc .= $e[1]."\n";
+ }
+ }
+ echo '- Illuminare Score editor
- Source & Summit Editor
';
-echo "
\n";
-
+ echo "
\n";
+}
if($c['remarks'] > '') {
echo "Remarks
\n\n";
}