From 8b73b93ee2d01a4818406e72adf285833e98f948 Mon Sep 17 00:00:00 2001 From: Tuan Nguyen Date: Thu, 7 Nov 2024 09:29:58 -0500 Subject: [PATCH] test --- lib/tasks/dspace_exporter.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/dspace_exporter.rake b/lib/tasks/dspace_exporter.rake index a9fd095..2fa7780 100644 --- a/lib/tasks/dspace_exporter.rake +++ b/lib/tasks/dspace_exporter.rake @@ -32,7 +32,7 @@ namespace :dspace do elsif ENV["THESIS_ANY"] != nil theses = Thesis.where(id: ENV["THESIS_ANY"]) else - theses = Thesis.accepted.without_embargo.where(published_date: publish_date) + theses = Thesis.accepted.without_embargo.where("published_date <= ?", publish_date) end log "FOUND: #{theses.size} theses" @@ -103,7 +103,7 @@ namespace :dspace do end end - entry.add_dublin_core_extension!("abstract", thesis.abstract) + entry.add_dublin_core_extension!("abstract", thesis.abstract.tr("\u0002\u000B\u000C\u000E\u000F",'')) entry.add_dublin_core_extension!("language", language_to_iso(thesis.language)) entry.add_dublin_core_extension!("name", Thesis::DEGREENAME_FULL[thesis.degree_name]) entry.add_dublin_core_extension!("level", thesis.degree_level)