Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Nov 7, 2024
1 parent 867a124 commit 8b73b93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tasks/dspace_exporter.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8b73b93

Please sign in to comment.