Mark Sullivan
My feedback
6 results found
-
3 votes
An error occurred while saving the comment Mark Sullivan shared this idea ·
-
52 votes
Mark Sullivan supported this idea ·
-
24 votes
Mark Sullivan supported this idea ·
-
58 votes
An error occurred while saving the comment Mark Sullivan commented
For IDS Logic libraries, we find that 5 are often not enough for all of the things they would like to do.
Mark Sullivan supported this idea ·
-
155 votes
An error occurred while saving the comment Mark Sullivan commented
Since a good number of libraries are now using Tipasa, having ILLiad OCR the pdf before sending through Odyssey or Article Exchange would be great.
Mark Sullivan supported this idea ·
-
13 votes
Mark Sullivan supported this idea ·
This script can be added at the bottom of the LoanRequest.html file.
<script>
$(document).ready(function () {
$("#search").click(function () {
var isbn = $("#isbn").val().trim();
if (isbn === "") {
alert("Please enter an ISBN.");
return;
}
var apiUrl = "https://www.googleapis.com/books/v1/volumes?q=isbn:" + isbn;
$.getJSON(apiUrl, function (data) {
if (!data.items || data.items.length === 0) {
alert("No book found for this ISBN.");
return;
}
var book = data.items[0].volumeInfo;
// Extract the first available ISBN (either 10 or 13)
var foundISBN = "N/A";
if (book.industryIdentifiers) {
var isbnList = book.industryIdentifiers.map(id => id.identifier);
foundISBN = isbnList.join(" "); // Include all ISBNs if available
}
$("#LoanTitle").val(book.title || "");
$("#LoanAuthor").val(book.authors ? book.authors.join(", ") : "");
$("#LoanPublisher").val(book.publisher || "");
$("#LoanDate").val(book.publishedDate || "");
$("#ISSN").val(isbn); //Change isbn to foundISBN if you want a list populating the ILLiad ISSN field
$("#LoanEdition").val(book.contentVersion || ""); // Google Books doesn't always provide a formal edition
$("#LoanPlace").val("N/A"); // Place of publication is generally not available in Google Books API
}).fail(function () {
alert("Error fetching data. Please try again.");
});
});
});
</script>