Skip to content

Commit

Permalink
Merge pull request #2 from f-osorio/doi_error
Browse files Browse the repository at this point in the history
Fix XML not properly handling URI's for RePEc, WoS, and Scopus
  • Loading branch information
Franz Osorio authored Oct 25, 2018
2 parents 6447134 + 23db651 commit 594291a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/dara/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def before_map(self, map):
action="doi",
template="package/doi.html",
ckan_icon="exchange")

map.connect('/dataset/{id}/resource/{resource_id}/download/{filename}',
controller="ckanext.dara.controller:DaraController",
action="resource_download")
Expand Down
6 changes: 6 additions & 0 deletions ckanext/dara/templates/macros/dara_metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ TODO
{% set uri = "http://d-nb.info/gnd/" ~ author['authorID'] %}
{% elif author['authorID_Type'] == 'ORCID' %}
{% set uri = "http://orcid.org/" ~ author['authorID'] %}
{% elif author['authorID_Type'] == 'Scopus' %}
{% set uri = "https://www.scopus.com/authid/detail.uri?authorId=" ~ author['authorID'] %}
{% elif author['authorID_Type'] == 'Repec' %}
{% set uri = "https://ideas.repec.org/e/" ~ author['authorID'] ~ ".html" %}
{% elif author['authorID_Type'] == 'WoS' %}
{% set uri = "http://researcherid.com/rid/" ~ author['authorID'] %}
{% endif %}
<personIDs>
<personID>
Expand Down

0 comments on commit 594291a

Please sign in to comment.