Skip to content

Commit

Permalink
Add DOI to the DetailViewer listed attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Nov 7, 2024
1 parent 9e46426 commit a55fbca
Show file tree
Hide file tree
Showing 15 changed files with 81 additions and 13 deletions.
1 change: 1 addition & 0 deletions geonode_mapstore_client/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ def run_setup_hooks(*args, **kwargs):
"date",
"date_type",
"detail_url",
"doi",
"download_urls",
"embed_url",
"executions",
Expand Down
54 changes: 54 additions & 0 deletions geonode_mapstore_client/static/mapstore/configs/localConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -957,6 +963,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -1310,6 +1322,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -2214,6 +2232,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -2910,6 +2934,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -3245,6 +3275,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -3509,6 +3545,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -4036,6 +4078,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down Expand Up @@ -4809,6 +4857,12 @@
"value": "{context.get(state('gnResourceData'), 'sourcetype', '').toLowerCase()}",
"href": "{context.get(state('gnResourceData'), 'href')}"
},
{
"type": "link",
"labelId": "gnviewer.doi",
"href": "{'https://doi.org/' + context.get(state('gnResourceData'), 'doi')}",
"value": "{context.get(state('gnResourceData'), 'doi')}"
},
{
"type": "query",
"labelId": "gnviewer.category",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,8 @@
}
}
},
"allResources": "All resources"
"allResources": "All resources",
"doi": "DOI"
}
}
}

0 comments on commit a55fbca

Please sign in to comment.