const test_query_button = document.getElementById("test-query")
function updateQueryString() {
+ // Changing the form updates the query string in the advanced section which is
+ // the query string which is ultimately used to check crossref
// User validation not required as API calls are performed locally
- const params = { 'select': 'DOI' }
+ const params = {}
const search_term = document.getElementById("search-term").value
if (search_term) {
params["query"] = search_term
@@ -171,7 +173,6 @@
Advanced
// Construct the final URL by appending the search parameters
document.getElementById("query_string").value = decodeURIComponent(searchParams.toString())
- searchParams.delete("select")
const url = `https://api.crossref.org/works/?${searchParams.toString()}`;
test_query_button.parentNode.href = url
}
@@ -183,6 +184,13 @@