Added functionality for item types.
This commit is contained in:
@ -53,7 +53,8 @@ while ($row = $publisher->fetchArray()) {
|
||||
$tags = $db->query("SELECT name FROM tags
|
||||
INNER JOIN books_tags_link
|
||||
ON books_tags_link.tag = tags.id
|
||||
WHERE books_tags_link.book = '$ItemID'");
|
||||
WHERE tags.name NOT LIKE 'infopump%'
|
||||
AND books_tags_link.book = '$ItemID'");
|
||||
|
||||
// ---------- Pull data from identifiers table ----------
|
||||
|
||||
@ -67,6 +68,13 @@ ON books_languages_link.lang_code = languages.id
|
||||
WHERE book = '$ItemID'
|
||||
ORDER BY books_languages_link.item_order");
|
||||
|
||||
// ---------- Pull data from tags table to dertermine type ----------
|
||||
|
||||
$type = $db->query("SELECT SUBSTR(name, 15) as itemtype from tags where name like 'infopump%';");
|
||||
|
||||
while ($row = $type->fetchArray()) {
|
||||
$row_type = $row['itemtype'];
|
||||
}
|
||||
|
||||
// -------------------- END DATABASE QUERIES --------------------
|
||||
|
||||
@ -221,6 +229,7 @@ ORDER BY books_languages_link.item_order");
|
||||
echo '<strong>Creator:</strong> '.$row_author_sort.'<br />';
|
||||
echo '<strong>Publisher:</strong> '.$row_publisher.'<br />';
|
||||
echo '<strong>Date: </strong>'.$row_pubdate.'<br />';
|
||||
echo '<strong>Type: </strong>'.$row_type.'<br />';
|
||||
echo '<strong>Subjects: </strong>';
|
||||
while ($row = $tags->fetchArray()) {
|
||||
$row_tags = $row['name'];
|
||||
|
Reference in New Issue
Block a user