diff --git a/daiquiri/datalink/adapter.py b/daiquiri/datalink/adapter.py index 4b5b64023..e4a5d841e 100644 --- a/daiquiri/datalink/adapter.py +++ b/daiquiri/datalink/adapter.py @@ -81,8 +81,6 @@ def get_context_data(self, request, **kwargs): def get_datalink_rows(self, identifiers, **kwargs): '''Get the list of datalink entries for the provided identifiers (incl. table- and dynamic- datalink) ''' - - # get the datalink entries from Datalink Table and metadata (Table and Schema) static_datalink_rows = list(Datalink.objects.filter(ID__in=identifiers).values()) @@ -90,7 +88,6 @@ def get_datalink_rows(self, identifiers, **kwargs): dyn_datalink_rows = self.get_dyn_datalink_links(identifiers) datalink_rows = static_datalink_rows + dyn_datalink_rows - # create a full URI for the custom semantics for row in datalink_rows: if row['semantics'] in settings.DATALINK_CUSTOM_SEMANTICS: diff --git a/daiquiri/datalink/settings.py b/daiquiri/datalink/settings.py index a787b7fc2..e0069c798 100644 --- a/daiquiri/datalink/settings.py +++ b/daiquiri/datalink/settings.py @@ -1,6 +1,5 @@ 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.", } diff --git a/daiquiri/datalink/templates/datalink/datalink-semantics.html b/daiquiri/datalink/templates/datalink/datalink-semantics.html index 631dcd5b5..3c66c4239 100644 --- a/daiquiri/datalink/templates/datalink/datalink-semantics.html +++ b/daiquiri/datalink/templates/datalink/datalink-semantics.html @@ -18,11 +18,9 @@