Commit 979cc16a authored by Joerg-Holger Panzer's avatar Joerg-Holger Panzer
Browse files

Add ID to PDF disclaimer, if PURL is missing

parent 7339c595
Pipeline #301300 passed with stages
in 9 minutes and 39 seconds
......@@ -957,10 +957,10 @@ class ImgToPdfConverter
end
# TODO: Avoid hard coded URLs
if disclaimer_info.purl != ''
if check_nil_or_empty_string disclaimer_info.purl
add_label_and_value('PURL', disclaimer_info.purl, pdf)
else
add_label_and_value('PURL', "http://resolver.sub.uni-goettingen.de/purl?PID=#{id}|#{log}", pdf)
add_label_and_value('ID', "#{id}|#{log}", pdf)
end
# end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment