Published
Edited
Dec 29, 2020
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data_object = {update_as_dependency;
var source_object = await s3.getObject(objectParams).promise();
var source_object_formatted = JSON.parse(source_object.Body.toString('utf-8'));
return source_object_formatted
}
Insert cell
viewof update_object = Object.defineProperty(html`<button>Add Record`, 'value', {value: ""})
Insert cell
update_as_dependency = {
update_object; // create a dependency via Observable's Runtime.
var source_object = await s3.getObject(objectParams).promise();
var data_object_formatted = JSON.parse(source_object.Body.toString('utf-8'));
var new_array = Array.from(data_object_formatted).concat(mutable bibliography_update_template.value);
var new_array_formatted = JSON.stringify(await new_array);
var create_new_array = s3.putObject({
Body: new_array_formatted,
Bucket: bucketName,
Key: objectName
}).promise();
return create_new_array
}
Insert cell
viewof key = html`<input type=text>`
Insert cell
viewof sort = html`<input type=text>`
Insert cell
mutable bibliography_update_template = JSON
Insert cell
bibliography_update_template
Insert cell
mutable bibliography_update_template.value = [
{
"key": key,
"sort":sort,
"comment":"comment",
"url_primary":"url_primary",
"url_alternative":"url_alternative",
"file_name_revised":"file_name_revised",
"bibtex_type":"bibtex_type",
"extended_typology":"extended_typology",
"distribution":"distribution",
"licence":"licence",
"tags":"tags",
"geographic_scope":"geographic_scope",
"country":"country",
"region":"region",
"year":"year",
"author":"author",
"editor":"editor",
"title":"title",
"chapter":"chapter",
"journal":"journal",
"volume":"volume",
"number":"number",
"pages":"pages",
"series":"series",
"crossref":"crossref",
"language":"language",
"institution":"institution",
"publisher":"publisher",
"address":"address",
"abstract":"abstract",
"notes":"notes",
"record_id":"record_id",
"issn_isbn":"issn_isbn",
"":""
},
]
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more