Added series functionality and info.
This commit is contained in:
@@ -115,6 +115,23 @@ while ($row = $type->fetchArray()) {
|
|||||||
$row_type = $row['itemtype'];
|
$row_type = $row['itemtype'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ---------- Pull series information ----------
|
||||||
|
|
||||||
|
$series = $db->query("SELECT series.name AS series, books.series_index AS seriesindex
|
||||||
|
FROM series
|
||||||
|
INNER JOIN books_series_link
|
||||||
|
ON books_series_link.series = series.id
|
||||||
|
INNER JOIN books
|
||||||
|
ON books.id = books_series_link.book
|
||||||
|
WHERE books_series_link.book = '$ItemID'");
|
||||||
|
|
||||||
|
while ($row = $series->fetchArray()) {
|
||||||
|
$row_series = $row['series'];
|
||||||
|
$row_seriesindex = $row['seriesindex'];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -------------------- END DATABASE QUERIES --------------------
|
// -------------------- END DATABASE QUERIES --------------------
|
||||||
|
|
||||||
@@ -194,8 +211,16 @@ while ($row = $type->fetchArray()) {
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="small mb-1"><?php echo 'Item Record '.$ItemID; ?></div>
|
<div class="small mb-1"><?php echo 'Item Record '.$ItemID; ?></div>
|
||||||
<h1 class="display-5 fw-bolder"><?php echo $row_title; ?></h1>
|
<h1 class="display-5 fw-bolder"><?php echo $row_title; ?></h1>
|
||||||
<div class="fs-5 mb-5">
|
<div class="medium">
|
||||||
<span><?php echo $row_creator; ?></span>
|
<?php
|
||||||
|
if ($row_series) {
|
||||||
|
echo '<hr />';
|
||||||
|
echo '<strong>Number '.$row_seriesindex.' in the '.$row_series.' series</strong><br />';
|
||||||
|
echo '<hr />';
|
||||||
|
} else {
|
||||||
|
echo '<hr>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
<p class="lead"><?php echo $row_summary; ?></p>
|
<p class="lead"><?php echo $row_summary; ?></p>
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
@@ -216,6 +241,10 @@ while ($row = $type->fetchArray()) {
|
|||||||
echo '<strong>Item Control Number: </strong>'.$ItemID.'<br />';
|
echo '<strong>Item Control Number: </strong>'.$ItemID.'<br />';
|
||||||
echo '<strong>Title:</strong> '.$row_title.'<br />';
|
echo '<strong>Title:</strong> '.$row_title.'<br />';
|
||||||
echo '<strong>Creator:</strong> '.$row_author_sort.'<br />';
|
echo '<strong>Creator:</strong> '.$row_author_sort.'<br />';
|
||||||
|
if ($row_series) {
|
||||||
|
echo '<strong>Series:</strong> '.$row_series.'<br />';
|
||||||
|
echo '<strong>Series Index:</strong> '.$row_seriesindex.'<br />';
|
||||||
|
}
|
||||||
echo '<strong>Publisher:</strong> '.$row_publisher.'<br />';
|
echo '<strong>Publisher:</strong> '.$row_publisher.'<br />';
|
||||||
echo '<strong>Date: </strong>'.$row_pubdate.'<br />';
|
echo '<strong>Date: </strong>'.$row_pubdate.'<br />';
|
||||||
echo '<strong>Type: </strong>'.$row_type.'<br />';
|
echo '<strong>Type: </strong>'.$row_type.'<br />';
|
||||||
|
|||||||
Reference in New Issue
Block a user