Added publisher location.
This commit is contained in:
@ -130,6 +130,24 @@ while ($row = $series->fetchArray()) {
|
||||
$row_seriesindex = $row['seriesindex'];
|
||||
}
|
||||
|
||||
// ---------- Pull publisher location information ----------
|
||||
|
||||
$publisher_location = $db->query("SELECT custom_column_2.value AS publoc
|
||||
FROM books
|
||||
INNER JOIN
|
||||
books_custom_column_2_link
|
||||
ON books_custom_column_2_link.book = books.id
|
||||
INNER JOIN
|
||||
custom_column_2 ON
|
||||
custom_column_2.id = books_custom_column_2_link.value
|
||||
WHERE
|
||||
books.id = '$ItemID'");
|
||||
|
||||
while ($row = $publisher_location->fetchArray()) {
|
||||
$row_publocation = $row['publoc'];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -238,9 +256,9 @@ while ($row = $series->fetchArray()) {
|
||||
<a name="citations"></a>
|
||||
<h3 class="fw-bolder"><u>Citations</u></h3><br />
|
||||
<p class="metadata"><strong>Chicago</strong></p>
|
||||
<p class="metadata"><?php echo $row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.' ?><br />
|
||||
<p class="metadata"><?php echo $row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.' ?><br />
|
||||
<div id=chicago style="display: none;">
|
||||
<p><?php echo $row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publisher.', '.$row_pubdate.'.' ?></p>
|
||||
<p><?php echo $row_author_sort.'. <em>'.$row_title.'.</em> '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.' ?></p>
|
||||
</div>
|
||||
<a href="#citations" onclick="copyToClip(document.getElementById('chicago').innerHTML)">Copy Chicago citation</a></p>
|
||||
<script>
|
||||
@ -311,6 +329,7 @@ while ($row = $series->fetchArray()) {
|
||||
echo '<strong>Series Index:</strong> '.$row_seriesindex.'<br />';
|
||||
}
|
||||
echo '<strong>Publisher:</strong> '.$row_publisher.'<br />';
|
||||
echo '<strong>Location:</strong> '.$row_publocation.'<br />';
|
||||
echo '<strong>Date: </strong>'.$row_pubdate.'<br />';
|
||||
echo '<strong>Type: </strong> <a href="results.php?ty='.$row_type.'">'.$row_type.'</a><br />';
|
||||
echo '<strong>Subjects: </strong>';
|
||||
|
BIN
metadata.sqlite
BIN
metadata.sqlite
Binary file not shown.
Reference in New Issue
Block a user