From 96d3d3892b8b6c6c1ba6ed3204c7349caf75f549 Mon Sep 17 00:00:00 2001 From: Art Rhyno Date: Mon, 14 Apr 2014 20:23:53 -0400 Subject: [PATCH] Fix up Headings Headings are part of the item object and need some special handling with the recent changes for multipart. This puts them back in sync. Signed-off-by: Art Rhyno --- conifer/syrup/models.py | 2 ++ conifer/templates/components/site.xhtml | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conifer/syrup/models.py b/conifer/syrup/models.py index db818b2..0138c07 100644 --- a/conifer/syrup/models.py +++ b/conifer/syrup/models.py @@ -417,6 +417,8 @@ class Site(BaseModel): dup_ids = [] push_thru = True + if item.item_type == 'HEADING': + return push_thru, dup_barcodes, dup_ids if not BIB_PART_MERGE or edit_status: return push_thru, dup_barcodes, dup_ids if not is_dup_candidate(item): diff --git a/conifer/templates/components/site.xhtml b/conifer/templates/components/site.xhtml index 14ca98e..75f72ac 100644 --- a/conifer/templates/components/site.xhtml +++ b/conifer/templates/components/site.xhtml @@ -103,6 +103,9 @@ searchtext = _('search this site...')
+
[${vt}] ${item.author}. @@ -147,7 +155,7 @@ searchtext = _('search this site...') ${item.volume}(${item.issue}), ${item.pages}.
-
+
Revert Parms: -- 2.11.0