Don't display tunes under copyright
This commit is contained in:
parent
d1ef6af25c
commit
9fe9f71843
105
chant.php
105
chant.php
|
|
@ -62,7 +62,9 @@ while ($s = $req1->fetch_assoc()) {
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div id="score"><br />';
|
echo '<div id="score"><br />';
|
||||||
if($c['gabc'] > '') {
|
if($c['copyrighted']) {
|
||||||
|
echo 'This tune is still under copyright.';
|
||||||
|
} elseif($c['gabc'] > '') {
|
||||||
echo '<img src="chant_img.php?id='.$id.'" alt="" />';
|
echo '<img src="chant_img.php?id='.$id.'" alt="" />';
|
||||||
} else {
|
} else {
|
||||||
echo 'Yet to be transcribed. ';
|
echo 'Yet to be transcribed. ';
|
||||||
|
|
@ -214,63 +216,64 @@ $report_form
|
||||||
</div>
|
</div>
|
||||||
POPUP1;
|
POPUP1;
|
||||||
}
|
}
|
||||||
echo "<h4>Download</h4>\n<ul>\n";
|
if(!$c['copyrighted']) {
|
||||||
$content = json_decode($c['gabc']);
|
echo "<h4>Download</h4>\n<ul>\n";
|
||||||
if(is_string($content)) {
|
$content = json_decode($c['gabc']);
|
||||||
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc">GABC</a></li>'."\n";
|
if(is_string($content)) {
|
||||||
} elseif(is_array($content)) {
|
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc">GABC</a></li>'."\n";
|
||||||
$gabcs = array();
|
} elseif(is_array($content)) {
|
||||||
foreach($content as $e) {
|
$gabcs = array();
|
||||||
if($e[0] == 'gabc') $gabcs[] = $e[1];
|
foreach($content as $e) {
|
||||||
}
|
if($e[0] == 'gabc') $gabcs[] = $e[1];
|
||||||
if(count($gabcs) > 1) {
|
}
|
||||||
echo "<li>GABC<ul>";
|
if(count($gabcs) > 1) {
|
||||||
for($i = 0; $i < count($gabcs); $i++) {
|
echo "<li>GABC<ul>";
|
||||||
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc&elem='.($i+1).'">Element '.($i+1)."</a></li>\n";
|
for($i = 0; $i < count($gabcs); $i++) {
|
||||||
|
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc&elem='.($i+1).'">Element '.($i+1)."</a></li>\n";
|
||||||
|
}
|
||||||
|
echo "</ul></li>\n";
|
||||||
|
} else {
|
||||||
|
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc&elem=1">GABC</a></li>'."\n";
|
||||||
}
|
}
|
||||||
echo "</ul></li>\n";
|
|
||||||
} else {
|
|
||||||
echo '<li><a href="download.php?id='.$c['id'].'&format=gabc&elem=1">GABC</a></li>'."\n";
|
|
||||||
}
|
}
|
||||||
}
|
foreach(array('pdf','svg','eps','png') as $a) {
|
||||||
foreach(array('pdf','svg','eps','png') as $a) {
|
echo '<li><a href="download.php?id='.$c['id'].'&format='.$a.'">'.strtoupper($a).'</a></li>'."\n";
|
||||||
echo '<li><a href="download.php?id='.$c['id'].'&format='.$a.'">'.strtoupper($a).'</a></li>'."\n";
|
|
||||||
}
|
|
||||||
echo "</ul>\n";
|
|
||||||
if($c['gabc_verses'] || $c['tex_verses']){
|
|
||||||
echo "<ul>\n";
|
|
||||||
foreach(array('gabc','pdf','svg','eps','png') as $a) {
|
|
||||||
echo '<li><a href="download.php?id='.$c['id'].'&format='.$a.'&1verse=1">'.strtoupper($a).' (1st verse only)</a></li>'."\n";
|
|
||||||
}
|
}
|
||||||
echo "</ul>\n";
|
echo "</ul>\n";
|
||||||
}
|
if($c['gabc_verses'] || $c['tex_verses']){
|
||||||
|
echo "<ul>\n";
|
||||||
|
foreach(array('gabc','pdf','svg','eps','png') as $a) {
|
||||||
|
echo '<li><a href="download.php?id='.$c['id'].'&format='.$a.'&1verse=1">'.strtoupper($a).' (1st verse only)</a></li>'."\n";
|
||||||
|
}
|
||||||
|
echo "</ul>\n";
|
||||||
|
}
|
||||||
|
|
||||||
echo "<h4>Open with external tool</h4>\n<ul>\n";
|
echo "<h4>Open with external tool</h4>\n<ul>\n";
|
||||||
$gabc = (($c['office-part'] && $txt['usage_s'][$c['office-part']] > '')?'annotation: '.$txt['usage_s'][$c['office-part']]."\n":'');
|
$gabc = (($c['office-part'] && $txt['usage_s'][$c['office-part']] > '')?'annotation: '.$txt['usage_s'][$c['office-part']]."\n":'');
|
||||||
$mode_r = False;
|
$mode_r = False;
|
||||||
if($c['mode'] > '') {
|
if($c['mode'] > '') {
|
||||||
if($c['mode'] == 'p') {
|
if($c['mode'] == 'p') {
|
||||||
$mode = "T. pereg.";
|
$mode = "T. pereg.";
|
||||||
} elseif(in_array($c['mode'], array('c','d','e'))) {
|
} elseif(in_array($c['mode'], array('c','d','e'))) {
|
||||||
$mode = strtoupper($c['mode']).($c['mode_var']?' '.$c['mode_var']:'');
|
$mode = strtoupper($c['mode']).($c['mode_var']?' '.$c['mode_var']:'');
|
||||||
} else {
|
} else {
|
||||||
$mode = $c['mode'].($c['mode_var']?' '.$c['mode_var']:'');
|
$mode = $c['mode'].($c['mode_var']?' '.$c['mode_var']:'');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($mode) $gabc .= "annotation: $mode\n";
|
if($mode) $gabc .= "annotation: $mode\n";
|
||||||
$gabc .= "%%\n";
|
$gabc .= "%%\n";
|
||||||
if(is_string($content)) {
|
if(is_string($content)) {
|
||||||
$gabc .= $content."\n";
|
$gabc .= $content."\n";
|
||||||
} elseif(is_array($content)) {
|
} elseif(is_array($content)) {
|
||||||
foreach($content as $e) {
|
foreach($content as $e) {
|
||||||
if($e[0] == 'gabc') $gabc .= $e[1]."\n";
|
if($e[0] == 'gabc') $gabc .= $e[1]."\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo '<li><a href="https://editor.sourceandsummit.com/legacy/#'.rawurlencode(($c['commentary']?'commentary: '.$c['commentary']."\n":'').$gabc."\n".$c['gabc_verses']).'" target="_blank">Illuminare Score editor</a></li>
|
echo '<li><a href="https://editor.sourceandsummit.com/legacy/#'.rawurlencode(($c['commentary']?'commentary: '.$c['commentary']."\n":'').$gabc."\n".$c['gabc_verses']).'" target="_blank">Illuminare Score editor</a></li>
|
||||||
<li><a href="https://editor.sourceandsummit.com/alpha/#'.rawurlencode(($c['commentary']?'text-right: '.$c['commentary']."\n":'').$gabc."\n".$c['gabc_verses']).'" target="_blank">Source & Summit Editor</a></li>
|
<li><a href="https://editor.sourceandsummit.com/alpha/#'.rawurlencode(($c['commentary']?'text-right: '.$c['commentary']."\n":'').$gabc."\n".$c['gabc_verses']).'" target="_blank">Source & Summit Editor</a></li>
|
||||||
';
|
';
|
||||||
echo "</ul>\n";
|
echo "</ul>\n";
|
||||||
|
}
|
||||||
if($c['remarks'] > '') {
|
if($c['remarks'] > '') {
|
||||||
echo "<h4>Remarks</h4>\n<p class=\"remarks\">".nl2br($c['remarks'])."</p>\n";
|
echo "<h4>Remarks</h4>\n<p class=\"remarks\">".nl2br($c['remarks'])."</p>\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue