Merge pull request #179 from hughrun/who-else

remove logging
This commit is contained in:
Hugh Rundle 2024-02-11 14:48:27 +11:00 committed by GitHub
commit 5f8e9a6e19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -99,17 +99,14 @@
var libraries = []
if (ils && !discovery) {
console.log("ils only")
libraries = data.filter( (lib) => lib.ils == ils).sort( (a,b) => {
return (a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0;
})
} else if (discovery && !ils) {
console.log("discovery only")
libraries = data.filter( (lib) => lib.discovery == discovery).sort( (a,b) => {
return (a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0;
})
} else {
console.log("both")
let ils_libs = data.filter( (lib) => lib.ils == ils)
libraries = ils_libs.filter( (lib) => lib.discovery == discovery).sort( (a,b) => {
return (a.name < b.name) ? -1 : (a.name > b.name) ? 1 : 0;
@ -117,7 +114,6 @@
}
// account for no disovery listed or neither
console.log(libraries)
for (let lib of libraries) {
const li = document.createElement('li')
if (lib.url) {
@ -132,7 +128,6 @@
listing.appendChild(li)
}
})
</script>
<form id="form">