remove logging

This commit is contained in:
Hugh Rundle 2024-02-11 14:47:29 +11:00
parent 25f6385ac6
commit 9554ff9438
Signed by: hugh
GPG key ID: A7E35779918253F9

View file

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