From 3c99b59b429843b78f635f93654efb5361d8445b Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Fri, 28 Jul 2017 09:32:09 +0200 Subject: [PATCH] Add text-mining metadata --- journals/views.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/journals/views.py b/journals/views.py index ab59c37ec..faca8ee8e 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: -- GitLab