Show
Ignore:
Timestamp:
06/18/08 23:07:33 (4 months ago)
Author:
miker
Message:

add opac_visible flag to config.copy_status; make Reserves status "available" in counts

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/Open-ILS/web/conify/global/config/copy_status.html

    r9474 r9864  
    8888                            if (attr == 'holdable' && typeof n != 'string') 
    8989                                this.setValue(item, 'holdable', n ? 't' : 'f'); 
     90 
     91                            if (attr == 'opac_visible' && typeof n != 'string') 
     92                                this.setValue(item, 'opac_visible', n ? 't' : 'f'); 
    9093 
    9194                        }; 
     
    204207                                                                                  field : "holdable", 
    205208                                                                                  editor : dojox.grid.editors.bool, 
    206                                           get : function (row) { 
    207                                                 var r = window.status_data_model.getRow(row); 
     209                                                                                  get : function (row) { 
     210                                                                                        var r = window.status_data_model.getRow(row); 
    208211                                                                                        if (r) { 
    209                                                         var h = r.holdable; 
    210                                                             if (h == 't' || h === true) return true; 
    211                                                                 return false; 
     212                                                                                                var h = r.holdable; 
     213                                                                                                if (h == 't' || h === true) return true; 
     214                                                                                                return false; 
    212215                                                                                        } 
    213                                           } 
     216                                                                                  } 
     217                                                                                }, 
     218                                                                                { name : "OPAC Visible", 
     219                                                                                  field : "opac_visible", 
     220                                                                                  editor : dojox.grid.editors.bool, 
     221                                                                                  get : function (row) { 
     222                                                                                        var r = window.status_data_model.getRow(row); 
     223                                                                                        if (r) { 
     224                                                                                                var h = r.opac_visible; 
     225                                                                                                if (h == 't' || h === true) return true; 
     226                                                                                                return false; 
     227                                                                                        } 
     228                                                                                  } 
    214229                                                                                } 
    215230                                                                        ]