// Check friendly book URLs and redirect if classification parameters needed if (document.forms[0].PageType.value == "onixProduct") { if (window.location.toString().indexOf('primary/book') != -1) { var redirectParams = "&cat=" + document.forms[0].Cat.value + "&div=" + document.forms[0].Div.value; window.location = "/primary/onix/isbn/" + document.forms[0].ISBN.value + "?open" + redirectParams; } else if(window.location.toString().indexOf('&cat=') == -1) { var redirectParams = "&cat=" + document.forms[0].Subjects.value + ">" + document.forms[0].Areas.value + "&div=" + document.forms[0].Div.value; window.location = "/primary/onix/isbn/" + document.forms[0].ISBN.value + "?open" + redirectParams; } } if(((typeof document.forms[0].PageType != "undefined")&&(document.forms[0].PageType.value == "onixProduct")) && ((typeof document.forms[0].Subsection != "undefined")&&(document.forms[0].Subsection.value == "Titles"))) { document.title = "Primary - " + unescape(document.forms[0].DistinctiveTitle.value); /* // check for Teachers club rego var checkTC = false; if (getCookie('MacTClub') && getCookie('MacTClub')=="1") checkTC = true; var checkTR = false; if (args['div']=="Teacher Resources") checkTR = true; var thisVal = 1; */ //1 - docID //2 - Distinctive Title //3 - Edition Statement //4 - Lead Author //5 - Publication Date //6 - ISBN //7 - Price //8 - Publisher Name //9 - Imprint or Binding //10 - Summary (Abstract if it exists otherwise first 300 chars of Main Description) //11 - parentID //12 - BIC Main Subject Code //13 - Subject //14 - Area //15 - Series function viewResultsComponents() { this.viewCol1 = document.forms[0].DocID.value; this.viewCol2 = document.forms[0].DistinctiveTitle.value; this.viewCol3 = document.forms[0].EditionStatement.value; //this.viewCol4 = "lead author"; this.viewCol4 = document.forms[0].Contributors.value; this.viewCol5 = document.forms[0].PublicationDate.value; this.viewCol6 = document.forms[0].ISBN.value; this.viewCol7 = document.forms[0].Price.value; this.viewCol8 = document.forms[0].PublisherName.value; this.viewCol9 = document.forms[0].ImprintName.value; this.viewCol10 = "summary"; this.viewCol11 = "parent id"; this.viewCol12 = document.forms[0].BICMainSubject.value; this.viewCol13 = document.forms[0].Subjects.value; this.viewCol14 = document.forms[0].Areas.value; this.viewCol15 = document.forms[0].TitleOfSeries.value; if(args['bi']) { this.viewCol17 = args['bi']; } else { this.viewCol17 = document.forms[0].InspectionStatus.value; } } var viewResults = new Array(1); viewResults[0] = new viewResultsComponents(); book = new Book(0); book.printBookDetailPage(oCart); /* function addToOrder(oEvent) { var target = stopEvent(oEvent); //addItemToCartTemp(target); var oCartContainer = target.parentNode; var bUnits = document.getInnerElementByClassName(oCartContainer,'input','bUnits'); var quantity = 1; if((bUnits.value != "") && (!isNaN(bUnits.value)) && (bUnits.value > 0)) quantity = parseInt(bUnits.value); book.buyInspect = "B"; book.addToCart(oCart,quantity); book.updateBookDetail(oCartContainer,oCart); } function removeFromOrder(oEvent) { var target = stopEvent(oEvent); //removeItemFromCartTemp(target); var oCartContainer = target.parentNode; book.removeFromCart(oCart); book.updateBookDetail(oCartContainer,oCart); } function addInspectToOrder(oEvent) { var target = stopEvent(oEvent); addItemToCartTemp(target); var oCartContainer = target.parentNode; var quantity = 1; book.buyInspect = "I"; book.addToCart(oCart,quantity); book.updateBookDetail(oCartContainer,oCart); } addItemsToCart = function(oEvent) { var target = stopEvent(oEvent); var oCartContainer = document.getElementById('cartControls'); try { var units = document.getElementById('bUnitsContainer').firstChild; } catch(oError){ return false; } var quantity = 1; if((units.value != "") && (!isNaN(units.value)) && (units.value > 0)) quantity = parseInt(bUnits.value); book.buyInspect = "B"; book.addToCart(oCart,quantity); book.updateBookDetail(oCartContainer,oCart); }; */ }