From b5e1b56a1db84f06d0bca64f05d1b5b6e127ca59 Mon Sep 17 00:00:00 2001 From: "Alec L. Robitaille" Date: Fri, 28 May 2021 11:59:30 -0700 Subject: [PATCH 1/3] add colWidths argument --- R/edit_file.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/edit_file.R b/R/edit_file.R index 7b582ee..35f15af 100644 --- a/R/edit_file.R +++ b/R/edit_file.R @@ -245,7 +245,8 @@ edit_file <- function(metadata_dir = file.path("data", "metadata"), file) { output$hot <- rhandsontable::renderRHandsontable({ rhandsontable::rhandsontable(dat, useTypes = TRUE, - stretchH = "all") %>% + stretch = 'all', + colWidths = '250px') %>% rhandsontable::hot_context_menu(allowColEdit = FALSE) }) From cd70ae8531531625e638706bd82722ce4b834956 Mon Sep 17 00:00:00 2001 From: "Alec L. Robitaille" Date: Fri, 28 May 2021 13:14:05 -0700 Subject: [PATCH 2/3] add citation to write_spice output --- R/write_spice.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/write_spice.R b/R/write_spice.R index 5771e0a..75457d8 100644 --- a/R/write_spice.R +++ b/R/write_spice.R @@ -76,6 +76,7 @@ write_spice <- function(path = file.path("data", "metadata"), ...) { creator = authors, description = biblio$description, datePublished = biblio$datePublished, + citation = biblio$citation, keywords = biblio_keywords, funder = biblio$funder, temporalCoverage = paste(biblio$startDate, biblio$endDate, sep="/"), From 929a85681f7f856dcdbdcec1ccd0fb5d3780edd6 Mon Sep 17 00:00:00 2001 From: "Alec L. Robitaille" Date: Fri, 28 May 2021 13:14:32 -0700 Subject: [PATCH 3/3] add citation field to template in bibliographic section --- inst/template.html5 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inst/template.html5 b/inst/template.html5 index 65050c6..3754064 100644 --- a/inst/template.html5 +++ b/inst/template.html5 @@ -61,6 +61,10 @@ Published {{datePublished}} + + Citation + {{citation}} + Keywords