Added functionality for item types.
BIN
images/121.jpg
Normal file
After Width: | Height: | Size: 348 KiB |
BIN
images/3.jpg
Executable file → Normal file
Before Width: | Height: | Size: 244 KiB After Width: | Height: | Size: 1.1 MiB |
BIN
images/7.jpg
Executable file → Normal file
Before Width: | Height: | Size: 313 KiB After Width: | Height: | Size: 1024 KiB |
BIN
images/8.jpg
Executable file → Normal file
Before Width: | Height: | Size: 219 KiB After Width: | Height: | Size: 923 KiB |
@ -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'];
|
||||
|