diff --git a/app/controllers/dois_controller.rb b/app/controllers/dois_controller.rb index 0387c189a..fac859e7c 100644 --- a/app/controllers/dois_controller.rb +++ b/app/controllers/dois_controller.rb @@ -163,16 +163,16 @@ 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 - links_with_schema_org = total.positive? ? facet_by_cumulative_year(response.aggregations.link_checks_has_schema_org.buckets) : nil - link_checks_schema_org_id = total.positive? ? response.aggregations.link_checks_schema_org_id.value : nil - link_checks_dc_identifier = total.positive? ? response.aggregations.link_checks_dc_identifier.value : nil - link_checks_citation_doi = total.positive? ? response.aggregations.link_checks_citation_doi.value : nil - links_checked = total.positive? ? response.aggregations.links_checked.value : nil + # links_with_schema_org = total.positive? ? facet_by_cumulative_year(response.aggregations.link_checks_has_schema_org.buckets) : nil + # link_checks_schema_org_id = total.positive? ? response.aggregations.link_checks_schema_org_id.value : nil + # link_checks_dc_identifier = total.positive? ? response.aggregations.link_checks_dc_identifier.value : nil + # link_checks_citation_doi = total.positive? ? response.aggregations.link_checks_citation_doi.value : nil + # links_checked = total.positive? ? response.aggregations.links_checked.value : nil citations = total.positive? ? metric_facet_by_year(response.aggregations.citations.buckets) : nil views = total.positive? ? metric_facet_by_year(response.aggregations.views.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, + # "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, citations: citations, views: views, downloads: downloads, diff --git a/app/models/doi.rb b/app/models/doi.rb index a3226a8dc..fc0a744d8 100644 --- a/app/models/doi.rb +++ b/app/models/doi.rb @@ -567,13 +567,13 @@ def self.query_aggregations prefixes: { terms: { field: 'prefix', size: 15, min_doc_count: 1 } }, schema_versions: { terms: { field: 'schema_version', size: 15, min_doc_count: 1 } }, link_checks_status: { terms: { field: 'landing_page.status', size: 15, min_doc_count: 1 } }, - link_checks_has_schema_org: { terms: { field: 'landing_page.hasSchemaOrg', size: 2, min_doc_count: 1 } }, - link_checks_schema_org_id: { value_count: { field: "landing_page.schemaOrgId" } }, - 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 } }, + # link_checks_has_schema_org: { terms: { field: 'landing_page.hasSchemaOrg', size: 2, min_doc_count: 1 } }, + # link_checks_schema_org_id: { value_count: { field: "landing_page.schemaOrgId" } }, + # 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 } }, 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 },