');
html=html.replace(patterna,'
' + ucfirst(title) + ' ');
let patternb = new RegExp("\\.\\.\\. @" + lcode + "@", 'g');
//html=html.replace(patternb,'...
' + title + '
');
html=html.replace(patternb,'...
' + title + ' ');
let patternc = new RegExp("vs\\. @" + lcode + "@", 'g');
//html=html.replace(patternc,'vs.
' + title + '
');
html=html.replace(patternc,'vs.
' + title + ' ');
let patternd = new RegExp("Cf\\. @" + lcode + "@", 'g');
//html=html.replace(patternd,'Cf.
' + title + '
');
html=html.replace(patternd,'Cf.
' + title + ' ');
let patterne = new RegExp("cf\\. @" + lcode + "@", 'g');
//html=html.replace(patterne,'cf.
' + title + '
');
html=html.replace(patterne,'cf.
' + title + ' ');
let patternf = new RegExp("E\\.g\\. @" + lcode + "@", 'g');
//html=html.replace(patternf,'E.g.
' + title + '
');
html=html.replace(patternf,'E.g.
' + title + ' ');
let patterng = new RegExp("e\\.g\\. @" + lcode + "@", 'g');
//html=html.replace(patterng,'e.g.
' + title + '
');
html=html.replace(patterng,'e.g.
' + title + ' ');
let patternh = new RegExp("i\\.e\\. @" + lcode + "@", 'g');
//html=html.replace(patternh,'i.e.
' + title + '
');
html=html.replace(patternh,'i.e.
' + title + ' ');
let patterni = new RegExp("\\. @" + lcode + "@", 'g');
//html=html.replace(patterni,'.
' + ucfirst(title) + '
');
html=html.replace(patterni,'.
' + ucfirst(title) + ' ');
let patternj = new RegExp("
@" + lcode + "@", 'g');
//html=html.replace(patternj,'
' + ucfirst(title) + '
');
html=html.replace(patternj,'
' + ucfirst(title) + ' ');
let patternk = new RegExp("@" + lcode + "@", 'g');
//html=html.replace(patternk,'
' + title + '
');
html=html.replace(patternk,'
' + title + ' ');
});
$(this).html(html);
});
$(".chemimg").each(function() {
let size=$(".notecard").width();
let file=$(this).html();
let data=jdata.chemimg[file];
if($(this).hasClass("row")) {
let ratio = size/data.width;
let cols, offset;
if(ratio 1 && ratio 2 && ratio 3 && ratio ');
} else {
$(this).html('
');
}
});
$("#notecard").on("click",".term",function(e) {
let code = $(this).attr("data-code");
// TODO: add logging of clicks here
let linkout = '/terms/view/' + code;
if (e.metaKey||e.ctrlKey) {
window.open(linkout);
} else {
location.assign(linkout);
}
});
$("#github").on("click", function () {
let tcode=jdata.code;
let ttitle='standard atomic weights';
let body=$('#ghbody').val();
let type=$('#error option:selected').val();
let user=$('#user').val();
let userid=$('#userid').val();
// create the POST JSON array...
let post={
title: ttitle + " (" + tcode + ")",
body: body + " - (" + user + ")",
assignees: ["stuchalk"],
milestone: 1,
labels: [type]
};
if(type === "" || (type!=="term - good" && body==="")) {
alert('Please select the type of error');
return false;
} else if(type==="term - good") {
// add to the feedback database
post.userid=userid;
post.code=tcode;
post.body="Term verified by " + user;
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://goldbook.iupac.org//admin/feedback',
data: post,
success: function (data, textStatus, XHR) {
let message="";
if(data.response==="success") {
message="Feedback sent. Thanks!";
alert(message);
location.reload();
} else {
message="Error saving your submission. Please report to
[email protected] .";
alert(message);
}
return false;
},
error: function (data, textStatus, XHR) {
alert("AJAX error. Please contact
[email protected] .");
return false;
}
});
} else {
// send issue to GitHub and then add to the feedback database
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://api.github.com/repos/iupac/Gold-Book-Website-v2/issues?access_token=1c29903ecd25e0e87273857a247b4714abb4c08d',
data: JSON.stringify(post),
success: function (data, textStatus, XHR) {
// send data to database
post.userid=userid;
post.code=tcode;
post.issue=data["number"];
// on success send add to the feedback database
$.ajax({
type: 'POST',
dataType: 'json',
context: document.body,
url: 'https://goldbook.iupac.org//admin/feedback',
data: post,
success: function (data, textStatus, XHR) {
let message;
if(data.response === "success") {
message="Feedback sent. Thanks!";
alert(message);
window.location.reload(); // reloads from server not cache
} else {
message="Error saving your submission. Please report to
[email protected] .";
alert(message);
}
return false;
},
error: function (data, textStatus, XHR) {
alert("Communication error. Please report to
[email protected] .");
return false;
}
});
return false;
},
error: function (data, textStatus, XHR) {
alert("Error saving your submission. Please contact
[email protected] .");
return false;
}
});
return false;
}
});
$("#errors").hover(
function () { $("#fform").hide();$("#fback").show(); },
function () { $("#fback").hide();$("#fform").show(); }
);
$('#copy').on('click',function() {
let doi = $("#doi").text();
navigator.clipboard.writeText(doi);
});
$('.replacement').on('blur', function() {
// update the 'displayed' field in the 'links' table with value to display for link
let code=$(this).attr('code');
let value=$(this).attr('val');
let text=$(this).text();
$.ajax({
type: 'POST',
dataType: "text",
context: document.body,
url: 'https://goldbook.iupac.org/links/updatefield/displayed',
data: { code: code,value: value, text: text },
success: function (data, textStatus, XHR) {
// send data to database
if(data=="error") {
alert("Error saving to the DB.");
} else {
alert('Done!');
//window.location.reload(true); // true reloads from server not cache
}
return false;
},
error: function (data, textStatus, XHR) {
alert("Error saving the change.");
return false;
}
});
return false;
});
$('.chemimage').mousemove(function(e) {
let imageid=$(this).attr('imageid');
let image=$('#image');
let popup=$('#popup');
alert(imageid);
image.attr('src','../../../img/inline/' + imageid + 'png');
popup.offset({
top: e.pageY - popup.outerHeight(),
left: e.pageX - popup.outerHeight()
});
popup.show();
}).mouseleave(function () {
let popup=$('#popup');
popup.hide();
});
});
Copy
https://doi.org/10.1351/goldbook.S05907
Recommended values of @R05258@ of the elements revised biennially by the IUPAC Commission on Atomic Weights and Isotopic Abundances and applicable to elements in any normal sample with a high level of confidence. A normal sample is any reasonably possible source of the element or its compounds in commerce for industry and science and has not been subject to significant modification of isotopic composition within a geologically brief period.
Source: Green Book, 2
nd ed., p. 94 [
Terms ] [
Book ]