From aeed92bc96e2f03e3e7f1351599e614c0e4585e6 Mon Sep 17 00:00:00 2001
From: Leo Stoyanov <leo.stoyanov@bywatersolutions.com>
Date: Fri, 10 Jan 2025 11:54:02 -0600
Subject: [PATCH] DIS-123: Ignore 'number one bestseller' subtitle in OverDrive

---
 .../org/aspen_discovery/grouping/OverDriveRecordGrouper.java  | 3 ++-
 code/web/release_notes/25.01.00.MD                            | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/code/reindexer/src/org/aspen_discovery/grouping/OverDriveRecordGrouper.java b/code/reindexer/src/org/aspen_discovery/grouping/OverDriveRecordGrouper.java
index 164a72e702..d22c1e6592 100644
--- a/code/reindexer/src/org/aspen_discovery/grouping/OverDriveRecordGrouper.java
+++ b/code/reindexer/src/org/aspen_discovery/grouping/OverDriveRecordGrouper.java
@@ -103,7 +103,8 @@ private String processOverDriveRecord(String overdriveId, String title, String s
 			if (series != null && !series.isEmpty() && subtitleLower.contains(series.toLowerCase())){
 				subtitle = "";
 			//Remove book club notices and award winners
-			}else if (subtitleLower.contains("book club") || subtitleLower.contains("award winner") || subtitleLower.contains("read with jenna")) {
+			}else if (subtitleLower.contains("book club") || subtitleLower.contains("award winner") || subtitleLower.contains("read with jenna")
+					|| subtitleLower.contains("number one bestseller")) {
 				subtitle = "";
 			}
 		}
diff --git a/code/web/release_notes/25.01.00.MD b/code/web/release_notes/25.01.00.MD
index f825364c77..49a4e4d912 100644
--- a/code/web/release_notes/25.01.00.MD
+++ b/code/web/release_notes/25.01.00.MD
@@ -139,6 +139,9 @@
 ### Web Builder Updates
 - When adding a form to a custom page, limit the forms displayed in the dropdown to those from the user's own library if their permissions are Administer Library Custom Forms. (*AB*)
 
+### Indexing Updates
+- Enhanced subtitle filtering for OverDrive records by ignoring the subtitle "number one bestseller". (DIS-211) (*LS*)
+
 ### Other Updates
 - Fix linking to library websites for consortia within Web Builder and the Hours and Location dialog. (*MDN*)
 - Add an editorconfig file for template files to standardize using tabs across all files. (*MDN*)
@@ -150,6 +153,7 @@
   - Lucas Gass (LG)
   - Nick Clemens (WNC)
   - Yanjun Li (YL)
+  - Leo Stoyanov (LS)
 
 ### Grove For Libraries
   - Mark Noble (MDN)