diff --git a/journals/views.py b/journals/views.py index ab59c37ec41ebfb71989cf0d291723df041a45e3..faca8ee8ef70bb3526bbbb898a6cf1570537fb10 100644 --- a/journals/views.py +++ b/journals/views.py @@ -505,7 +505,8 @@ def create_metadata_xml(request, doi_label): 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ' 'xmlns:fr="http://www.crossref.org/fundref.xsd" ' 'xsi:schemaLocation="http://www.crossref.org/schema/4.4.0 ' - 'http://www.crossref.org/shema/deposit/crossref4.4.0.xsd">\n' + 'http://www.crossref.org/shema/deposit/crossref4.4.0.xsd" ' + 'xmlns:ai="http://www.crossref.org/AccessIndicators.xsd">\n' '<head>\n' '<doi_batch_id>' + str(doi_batch_id) + '</doi_batch_id>\n' '<timestamp>' + timezone.now().strftime('%Y%m%d%H%M%S') + '</timestamp>\n' @@ -633,6 +634,10 @@ def create_metadata_xml(request, doi_label): '<resource>https://scipost.org/' + publication.doi_string + '/pdf</resource>\n' '</item></collection>\n' + '<collection property="text-mining">\n' + '<item><resource mime_type="application/pdf">' + 'https://scipost.org/' + publication.doi_string + '/pdf</resource></item>\n' + '</collection>' '</doi_data>\n' ) try: