From 56aadbee84ce7434639ef34985092dbc55c0f943 Mon Sep 17 00:00:00 2001 From: addelany Date: Tue, 9 Apr 2024 17:05:45 -0500 Subject: [PATCH] updates for publishing method --- R/build_forecast_scores.R | 4 ++-- R/build_publication_items.R | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/R/build_forecast_scores.R b/R/build_forecast_scores.R index e6b6670..b24a6e8 100644 --- a/R/build_forecast_scores.R +++ b/R/build_forecast_scores.R @@ -72,7 +72,7 @@ build_forecast_scores <- function(table_schema, ), list( "rel" = "cite-as", - "href" = catalog_config$citation_doi + "href" = catalog_config$citation_doi_link ), list( "rel" = "about", @@ -138,7 +138,7 @@ build_forecast_scores <- function(table_schema, "stac_extensions"= list("https://stac-extensions.github.io/scientific/v1.0.0/schema.json", "https://stac-extensions.github.io/item-assets/v1.0.0/schema.json", "https://stac-extensions.github.io/table/v1.2.0/schema.json"), - "sci:doi": catalog_config$citation_doi, + #"sci:doi": catalog_config$citation_doi, 'type' = 'Collection', 'links' = c(link_items, link_list), "title" = theme_title, diff --git a/R/build_publication_items.R b/R/build_publication_items.R index c0156e1..8789779 100644 --- a/R/build_publication_items.R +++ b/R/build_publication_items.R @@ -15,7 +15,7 @@ build_publication_items <- function(var_citation, var_doi){ doi_list <- c(catalog_config$citation_doi) citation_list <- c(catalog_config$citation_text) - if(length(theme_doi) != 0){ + if(length(var_doi) != 0){ doi_list <- append(doi_list, var_doi) citation_list <- append(citation_list, var_citation) }