Edit D:\rfid\libsystem\page\global\js\z3950.js
var marcFlagType="0";$(function(){enterEvent("z3950kyeword",z3950SearchByCondtion);$("#z3950DataGridList").datagrid({onSelect:onSelectz3950DataGridList})});function onOpenZ3950Dlg(){$("#z3950kyeword").textbox("textbox").focus()}function z3950Search(){$("#z3950_dlg").dialog("open");if(getValue("z3950kyeword").length==0){}}function onSelectz3950DataGridList(a,b){marcFlagType="0";$("#z3950EditBibGrid").datagrid("loadData",b.marcrows)}function z3950SearchByCondtion(){$("#keyword").textbox("textbox").focus().select();var a=base_path+"cat/z3950/query.do";var b={};if(getValue("z3950kyeword").length==0){return openMessageDlg("????????????")}deleteGridData("z3950EditBibGrid");deleteGridData("z3950DataGridList");b.rows=10;b.page=1;b.condition=getValue("z39index");b.value=getValue("z3950kyeword");b.sysid=getValue("page_sysid");$("#z3950DataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){if(c.status=="0"){$("#z3950DataGridList").datagrid("selectRow",0)}else{openMessageDlg(c.message)}},method:"post"})}function searchZ3950MarcGird(e){marcFlagType="1";var h=$("#z3950DataGridList").datagrid("getSelected");if(!h){return openMessageDlg("????????????????,?????????")}var d=$("#z3950DataGridList").datagrid("getRowIndex",h);var c=base_path+"cat/z3950/download.do";var g={};var b=$("#z3950DataGridList").datagrid("getPager").data("pagination").options;var a=b.pageNumber;var f=b.pageSize;g.condition=getValue("z39index");g.value=getValue("z3950kyeword");g.sysid=getValue("page_sysid");g.index=(a-1)*f+parseInt(d)+1;g.code=h.z39code;onHnadlerSvaeBntScreen(null,true);$.post(c,g,function(i){onHnadlerSvaeBntScreen(null,false);if(i.status=="0"){if(i.total>0){$("#z3950EditBibGrid").datagrid("loadData",i.rows);if(e){z3950DownLoadToAddEditGrid()}}}else{openMessageDlg(i.message)}},"json")}function z3950DownLoadToAddEditGrid(){if(marcFlagType==0){searchZ3950MarcGird("1")}else{clearComBibGridData();var c=$("#z3950EditBibGrid").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])}}}}insertCtrlNo();$("#z3950_dlg").dialog("close");setBntIsShowByLibcode(false)}}function z3950DownLoadToCopyEditGrid(){var d=$("#z3950EditBibGrid").datagrid("getSelections");if(d.length>0){for(var c=0;c<d.length;c++){if(d[c].field!="001"){var b=getValue("page_delfld");if(b){if(b.indexOf(d[c].field)<0){$("#editBibGrid").datagrid("appendRow",d[c])}}else{$("#editBibGrid").datagrid("appendRow",d[c])}}}$("#z3950_dlg").dialog("close");var a=$("#editBibGrid").datagrid("getRows");$("#editBibGrid").datagrid("selectRow",a.length-1);$("#editBibGrid").datagrid("scrollTo",a.length-1)}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de