1 dump('entering patron.items.js\n');
3 if (typeof patron == 'undefined') patron = {};
4 patron.items = function (params) {
6 JSAN.use('util.error'); this.error = new util.error();
7 JSAN.use('util.network'); this.network = new util.network();
8 this.OpenILS = {}; JSAN.use('OpenILS.data'); this.OpenILS.data = new OpenILS.data(); this.OpenILS.data.init({'via':'stash'});
11 patron.items.prototype = {
13 'init' : function( params ) {
17 obj.session = params['session'];
18 obj.patron_id = params['patron_id'];
20 JSAN.use('circ.util');
21 var columns = circ.util.columns(
23 'title' : { 'hidden' : false, 'flex' : '3' },
24 'xact_start' : { 'hidden' : false },
25 'due_date' : { 'hidden' : false },
26 'renewal_remaining' : { 'hidden' : false },
30 JSAN.use('util.list'); obj.list = new util.list('item_list');
34 'map_row_to_column' : circ.util.std_map_row_to_column(),
38 JSAN.use('util.controller'); obj.controller = new util.controller();
44 function() { alert('Not Yet Implemented'); }
51 'cmd_item_reprint' : [
62 'retrieve' : function() {
63 if (window.xulG && window.xulG.checkouts) {
64 this.checkouts = window.xulG.checkouts;
66 this.checkouts = this.network.request(
67 api.blob_checkouts_retrieve.app,
68 api.blob_checkouts_retrieve.method,
69 [ this.session, this.patron_id ]
73 for (var i in this.checkouts) {
78 'circ' : this.checkouts[i].circ,
79 'mvr' : this.checkouts[i].record,
80 'acp' : this.checkouts[i].copy
89 dump('exiting patron.items.js\n');