.*?<\/tr>/g);
//alert(borrowItem[0]);
var loan = new Array();
for(k=0;k(.*?)<\/td>.*?date.*?td1">(.*?)<\/td>.*?hour.*?td1>(.*?)<\/td>.*?Sub.*?nowrap="">(.*?)<\/td>.*?Collection.*?nowrap="">(.*?)<\/td>.*?td1">(.*?)<\/td>/);
/////借书类型/时间/到期/分馆/馆藏地/索书号
}
}
/////////////////
if(hasBook){
//alert("hasBook");
var storeList = new LibMeta("SYSU");
storeList.state="store";
storeList.items= new Array();
for(s=0;s/,"");
storeList.items[s].branch=loan[s][4];
storeList.items[s].link=url;
storeList.items[s].location=loan[s][5];
storeList.items[s].bookIndex=loan[s][6];
if(storeList.items[s].storeState.indexOf('外借')!=-1&&storeList.items[s].returnTime.indexOf("在架上")!=-1&&storeList.items[s].storeState.indexOf('闭架')==-1){
storeList.items[s].rentable=true;
}
//alert(allBook);
}
//alert(storeList.items.length);
if(eBook){
//get_eBook(eBook);
var itemsLength=storeList.items.length;
storeList.items[itemsLength]=new StoreItem("SYSU");
storeList.items[itemsLength].link=eBook;
storeList.items[itemsLength].type="eBook";
storeList.items[itemsLength].storeState="电子书";
};
}
//alert(storeList.items.length);
//return messageCatcher(storeList);
//alert(storeList.school+" zsdx");
messageCatcher(storeList,frameLocation);
return null;
//allBook += ''
//$('.aside').prepend(allBook);
//////////////////////完成框架插入//////////////
}
},
//华南理工大学
SCUT:{
respond:function (reDetails,frameLocation) {
if (reDetails.status !== 200&&reDetails.status !== 304){
var msg = new LibMeta("SCUT");
msg.state="error";
msg.errorMsg="ISBN连接错误";
//alert("ISBN连接错误");//后续版本再处理
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("footer").textContent=reDetails.responseText;
if(reDetails.responseText.indexOf('无符合')!=-1){
//alert("ISBN查无此书"); //增加荐购
var msg = new LibMeta("SCUT");
msg.state="recommend";
//hasBook = false;
//recommendBook();
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("reviews").textContent=reDetails.responseText;
isbnFilter.SCUT.filter(reDetails.responseText,frameLocation);
},
filter:function(text,frameLocation){
//http://202.38.232.10/opac/servlet/opac.go?SORTFIELD=CALLNO&SORTORDER=asc&bookid=413213&cmdACT=query.bookdetail&libcode=
text = text.replace(/[ | ]*\n/g,'').replace(/\n[\s| | ]*\r/g,'').replace(/amp;/g,"");
rowText = text.match(/javascript:book_detail.*?<\/tr>/g);
//alert(rowText);
var bookBlock = new Array();
var bookDetail = new Array();
for(s=0;s(.*?)<\/a>.*?F">(.*?)<\/TD>.*?F">(.*?)<\/TD>.*?F">(.*?)<\/TD>.*?F">(.*?)<\/TD>.*?F">(.*?)<\/TD>.*?F">(.*?)<\/TD>/);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta("SCUT");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s/);
var row;
row=text[0].match(/
.*?<\/tr>/g);
//alert(row.length);
row.shift();
//alert(row[0]);
var storeBlock = new Array();
for(s=0;s(.*?)<\/td>.*?F">(.*?)<\/td.*?8%">(.*?)<\/td>.*?4%">(.*?)<\/td>.*?8%">(.*?)<\/td>.*?8%">(.*?)<\/td>.*?0%">(.*?)<\/td>/);
//alert(bookBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("SCUT");
storeList.state="store";
storeList.items= new Array();
for(s=0;s(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta("SCNU");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s(.*?)<\/td>.*?title="(.*?)">.*?20%">(.*?)<\/td>/);
//alert(storeBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("SCNU");
storeList.state="store";
storeList.items= new Array();
for(s=0;s/);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText;
var bookBlock = new Array();
bookBlock[0]=rowText[0].match(/(bookinfo.aspx\?ctrlno=\d+\.?\d*)".*?blank">(.*?)<\/a>.*?
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>/);
//alert(bookBlock[0].length);
bookBlock[0].shift();
var list = new LibMeta("GDUT");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s.*?<\/tbody>/);
row[0].replace(/ /g,"");
//alert(row[0]);
row = row[0].match(/
.*?<\/tr>/g);
//alert(row.length);
//row.shift();
//alert(row[0]);
var storeBlock = new Array();
for(s=0;s(.*?)<\/a><\/td>
(.*?)<\/td>
(.*?)<\/td>.*?tbr.*?
.*?
(.*?)<\/td>/);
//alert(storeBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("GDUT");
storeList.state="store";
storeList.items= new Array();
for(s=0;s(.*?)<\/a>/)[1];
}
if(!eBook&&str.indexOf("索书")==-1){
var msg = new LibMeta("GDUFS");
msg.state="recommend";
//recommendBook();
messageCatcher(msg,frameLocation);
return;
}
str = str.match(/全部馆藏(.*?)所有单册/g)
//alert(typeof str[0]);
var txt = str[0];
txt = txt.match(/http:.*?sub_library=/);
where=txt;
//alert(txt);
// alert(eBook);
GM_xmlhttpRequest({ //获取列表
method : 'GET',
synchronous : false,
url : where[0],
//url : fullurl,//"http://202.116.64.108:8991/F/?func=find-b&find_code=ISB&request=7101003044",
onload : function (reDetails) {
if (reDetails.status !== 200&&reDetails.status !== 304){
var msg = new LibMeta("GDUFS");
msg.state="error";
msg.errorMsg="无法获取馆藏列表";
//alert("ISBN连接错误");//后续版本再处理
messageCatcher(msg,frameLocation);
return;
}
var libra =document.createElement("div");
libra.innerHTML = reDetails.responseText;
isbnFilter.GDUFS.getBookinfo(libra.innerHTML,eBook,frameLocation,where[0]);//回调函数馆藏位置获取
}
});
//alert(txt);
//////////////////////////////////////////////
},
/////////////////回调函数馆藏位置获取////////////////////////////////////////
getBookinfo:function(webText,eBook,frameLocation,finalUrl){
var hasBook = true;
webText = webText.replace(/[ | ]*\n/g,'').replace(/\n[\s| | ]*\r/g,'').replace(/amp;/g,"");
//alert(webText);
///防止无书籍的情况发生
if(webText.indexOf('无匹配单册')!=-1){
var msg = new LibMeta("GDUFS");
msg.state="recommend";
messageCatcher(msg,frameLocation);
}
else{
blockBook = webText.match(/OPAC注释(.*?)<\/tbody>/)[1];
//alert(typeof blockBook);
borrowItem = blockBook.match(/
.*?<\/tr>/g);
//alert(borrowItem[0]);
var loan = new Array();
for(k=0;k(.*?)<\/td>.*?date.*?td1">(.*?)<\/td>.*?hour.*?td1>(.*?)<\/td>.*?Sub.*?nowrap="">(.*?)<\/td>.*?Location.*?td1">(.*?)<\/td>/);
/////借书类型/时间/到期/位置/索书号
}
}
/////////////////
if(hasBook){
//alert("hasBook");
var storeList = new LibMeta("GDUFS");
storeList.state="store";
storeList.items= new Array();
for(s=0;s ' +
// '
' +
// '';
//allBook += bookStatus;
storeList.items[s]=new StoreItem("GDUFS");
storeList.items[s].storeState=loan[s][1];
storeList.items[s].returnTime=loan[s][2].replace(/ /,"");
storeList.items[s].branch=loan[s][4];
storeList.items[s].bookIndex=loan[s][5];
storeList.items[s].link=finalUrl;
if(storeList.items[s].storeState.indexOf('外借')!=-1&&storeList.items[s].returnTime.indexOf('在架上')!=-1&&storeList.items[s].storeState.indexOf('闭架')==-1){//闭架无法预约
storeList.items[s].rentable=true;
}
//alert(allBook);
}
//alert(storeList.items.length);
if(eBook){
//get_eBook(eBook);
var itemsLength=storeList.items.length;
storeList.items[itemsLength]=new StoreItem("GDUFS");
storeList.items[itemsLength].link=eBook;
storeList.items[itemsLength].type="eBook";
storeList.items[itemsLength].storeState="电子书";
};
}
//alert(storeList.items.length);
//return messageCatcher(storeList);
//alert(storeList.school+" gw");
messageCatcher(storeList,frameLocation);
//allBook += ''
//$('.aside').prepend(allBook);
//////////////////////完成框架插入//////////////
}
},
//广州中医药大学
GZHTCM:{
respond:function (reDetails,frameLocation) {
if (reDetails.status !== 200&&reDetails.status !== 304){
var msg = new LibMeta("GZHTCM");
msg.state="error";
msg.errorMsg="ISBN连接错误";
//alert("ISBN连接错误");//后续版本再处理
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("footer").textContent=reDetails.responseText;
if(reDetails.responseText.indexOf('没有')!=-1){
//alert("ISBN查无此书"); //增加荐购
var msg = new LibMeta("GZHTCM");
msg.state="recommend";
//hasBook = false;
//recommendBook();
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("reviews").textContent=reDetails.responseText;
isbnFilter.GZHTCM.filter(reDetails.responseText,frameLocation);
},
filter:function(text,frameLocation){
//http://202.38.232.10/opac/servlet/opac.go?SORTFIELD=CALLNO&SORTORDER=asc&bookid=413213&cmdACT=query.bookdetail&libcode=
text = text.replace(/[ | ]*\n/g,'').replace(/\n[\s| | ]*\r/g,'').replace(/amp;/g,"").replace(/ /g,"").replace(/\r/g,"");
rowText = text.match(/book_list_info.*?(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta("GZHTCM");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s(.*?)<\/td>.*?gif"\/>(.*?)<\/td>.*?20%">(.*?)<\/td>/);
//alert(storeBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("GZHTCM");
storeList.state="store";
storeList.items= new Array();
for(s=0;s.*?<\/div>/g);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText[0];
var bookBlock = new Array();
var bookDetail = new Array();
for(s=0;s(.*?)<\/a>(.*?)<\/span>.*?
(.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta("GZHU");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s(.*?)<\/td>/)[1];
text=text.match(/holdings_info_content.*?clear/);
//alert(row.length);
//row.shift();
row = text[0].match(/
.*?<\/tr>/g);
//alert(row.length);
var storeBlock= new Array();
for(s=0;s(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>
(.*?)/);
//alert(storeBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("GZHU");
storeList.state="store";
storeList.items= new Array();
for(s=0;s/);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText;
var bookBlock = new Array();
//var bookDetail = new Array();
/*
for(s=0;s(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
*/
bookBlock[0]=rowText[0].match(/(bookinfo.aspx\?ctrlno=\d+\.?\d*)".*?blank">(.*?)<\/a>.*?
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>/);
//alert(bookBlock[0].length);
bookBlock[0].shift();
var list = new LibMeta("GZARTS");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s.*?<\/tbody>/);
row[0].replace(/ /g,"");
//alert(row[0]);
row = row[0].match(/
.*?<\/tr>/g);
//alert(row.length);
//row.shift();
//alert(row[0]);
var storeBlock = new Array();
for(s=0;s(.*?)<\/a><\/td>
(.*?)<\/td>
(.*?)<\/td>.*?tbr.*?
.*?
(.*?)<\/td>/);
//alert(storeBlock[s].length);
storeBlock[s].shift();
}
var storeList = new LibMeta("GZARTS");
storeList.state="store";
storeList.items= new Array();
for(s=0;s/);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText;
var bookBlock = new Array();
//var bookDetail = new Array();
/*
for(s=0;s(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
*/
bookBlock[0]=rowText[0].match(/(bookinfo.aspx\?ctrlno=\d+\.?\d*)".*?blank">(.*?)<\/a>.*?
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>/);
//alert(bookBlock[0].length);
bookBlock[0].shift();
var list = new LibMeta("XHCOM");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s.*?<\/tbody>/);
row[0].replace(/ /g,"");
//alert(row[0]);
row = row[0].match(/
.*?<\/tr>/g);
//alert(row.length);
//row.shift();
//alert(row[0]);
var storeBlock = new Array();
for(s=0;s(.*?)<\/a><\/td>
/).slice(1);
// 超链接/ 书名 /作者 / 索引号/出版社 /年份 /
}
////////框架//////////////////////////////////
var display;
var list = new LibMeta("GDUFS");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s4){
display=" ;display : none";
}
else{
display="";
}
//allBook += bookStatus;
list.items[s] = new LibItem("GDUFS");
list.items[s].link = bookDetail[s][0];
list.items[s].bookName = bookDetail[s][1];
list.items[s].author = bookDetail[s][2].replace(/ /,"").replace(/ /,"");
list.items[s].publisher = bookDetail[s][4];
list.items[s].pubDate = bookDetail[s][5];
//alert(list.items[s].bookName);
}
//alert(allBook);
//allBook += ''
messageCatcher(list,frameLocation);
//判断URL
///////////////判断URL
//}
////////////插入框架结束//////////////
}
},
//广州中医药大学
GZHTCM:{
respond:function (reDetails,frameLocation) {
if (reDetails.status !== 200&&reDetails.status !== 304){
var msg = new LibMeta("GZHTCM");
msg.state="error";
msg.errorMsg="全字段连接错误";
//alert("ISBN连接错误");//后续版本再处理
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("footer").textContent=reDetails.responseText;
if(reDetails.responseText.indexOf('没有')!=-1){
//alert("ISBN查无此书"); //增加荐购
var msg = new LibMeta("GZHTCM");
msg.state="error";
msg.errorMsg="全字段查无此书";
//hasBook = false;
//recommendBook();
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("reviews").textContent=reDetails.responseText;
titleFilter.GZHTCM.filter(reDetails.responseText,frameLocation);
},
filter:function(text,frameLocation){
//http://202.38.232.10/opac/servlet/opac.go?SORTFIELD=CALLNO&SORTORDER=asc&bookid=413213&cmdACT=query.bookdetail&libcode=
text = text.replace(/[ | ]*\n/g,'').replace(/\n[\s| | ]*\r/g,'').replace(/amp;/g,"").replace(/ /g,"").replace(/\r/g,"");
rowText = text.match(/book_list_info.*?(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta("GZHTCM");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s.*?<\/div>/g);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText[0];
var bookBlock = new Array();
var bookDetail = new Array();
for (s = 0; s < rowText.length; s++) {
bookBlock[s] = rowText[s].match(/href="(.*?)"target="_blank">(.*?)<\/a>(.*?)<\/span>.*?
(.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
var list = new LibMeta('GZHU'); ////构造函数
list.state = 'booklist';
list.items = new Array();
for (s = 0; s < rowText.length; s++) {
list.items[s] = new LibItem('GZHU');
list.items[s].link = 'http://lib.gzhu.edu.cn:8080' + bookBlock[s][0];
list.items[s].bookName = bookBlock[s][1];
list.items[s].author = bookBlock[s][2];
list.items[s].publisher = bookBlock[s][3];
//list.items[s].bookIndex = bookBlock[s][2];
//alert(list.items[s].bookName);
}
messageCatcher(list,frameLocation);
return;
}
},
//广州美术学院
GZARTS:{
respond:function (reDetails,frameLocation) {
if (reDetails.status !== 200&&reDetails.status !== 304){
var msg = new LibMeta("GZARTS");
msg.state="error";
msg.errorMsg="全字段连接错误";
//alert("ISBN连接错误");
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("footer").textContent=reDetails.responseText;
if(reDetails.responseText.indexOf('没有')!=-1){
//alert("ISBN查无此书"); //增加荐购
var msg = new LibMeta("GZARTS");
msg.state="error";
msg.errorMsg="全字段查无此书";
//hasBook = false;
//recommendBook();
messageCatcher(msg,frameLocation);
return;
}
//document.getElementById("reviews").textContent=reDetails.responseText;
titleFilter.GZARTS.filter(reDetails.responseText,frameLocation);
},
filter:function(text,frameLocation){
text = text.replace(/[ | ]*\n/g,'').replace(/\n[\s| | ]*\r/g,'').replace(/amp;/g,"").replace(/\r/g,"").replace(/ /g,"");
rowText = text.match(/class="tb".*?<\/table>/);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText;
var bookBlock = new Array();
//var bookDetail = new Array();
/*
for(s=0;s(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
*/
bookBlock[0]=rowText[0].match(/(bookinfo.aspx\?ctrlno=\d+\.?\d*)".*?blank">(.*?)<\/a>.*?
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>/);
//alert(bookBlock[0].length);
bookBlock[0].shift();
var list = new LibMeta("GZARTS");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s/);
//alert(rowText.length);
//document.getElementById("reviews").textContent=rowText;
var bookBlock = new Array();
//var bookDetail = new Array();
/*
for(s=0;s(.*?)<\/a>(.*?)<\/h3>.*?span>(.*?) (.*?)<\/span>(.*?) (.*?) /);
//alert(bookBlock[s].length);
bookBlock[s].shift();
}
*/
bookBlock[0]=rowText[0].match(/(bookinfo.aspx\?ctrlno=\d+\.?\d*)".*?blank">(.*?)<\/a>.*?
(.*?)<\/td>
(.*?)<\/td>
(.*?)<\/td>/);
//alert(bookBlock[0].length);
bookBlock[0].shift();
var list = new LibMeta("XHCOM");////构造函数
list.state="booklist";
list.items= new Array();
for(s=0;s'+
'
'
frameLink = document.createElement("a");
frameLink.setAttribute("target","_blank");
frameLink.innerHTML="前往图书馆查看这本书";
frameLink.setAttribute("href",fullUrl);
frame.appendChild(frameLink);
frame.appendChild(loadingFrame);
//alert(fullUrl);
//alert(schoolInfo[school].isGBK);
if(!schoolInfo[school].isGBK){
GM_xmlhttpRequest({ //获取列表
method : 'GET',
synchronous : false,//异步获取
//url : "http://202.116.64.108:8991/F/?func=find-b&find_code=ISB&request=9787805985824",
url : fullUrl,
onload :function (reDetails){
//var innerContent=document.createElement("div");
titleFilter[school].respond(reDetails,"title",fullUrl);
}
});
}
else{
GM_xmlhttpRequest({
method: "POST",
url: "http://yigewang.duapp.com/urlencode.php?m=ajax",
data: "charset=GB2312&q="+bookMeta.title+"&type=encode",
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"Cookie": "BAEID=5F612DF6E06FBEA7ACF81CFD7974892C:FG=1"
},
onload: function(response) {
//alert("text");
if (response.status !== 200&&response.status !== 304){
var msg = new LibMeta(school);
msg.state="error";
msg.errorMsg="无法获取远程GBK转码";
messageCatcher(msg,frameLocation);
return;
}
fullUrl= schoolInfo[school].anySearchUrl.replace(/%s/,response.responseText);
frameLink.setAttribute("href",fullUrl);
//alert(fullUrl);
GM_xmlhttpRequest({ //获取列表
method : 'GET',
synchronous : false,//异步获取
//url : "http://202.116.64.108:8991/F/?func=find-b&find_code=ISB&request=9787805985824",
url : fullUrl,
onload :function (reDetails){
//var innerContent=document.createElement("div");
titleFilter[school].respond(reDetails,"title",fullUrl);
}
});
}
});
}
}
/////////////////////////////////////////
///////////////ISBN插入框架//////////////////////////////
ISBNInsert=function(msg,frameLocation){
var innerContent=document.createElement("div");
innerContent.innerHTML= msg;
switch(frameLocation){
case "ISBN":
loading =document.getElementById("ISBNLoading");
loading.parentNode.removeChild(loading);
frame = document.getElementById("libISBN");
break;
case "title":
loading =document.getElementById("titleLoading");
loading.parentNode.removeChild(loading);
frame = document.getElementById("libTitle");
break;
case "otherISBN":
frame = document.getElementById("mainOtherISBN");
break;
default:
break;
}
frame.appendChild(innerContent);
function addStoreListener(){
GM_setClipboard(this.getAttribute("data-storeInfo"));
noteInfo = "已复制到粘贴板 "+this.getAttribute("data-storeInfo");
// Let's check if the browser supports notifications
if (!("Notification" in window)) {
confirm("以下信息已复制到粘贴板\n\n"+this.getAttribute("data-storeInfo"));
}
// Let's check if the user is okay to get some notification
else if (Notification.permission === "granted") {
// If it's okay let's create a notification
var notification = new Notification(noteInfo);
}
// Otherwise, we need to ask the user for permission
// Note, Chrome does not implement the permission static property
// So we have to check for NOT 'denied' instead of 'default'
else if (Notification.permission !== 'denied') {
Notification.requestPermission(function (permission) {
// Whatever the user answers, we make sure we store the information
if (!('permission' in Notification)) {
Notification.permission = permission;
}
// If the user is okay, let's create a notification
if (permission === "granted") {
var notification = new Notification(noteInfo);
}
else{
confirm("以下信息已复制到粘贴板\n\n"+this.getAttribute("data-storeInfo"));
}
});
}
// At last, if the user already denied any notification
else{
confirm("以下信息已复制到粘贴板\n\n"+this.getAttribute("data-storeInfo"));
}
}
var storeListener = document.querySelectorAll(".preStoreRegister");
for(s=0;s荐购' );
var allBook = '
ISBN查询无此书'+statBtn+'
';
innerContent.innerHTML= allBook;
frame.appendChild(innerContent);
button=document.getElementById("recbtn");
if(button){
button.addEventListener("click",gotoRecommend,false);
}
}
///////获取回调数据//////////////
messageCatcher=function(msg,frameLocation){
//alert(msg.school);
switch(msg.state){
case "store":
var allBook="";
var otherAbbr="";
if(frameLocation.indexOf("other")!=-1){
otherAbbr="院校:"+schoolInfo[msg.school].abbrName+" ";
}
var attachRent="";
for(s=0;s ' +//+'ondblclick="GM_setClipboard(this.getAttribute('+"'data-storeInfo'"+'))"'
'