Skip to content
Permalink
Browse files

Fix DoiMetadataOaiAdapterMixin

  • Loading branch information...
jochenklar committed Oct 1, 2019
1 parent 251517f commit 4955b6cb0960dfdfe49c9649561803ffd48170af
Showing with 5 additions and 3 deletions.
  1. +5 −3 daiquiri/metadata/adapter.py
@@ -64,17 +64,19 @@ def get_schema_record(self, schema):
identifier = self.get_identifier(schema.doi)
datestamp = schema.updated or schema.published
public = (schema.metadata_access_level == ACCESS_LEVEL_PUBLIC) \
and schema.published and schema.doi
and bool(schema.published) \
and bool(schema.doi)

return schema.pk, identifier, datestamp, public

def get_table_record(self, table):
identifier = self.get_identifier(table.doi)
datestamp = table.updated or table.published
public = (table.metadata_access_level == ACCESS_LEVEL_PUBLIC) \
and table.published and table.doi \
and bool(table.published) \
and bool(table.doi) \
and (table.schema.metadata_access_level == ACCESS_LEVEL_PUBLIC) \
and table.schema.published
and bool(table.schema.published)

return table.pk, identifier, datestamp, public

0 comments on commit 4955b6c

Please sign in to comment.
You can’t perform that action at this time.