From 3e7f3f6d64c1c09b02b8dbf96a68f8506b6841d5 Mon Sep 17 00:00:00 2001
From: Daniel Messer
Date: Mon, 14 Aug 2023 20:43:57 -0500
Subject: [PATCH] Added publisher location.
---
itemrecord.php | 23 +++++++++++++++++++++--
metadata.sqlite | Bin 540672 -> 585728 bytes
2 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/itemrecord.php b/itemrecord.php
index 6d55958..7b542ba 100644
--- a/itemrecord.php
+++ b/itemrecord.php
@@ -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()) {
Citations
Chicago
- '.$row_title.'. '.$row_publisher.', '.$row_pubdate.'.' ?>
+
'.$row_title.'. '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.' ?>
-
'.$row_title.'. '.$row_publisher.', '.$row_pubdate.'.' ?>
+
'.$row_title.'. '.$row_publocation.': '.$row_publisher.', '.$row_pubdate.'.' ?>
Copy Chicago citation