diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 80042a937..fac859e7c 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -163,8 +163,8 @@ def index schema_versions = total.positive? ? facet_by_schema(response.aggregations.schema_versions.buckets) : nil affiliations = total.positive? ? facet_by_combined_key(response.aggregations.affiliations.buckets) : nil - sources = total.positive? ? facet_by_key(response.aggregations.sources.buckets) : nil - subjects = total.positive? ? facet_by_key(response.aggregations.subjects.buckets) : nil + # sources = total.positive? ? facet_by_key(response.aggregations.sources.buckets) : nil + # subjects = total.positive? ? facet_by_key(response.aggregations.subjects.buckets) : nil certificates = total.positive? ? facet_by_key(response.aggregations.certificates.buckets) : nil link_checks_status = total.positive? ? facet_by_cumulative_year(response.aggregations.link_checks_status.buckets) : nil @@ -196,14 +196,14 @@ def index prefixes: prefixes, certificates: certificates, "schemaVersions" => schema_versions, - sources: sources, + # sources: sources, "linkChecksStatus" => link_checks_status, # "linksChecked" => links_checked, # "linksWithSchemaOrg" => links_with_schema_org, # "linkChecksSchemaOrgId" => link_checks_schema_org_id, # "linkChecksDcIdentifier" => link_checks_dc_identifier, # "linkChecksCitationDoi" => link_checks_citation_doi, - subjects: subjects, + # subjects: subjects, citations: citations, views: views, downloads: downloads, diff --git a/app/models/doi.rb b/app/models/doi.rb index e35175035..fc0a744d8 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -572,8 +572,8 @@ def self.query_aggregations # link_checks_dc_identifier: { value_count: { field: "landing_page.dcIdentifier" } }, # link_checks_citation_doi: { value_count: { field: "landing_page.citationDoi" } }, # links_checked: { value_count: { field: "landing_page.checked" } }, - sources: { terms: { field: 'source', size: 15, min_doc_count: 1 } }, - subjects: { terms: { field: 'subjects.subject', size: 15, min_doc_count: 1 } }, + # sources: { terms: { field: 'source', size: 15, min_doc_count: 1 } }, + # subjects: { terms: { field: 'subjects.subject', size: 15, min_doc_count: 1 } }, certificates: { terms: { field: 'client.certificate', size: 15, min_doc_count: 1 } }, views: { date_histogram: { field: 'publication_year', interval: 'year', format: 'year', order: { _key: "desc" }, min_doc_count: 1 },