Edit D:\rfid\libsystem\page\catalogue\js\com_pubilc_bibliography.js
var selectEditBibId=0;var selectCenterBibId=0;var initJson;var tabGrid_title="(???)";var noEditBibGridByCode=false;$(function(){initJson=[{code:"page_sysid",key:"sysid",condition:"type",value:"0",linkage:[{code:"page_template",key:"template",condition:"sysid"}]},{code:"page_ctrlno",key:"ctrlno",condition:"libcode",value:vLibcode},{code:"page_z3950",key:"z3950",condition:"libcode",value:vLibcode},{code:"page_editmodel",key:"editmodel"},{code:"page_finsources",key:"finsources"},{code:"page_mediatype",key:"mediatype"},{code:"page_binding",key:"binding"},{code:"page_docsources",key:"docsources"},{code:"page_ncy,orderbib_ncy",key:"ncy"},{code:"page_bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"page_location",key:"location",condition:"libcode",value:vLibcode},{code:"page_doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"libcodeSelect,page_libcode",key:"libcode",condition:"code",value:vLibcode},{code:"operid",key:"operid"}];_comGridObj.prototype.events()});var _comGridObj=function(){};_comGridObj.prototype.clear=function(){selectEditBibId=0;selectCenterBibId=0;clearGridData("editBibGrid,centerDataGridDetail,acqDataGridList,centerDataGridList,orderDataGridList,checkDataGridList,holdDataGridList");$("#tabsGrid").tabs("select",0)};_comGridObj.prototype.events=function(){var a=$("#acqDataGridList");$("#acqDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onSelect:_acqGridObj.prototype.select,onHeaderContextMenu:function(c,b){c.preventDefault();if(!bindTableMenu){createColumnMenu(a)}bindTableMenu.menu("show",{left:c.pageX,top:c.pageY})}});$("#tabsGrid").tabs({onSelect:_tabsGridObj.prototype.select});$("#centerDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onSelect:_centerGridObj.prototype.select});$("#holdDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode})};var _acqGridObj=function(){};_acqGridObj.prototype.select=function(a,b){if(!isUpdateByLibcode(b.libcode)){_linkbuttonObj.prototype.status(true)}else{_linkbuttonObj.prototype.status(false)}_detailData.prototype.set(b.id)};var _centerGridObj=function(){};_centerGridObj.prototype.select=function(a,b){if(!isUpdateByLibcode(b.libcode)){$("#centerOrderBibRecord").linkbutton({disabled:true});$("#centerCheckBibRecord").linkbutton({disabled:true})}else{$("#centerOrderBibRecord").linkbutton({disabled:false});$("#centerCheckBibRecord").linkbutton({disabled:false})}$("#centerOrderBibRecord").show();$("#centerCheckBibRecord").show();$("#centerOrderCheckBibRecord").show();selectCenterBibId=b.id;$(".showBibGrid-tip").html("??????????"+b.id+"??");_detailData.prototype.loadData(b.id,"centerDataGridDetail");$("#centerDataGridDetail").datagrid("getPanel").panel("setTitle","???????????")};_centerGridObj.prototype.loadData=function(){var a=base_path+"lib/biblios/page.do";var d={};_myComBib.prototype.getParam(d,null,null,"type");if(d.value){var b=0;var c=$("#centerDataGridList").datagrid("getSelected");if(c){b=$("#centerDataGridList").datagrid("getRowIndex",c)}$("#centerDataGridList").datagrid({url:a,queryParams:d,onLoadSuccess:function(e){if(e.total>0){$("#centerDataGridList").datagrid("selectRow",b)}else{$("#tabsGrid").tabs("select",0)}},method:"post"})}};var _tabsGridObj=function(){};_tabsGridObj.prototype.select=function(d,a){$("#centerOrderBibRecord").hide();$("#centerOrderCheckBibRecord").hide();$("#centerCheckBibRecord").hide();$("#searchZ3950MarcGird").hide();$("#z3950DownLoadToAddEditGrid").hide();$("#checkHoldlist0").hide();$("#checkHoldlist1").hide();var c=null;if(a==0){tabGrid_title="(???)";$("#orderBibRecord").show();$("#orderCheckBibRecord").show();$("#checkBibRecord").show()}if(a==1){tabGrid_title="(???)";$("#orderBibRecord").hide();$("#orderCheckBibRecord").hide();$("#checkBibRecord").hide();_centerGridObj.prototype.loadData()}var b="order";if(a==2){c="???";$("#cancelOrderBibRecord").show();$("#deleteOrderBib").show();$("#deleteCheckBib").hide();if(tabGrid_title=="(???)"){$("#centerOrderBibRecord").show();$("#centerCheckBibRecord").show();$("#centerOrderCheckBibRecord").show()}}else{if(a==3){b="check";c="???";$("#cancelOrderBibRecord").hide();$("#deleteOrderBib").hide();$("#deleteCheckBib").show()}else{if(a==4){$("#cancelOrderBibRecord").hide();$("#deleteOrderBib").hide();$("#deleteCheckBib").hide();$("#checkHoldlist0").show();$("#checkHoldlist1").show();b="hold";c="???"}else{if(a==5){$("#z3950DataGridList").datagrid("selectRow",0)}}}}_tabsGridObj.prototype.setTitle(a,b,c)};_tabsGridObj.prototype.setTitle=function(b,d,f){var h=selectEditBibId;if(tabGrid_title=="(???)"){h=selectCenterBibId}_comGridObj.prototype.loadData(h,d);if(f){var g=tabGrid_title+f+"???";var c=$("#tabsGrid").tabs("getTab",b);$("#tabsGrid").tabs("update",{tab:c,options:{title:g}})}else{if(b==0||b==1){var e=["","","???","???","???"];for(var a=2;a<=4;a++){var g=tabGrid_title+e[a]+"???";var c=$("#tabsGrid").tabs("getTab",a);$("#tabsGrid").tabs("update",{tab:c,options:{title:g}})}}}};function copyFLdToLeftScreen(e){var d=$("#centerDataGridDetail").datagrid("getSelections");if(e){d=e}if(d.length>0){for(var c=0;c<d.length;c++){if(d[c].field=="HEA"){continue}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])}}}var a=$("#editBibGrid").datagrid("getRows");$("#editBibGrid").datagrid("selectRow",a.length-1);$("#editBibGrid").datagrid("scrollTo",a.length-1)}}function rightToLeftScreen(){var c=$("#centerDataGridDetail").datagrid("getRows");if(c.length>0){selectEditBibId=0;clearGridData("editBibGrid");for(var b=0;b<c.length;b++){if(c[b].field=="HEA"){continue}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()}function mergeFldToLeftScreen(){var a=getValue("page_savefld");var d=[];var f;var e=$("#centerDataGridDetail").datagrid("getSelections");var c=$("#editBibGrid").datagrid("getRows");if(a){if(c.length>0){for(var b=0;b<c.length;b++){if(c[b].field=="HEA"){f=c[b];continue}if(a.indexOf(c[b].field)>-1){d.push(c[b])}}}if(e.length>0){for(var b=0;b<e.length;b++){if(a.indexOf(e[b].field)<0){d.push(e[b])}}}}else{d=e}d.sort(function(h,g){if(h.field>g.field){return 1}if(h.field<g.field){return -1}return 0});if(f){d.splice(0,0,f)}$("#editBibGrid").datagrid("loadData",d);$("#editBibGrid").datagrid("selectRow",d.length-1);$("#editBibGrid").datagrid("scrollTo",d.length-1)}function addSearchCondtion(){if($(".add-condtion").is(":hidden")){$(".add-condtion").show();$("#addSearchCondtion").linkbutton({text:"?????????????"})}else{$(".add-condtion").hide();$("#addSearchCondtion").linkbutton({text:"?????????????"});setValue("titlekey","");setValue("authorkey","")}}function chckeHoldListByFilter(c){var f=selectEditBibId;if(tabGrid_title=="(???)"){f=selectCenterBibId}if(f>0){var b=0;var e=$("#holdDataGridList").datagrid("getSelected");if(e){b=$("#holdDataGridList").datagrid("getRowIndex",e)}var a=base_path+"hld/holding/page.do";var d={};d.bibid=f;d.rows=10;d.page=1;d.orderBy=" id desc ";if(c==0){d.libcode=vLibcode}$("#holdDataGridList").datagrid({url:a,queryParams:d,onLoadSuccess:function(g){if(g.total>0&&g.total>b){$("#holdDataGridList").datagrid("selectRow",b)}else{if(g.total>0){$("#holdDataGridList").datagrid("selectRow",0)}}},method:"post"})}};
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de