Edit D:\rfid\libsystem\page\global\js\z3950ForEidt.js
var marcFlagType="0";$(function(){$("#centerOrderBibRecord").hide();$("#centerOrderCheckBibRecord").hide();$("#centerCheckBibRecord").hide();$("#searchZ3950MarcGird").hide();$("#z3950DownLoadToAddEditGrid").hide();$("#z3950DataGridList").datagrid({onSelect:onSelectz3950DataGridList})});function onSelectz3950DataGridList(a,b){marcFlagType="0";if(vPageNameFlag!="??????"){if(vPageNameFlag=="?????????"){_myComBib.prototype.setDataToEditBibGrid("editBibGrid",b.marcrows);$("#z3950DownLoadToAddEditGrid").show()}else{$("#centerDataGridDetail").datagrid("loadData",b.marcrows);$("#centerDataGridDetail").datagrid("getPanel").panel("setTitle","z3950????arc???");$("#centerOrderBibRecord").hide();$("#centerOrderCheckBibRecord").hide();$("#centerCheckBibRecord").hide();$("#searchZ3950MarcGird").show();$("#z3950DownLoadToAddEditGrid").show();$(".showBibGrid-tip").html("")}}}function z3950SearchByCondtion(){$("#keyword").textbox("textbox").focus().select();var a=base_path+"cat/z3950/query.do";var b={};if(getValue("keyword").length==0){return openMessageDlg("????????????")}deleteGridData("z3950DataGridList");setFirstPage("#z3950DataGridList");b.rows=10;b.page=1;b.condition=getValue("bibindex");if(b.condition!="ISBN"&&b.condition!="TITLE"&&b.condition!="AUTHOR"&&b.condition!="SUBJECT"){b.condition="ANY"}b.value=getValue("keyword");b.sysid=getValue("page_sysid");$("#z3950DataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){if(c.status=="0"){if(vPageNameFlag=="??????"){$("#tabsGrid").tabs("select",2)}else{if(vPageNameFlag=="?????????"){marcFlagType=0;$("#tabsGrid").tabs("select",3)}else{$("#tabsGrid").tabs("select",5)}}$("#z3950DataGridList").datagrid("selectRow",0)}else{openMessageDlg(c.message)}},method:"post"})}function setFirstPage(b){var c=$(b).datagrid("options");var a=$(b).datagrid("getPager");c.pageNumber=1;c.pageSize=c.pageSize;a.pagination("refresh",{pageNumber:1,pageSize:c.pageSize})}function searchZ3950MarcGird(d){marcFlagType="1";var g=$("#z3950DataGridList").datagrid("getSelected");if(!g){return openMessageDlg("????????????????")}var c=base_path+"cat/z3950/download.do";var f={};var b=$("#z3950DataGridList").datagrid("getPager").data("pagination").options;var a=b.pageNumber;var e=b.pageSize;f.condition=getValue("bibindex");if(f.condition!="ISBN"&&f.condition!="TITLE"&&f.condition!="AUTHOR"&&f.condition!="SUBJECT"){f.condition="ANY"}f.value=getValue("keyword");f.sysid=getValue("page_sysid");f.index=g.z39index;f.code=g.z39code;onHnadlerSvaeBntScreen(null,true);$.post(c,f,function(h){onHnadlerSvaeBntScreen(null,false);if(h.status=="0"){if(h.total>0){if(vPageNameFlag=="??????"){_myComBib.prototype.addData(h.rows)}else{if(vPageNameFlag=="?????????"){_myComBib.prototype.setDataToEditBibGrid("editBibGrid",h.rows)}else{$("#centerDataGridDetail").datagrid("loadData",h.rows)}}if(d){z3950DownLoadToAddEditGrid()}}}else{openMessageDlg(h.message)}},"json")}function z3950DownLoadToAddEditGrid(){if(marcFlagType==0){searchZ3950MarcGird("1")}else{if($("#centerDataGridDetail").length>0){selectEditBibId=0;selectCenterBibId=0;clearGridData("editBibGrid,acqDataGridList,centerDataGridList,orderDataGridList,checkDataGridList,holdDataGridList");var c=$("#centerDataGridDetail").datagrid("getRows");if(c.length>0){for(var b=0;b<c.length;b++){if(c[b].field!="001"){var a=getValue("page-delfld");if(a){if(a.indexOf(c[b].field)<0){$("#editBibGrid").datagrid("appendRow",c[b])}}else{$("#editBibGrid").datagrid("appendRow",c[b])}}}}}_myComBib.prototype.addAttrCtrlNO()}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de