Added functionality for item types.

This commit is contained in:
2022-10-15 11:32:30 -05:00
parent 679e282b42
commit f357b8bf3e
7 changed files with 10 additions and 1 deletions

BIN
images/121.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

BIN
images/3.jpg Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
images/7.jpg Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 KiB

After

Width:  |  Height:  |  Size: 1024 KiB

BIN
images/8.jpg Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 KiB

After

Width:  |  Height:  |  Size: 923 KiB

View File

@ -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'];

BIN
metadata.sqlite Executable file → Normal file

Binary file not shown.

BIN
metadata.sqlite.old Executable file

Binary file not shown.