Edit D:\rfid\libsystem\page\common\js\global_z3950.js
var marcFlagType="0";var z3950Page;var z3950Rows;var z3950TabIndex=5;var z3950Toolbar=[{text:"?????",iconCls:"e-icon fa fa-arrow-left",handler:function(){z3950Controller.prototype.prev()}},"-",{text:"?????",iconCls:"e-icon fa fa-arrow-right",handler:function(){z3950Controller.prototype.next()}}];var z3950Controller=function(){};z3950Controller.prototype.search=function(d,c,b){if(!_setConfig.prototype.check()){return}if(b){z3950TabIndex=b}$("#tabsGrid").tabs("select",z3950TabIndex);$("#keyword").textbox("textbox").focus().select();var a=base_path+"cat/z3950/query.do";var e={};if(getValue("keyword").length==0){return openMessageDlg("????????????")}deleteGridData("z3950DataGridList");if(!d){d=1}if(!c){c=10}z3950Page=d;z3950Rows=c;e.rows=z3950Rows;e.page=z3950Page;e.condition=getValue("bibindex");if(e.condition!="ISBN"&&e.condition!="TITLE"&&e.condition!="AUTHOR"&&e.condition!="SUBJECT"){e.condition="ANY"}e.value=getValue("keyword");e.sysid=cataConfigData.sysid;$("#z3950DataGridList").datagrid({url:a,queryParams:e,onLoadSuccess:function(f){if(f.status=="0"){$("#z3950DataGridList").datagrid("selectRow",0)}else{openMessageDlg(f.message)}},method:"post"})};z3950Controller.prototype.initGrid=function(){var a=$("#z3950DataGridList");if(!a.attr("class")){a.datagrid({iconCls:"e-icon fa fa-table",title:"",toolbar:z3950Toolbar,singleSelect:true,fit:true,fitColumns:true,pagination:false,striped:true,rownumbers:true,onSelect:z3950Controller.prototype.select,columns:[z3950GridColumns]})}};z3950Controller.prototype.searchDetail=function(b){marcFlagType="1";var d=$("#z3950DataGridList").datagrid("getSelected");if(!d){return openMessageDlg("??????????3950??????")}var a=base_path+"cat/z3950/download.do";var c={};c.condition=getValue("bibindex");if(c.condition!="ISBN"&&c.condition!="TITLE"&&c.condition!="AUTHOR"&&c.condition!="SUBJECT"){c.condition="ANY"}c.value=getValue("keyword");c.sysid=cataConfigData.sysid;c.index=d.z39index;c.code=d.z39code;onHnadlerSvaeBntScreen(null,true);$.post(a,c,function(e){onHnadlerSvaeBntScreen(null,false);if(e.status=="0"){if(e.total>0){$("#centerDataGridDetail").datagrid("loadData",e.rows);bibCenterController.prototype.selectCheckCenterGrid();if(b){z3950Controller.prototype.download()}}}else{openMessageDlg(e.message)}},"json")};z3950Controller.prototype.download=function(){var d=$("#z3950DataGridList").datagrid("getSelected");if(!d){return openMessageDlg("??????????3950??????")}if(marcFlagType==0){z3950Controller.prototype.searchDetail("1")}else{if($("#centerDataGridDetail").length>0){selectEditBibId=0;selectCenterBibId=0;bibController.prototype.clear();var c=$("#centerDataGridDetail").datagrid("getRows");if(c.length>0){for(var b=0;b<c.length;b++){if(c[b].field!="001"){var a=cataConfigData.delfld;if(a){if(a.indexOf(c[b].field)<0){$("#editBibGrid").datagrid("appendRow",c[b])}}else{$("#editBibGrid").datagrid("appendRow",c[b])}}}}}bibController.prototype.addAttrCtrlNO()}};z3950Controller.prototype.select=function(a,b){marcFlagType="0";$("#centerDataGridDetail").datagrid("loadData",b.marcrows);bibCenterController.prototype.selectCheckCenterGrid();bibCenterController.prototype.title("z3950????(marc)???")};z3950Controller.prototype.prev=function(){if(z3950Page>1){z3950Page-=1;z3950Controller.prototype.search(z3950Page,z3950Rows)}else{return openMessageDlg("?????????????")}};z3950Controller.prototype.next=function(){z3950Page+=1;z3950Controller.prototype.search(z3950Page,z3950Rows)};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de