-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
63 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
DATALINK_ADAPTER = 'daiquiri.datalink.adapter.DefaultDatalinkAdapter' | ||
DATALINK_TABLES = [] | ||
|
||
DATALINK_CUSTOM_SEMANTICS = { | ||
"#doi": "The access_url points to the Digital Object Identifier (DOI) of the object.", | ||
} |
31 changes: 31 additions & 0 deletions
31
daiquiri/datalink/templates/datalink/datalink-semantics.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends 'core/wide.html' %} | ||
{% load i18n %} | ||
|
||
{% block wide %} | ||
|
||
<h1>The extension to the Datalink-core dictionary</h1> | ||
|
||
<table class="table table-condensed table-striped"> | ||
|
||
<thead> | ||
<tr> | ||
<td><b>Term</b></td> | ||
<td><b>Description</b></td> | ||
</tr> | ||
</thead> | ||
|
||
<tbody> | ||
|
||
{% for semantics, description in custom_semantics.items %} | ||
<tr> | ||
|
||
<td>{{ settings.SITE_URL }}{% url 'datalink:datalink-semantics' %}{{ semantics }}</td> | ||
<td>{{ description }}</td> | ||
</tr> | ||
|
||
{% endfor %} | ||
|
||
</tbody> | ||
|
||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters