SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
118
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
ac3ee61c
"scipost_django/forums/models.py" did not exist on "ea6746dda5c31cf64724ed1a59cc1b3c2436eaed"
Commit
ac3ee61c
authored
8 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Debug metadata_xml
parent
51e1aaac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
journals/views.py
+18
-16
18 additions, 16 deletions
journals/views.py
with
18 additions
and
16 deletions
journals/views.py
+
18
−
16
View file @
ac3ee61c
...
...
@@ -421,11 +421,6 @@ def create_metadata_xml(request, doi_string):
'
<doi>
'
+
publication
.
in_issue
.
in_volume
.
in_journal
.
doi_string
+
'
</doi>
\n
'
'
<resource>https://scipost.org/
'
+
publication
.
in_issue
.
in_volume
.
in_journal
.
doi_string
+
'
</resource>
\n
'
'
<collection property=
"
crawler-based
"
>
\n
'
'
<item crawler=
"
iParadigms
"
>
\n
'
'
<resource>https://scipost.org/
'
+
publication
.
in_issue
.
in_volume
.
in_journal
.
doi_string
+
'
/pdf</resource>
\n
'
'
</item></collection>
\n
'
'
</doi_data>
\n
'
'
</journal_metadata>
\n
'
'
<journal_issue>
\n
'
...
...
@@ -480,21 +475,28 @@ def create_metadata_xml(request, doi_string):
'
<doi_data>
\n
'
'
<doi>
'
+
publication
.
doi_string
+
'
</doi>
'
'
<resource>https://scipost.org/
'
+
publication
.
doi_string
+
'
</resource>
'
'
<collection property=
"
crawler-based
"
>
\n
'
'
<item crawler=
"
iParadigms
"
>
\n
'
'
<resource>https://scipost.org/
'
+
publication
.
doi_string
+
'
/pdf</resource>
\n
'
'
</item></collection>
\n
'
'
</doi_data>
\n
'
)
if
publication
.
metadata
[
'
citation_list
'
]:
#publication.metadata_xml += '<citation_list>\n'
initial
[
'
metadata_xml
'
]
+=
'
<citation_list>
\n
'
for
ref
in
publication
.
metadata
[
'
citation_list
'
]:
#publication.metadata_xml += (
initial
[
'
metadata_xml
'
]
+=
(
'
<citation key=
"'
+
ref
[
'
key
'
]
+
'"
>
'
'
<doi>
'
+
ref
[
'
doi
'
]
+
'
</doi>
'
'
</citation>
\n
'
)
try
:
if
publication
.
metadata
[
'
citation_list
'
]:
#publication.metadata_xml += '<citation_list>\n'
initial
[
'
metadata_xml
'
]
+=
'
<citation_list>
\n
'
for
ref
in
publication
.
metadata
[
'
citation_list
'
]:
#publication.metadata_xml += (
initial
[
'
metadata_xml
'
]
+=
(
'
<citation key=
"'
+
ref
[
'
key
'
]
+
'"
>
'
'
<doi>
'
+
ref
[
'
doi
'
]
+
'
</doi>
'
'
</citation>
\n
'
)
#publication.metadata_xml += '</citation_list>\n'
initial
[
'
metadata_xml
'
]
+=
'
</citation_list>
\n
'
except
KeyError
:
pass
#publication.metadata_xml += (
initial
[
'
metadata_xml
'
]
+=
(
'
</journal_article>
\n
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment