Music and Feature Film citations.
This commit is contained in:
@ -60,12 +60,6 @@ AND books_tags_link.book = '$ItemID'");
|
|||||||
|
|
||||||
// ---------- Pull data from tags table for Similar items ----------
|
// ---------- Pull data from tags table for Similar items ----------
|
||||||
|
|
||||||
/*$similartags = $db->query("SELECT name FROM tags
|
|
||||||
INNER JOIN books_tags_link
|
|
||||||
ON books_tags_link.tag = tags.id
|
|
||||||
WHERE tags.name NOT LIKE 'infopump%'
|
|
||||||
AND books_tags_link.book = '$ItemID' LIMIT 2");*/
|
|
||||||
|
|
||||||
// New similar tags query
|
// New similar tags query
|
||||||
$similartags = $db->query("SELECT name FROM tags
|
$similartags = $db->query("SELECT name FROM tags
|
||||||
WHERE name IN (SELECT name FROM tags
|
WHERE name IN (SELECT name FROM tags
|
||||||
@ -112,7 +106,7 @@ ON custom_column_1.id = books_custom_column_1_link.value
|
|||||||
WHERE books_custom_column_1_link.book = '$ItemID'");
|
WHERE books_custom_column_1_link.book = '$ItemID'");
|
||||||
|
|
||||||
while ($row = $type->fetchArray()) {
|
while ($row = $type->fetchArray()) {
|
||||||
$row_type = $row['itemtype'];
|
$row_type = mb_convert_case($row['itemtype'], MB_CASE_TITLE, "UTF-8");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ---------- Pull series information ----------
|
// ---------- Pull series information ----------
|
||||||
@ -269,21 +263,27 @@ while ($row = $subtype->fetchArray()) {
|
|||||||
<div class="row gx-4 gx-lg-5 align-items-top">
|
<div class="row gx-4 gx-lg-5 align-items-top">
|
||||||
<div class="col-md-6"> <!-- BEGIN CITATIONS -->
|
<div class="col-md-6"> <!-- BEGIN CITATIONS -->
|
||||||
<a name="citations"></a>
|
<a name="citations"></a>
|
||||||
<h3 class="fw-bolder"><u>Citations</u></h3><br />
|
<h3 class="fw-bolder"><u>Bibliographic Citations</u></h3><br />
|
||||||
|
<p><em>Note: You may need to slightly edit citations for final use. Citations are based upon available data. Refer to your format guides for proper bibliographic citations.</p>
|
||||||
|
|
||||||
<!-- BEGIN CHICAGO CITATION -->
|
<!-- BEGIN CHICAGO CITATION -->
|
||||||
<p class="metadata"><strong>Chicago</strong></p>
|
<p class="metadata"><strong>Chicago</strong></p>
|
||||||
<?php
|
<?php
|
||||||
if ($row_type == 'text') {
|
if ($row_type == 'Text') {
|
||||||
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.<br />';
|
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
echo '<div id=chicago style="display: none;">';
|
echo '<div id=chicago style="display: none;">';
|
||||||
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'</p>';
|
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
} else {
|
} elseif ($row_subtype == 'Music') {
|
||||||
echo '<p class="metadata">'.$row_author_sort.', "'.$row_title.'." '.$row_publisher.', '.$row_pubdate.'.<br />';
|
echo '<p class="metadata">'.$row_author_sort.', <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
echo '<div id=chicago style="display: none;">';
|
echo '<div id=chicago style="display: none;">';
|
||||||
echo '<p>'.$row_author_sort.', "'.$row_title.'." '.$row_publisher.', '.$row_pubdate.'</p>';
|
echo '<p>'.$row_author_sort.', "'.$row_title.'." '.$row_publisher.', '.$row_pubdate.'</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
} else {
|
||||||
|
echo '<p class="metadata">'.$row_author_sort.', director. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
|
echo '<div id=chicago style="display: none;">';
|
||||||
|
echo '<p><p class="metadata">'.$row_author_sort.', director. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'</p>';
|
||||||
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="#citations" onclick="copyToClip(document.getElementById('chicago').innerHTML)">Copy Chicago citation</a></p>
|
<a href="#citations" onclick="copyToClip(document.getElementById('chicago').innerHTML)">Copy Chicago citation</a></p>
|
||||||
@ -309,16 +309,21 @@ while ($row = $subtype->fetchArray()) {
|
|||||||
$APA_author = explode(', ' ,$row_author_sort);
|
$APA_author = explode(', ' ,$row_author_sort);
|
||||||
$APA_first = mb_strimwidth($APA_author[1], 0, 1);
|
$APA_first = mb_strimwidth($APA_author[1], 0, 1);
|
||||||
|
|
||||||
if ($row_type == 'text') {
|
if ($row_type == 'Text') {
|
||||||
echo '<p class="metadata">'.$APA_author[0].', '.$APA_first.'. ('.$row_pubdate.'). '.$row_title.'. '.$row_publisher.'.</p>';
|
echo '<p class="metadata">'.$APA_author[0].', '.$APA_first.'. ('.$row_pubdate.'). '.$row_title.'. '.$row_publisher.'.</p>';
|
||||||
echo '<div id=apa style="display: none;">';
|
echo '<div id=apa style="display: none;">';
|
||||||
echo '<p>'.$APA_author[0].', '.$APA_first.'. ('.$row_pubdate.'). '.$row_title.'. '.$row_publisher.'.</p>';
|
echo '<p>'.$APA_author[0].', '.$APA_first.'. ('.$row_pubdate.'). '.$row_title.'. '.$row_publisher.'.</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
} else {
|
} elseif ($row_subtype == 'Music') {
|
||||||
echo '<p class="metadata">'.$row_creator.'. ('.$row_pubdate.'). <em>'.$row_title.'</em>. '.$row_publisher.'.</p>';
|
echo '<p class="metadata">'.$row_creator.'. ('.$row_pubdate.'). <em>'.$row_title.'</em> [Album]. '.$row_publisher.'.</p>';
|
||||||
echo '<div id=apa style="display: none;">';
|
echo '<div id=apa style="display: none;">';
|
||||||
echo '<p>'.$row_creator.'. ('.$row_pubdate.'). <em>'.$row_title.'</em>. '.$row_publisher.'.</p>';
|
echo '<p>'.$row_creator.'. ('.$row_pubdate.'). <em>'.$row_title.'</em>. '.$row_publisher.'.</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
} else {
|
||||||
|
echo '<p class="metadata">'.$APA_author[0].', '.$APA_first.'. (Director). ('.$row_pubdate.'). <em>'.$row_title.'</em> [Film]. '.$row_publisher.'.</p>';
|
||||||
|
echo '<div id=apa style="display: none;">';
|
||||||
|
echo '<p>'.$APA_author[0].', '.$APA_first.'. (Director). ('.$row_pubdate.'). <em>'.$row_title.'</em> [Film]. '.$row_publisher.'.</p>';
|
||||||
|
echo '</div>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="#citations" onclick="copyToClip(document.getElementById('apa').innerHTML)">Copy APA citation</a></p>
|
<a href="#citations" onclick="copyToClip(document.getElementById('apa').innerHTML)">Copy APA citation</a></p>
|
||||||
@ -341,15 +346,20 @@ while ($row = $subtype->fetchArray()) {
|
|||||||
<!-- MLA CITATION -->
|
<!-- MLA CITATION -->
|
||||||
<p class="metadata"><strong>MLA</strong></p>
|
<p class="metadata"><strong>MLA</strong></p>
|
||||||
<?php
|
<?php
|
||||||
if ($row_type== 'text') {
|
if ($row_type== 'Text') {
|
||||||
|
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
|
echo '<div id=mla style="display: none;">';
|
||||||
|
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.</p>';
|
||||||
|
echo '</div>';
|
||||||
|
} elseif ($row_subtype == 'Music') {
|
||||||
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
echo '<div id=mla style="display: none;">';
|
echo '<div id=mla style="display: none;">';
|
||||||
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.</p>';
|
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
} else {
|
} else {
|
||||||
echo '<p class="metadata">'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
echo '<p class="metadata">'.$row_author_sort.', director. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.<br />';
|
||||||
echo '<div id=mla style="display: none;">';
|
echo '<div id=mla style="display: none;">';
|
||||||
echo '<p>'.$row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.</p>';
|
echo '<p>'.$row_author_sort.', director. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.</p>';
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user