Skip to content

Commit

Permalink
Fixed: Item status not show on reporting modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
buitenzorg812 committed Aug 11, 2016
1 parent 3cd1316 commit 00b73f8
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
20 changes: 17 additions & 3 deletions admin/modules/reporting/customs/item_titles_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,14 @@
// table spec
$table_spec = 'item AS i
LEFT JOIN biblio AS b ON i.biblio_id=b.biblio_id
LEFT JOIN mst_coll_type AS ct ON i.coll_type_id=ct.coll_type_id
LEFT JOIN mst_item_status AS s ON i.item_status_id=s.item_status_id';
LEFT JOIN mst_coll_type AS ct ON i.coll_type_id=ct.coll_type_id';

// create datagrid
$reportgrid = new report_datagrid();
$reportgrid->setSQLColumn('i.item_code AS \''.__('Item Code').'\'',
'b.title AS \''.__('Title').'\'',
'ct.coll_type_name AS \''.__('Collection Type').'\'',
's.item_status_name AS \''.__('Item Status').'\'',
'i.item_status_id AS \''.__('Item Status').'\'',
'b.call_number AS \''.__('Call Number').'\'', 'i.biblio_id');
$reportgrid->setSQLorder('b.title ASC');

Expand Down Expand Up @@ -261,8 +260,23 @@ function showTitleAuthors($obj_db, $array_data)
$_output = $_title.'<br /><i>'.$_authors.'</i>'."\n";
return $_output;
}
function showStatus($obj_db, $array_data)
{

$q = $obj_db->query('SELECT item_status_name FROM mst_item_status WHERE item_status_id=\''.$array_data[3].'\'');
$d = $q->fetch_row();
$s = $d[0];
$output = $s;

if (!$s) {
$output = __('Available');
}

return $output;
}
// modify column value
$reportgrid->modifyColumnContent(1, 'callback{showTitleAuthors}');
$reportgrid->modifyColumnContent(3, 'callback{showStatus}');
$reportgrid->invisible_fields = array(5);

// put the result into variables
Expand Down
34 changes: 34 additions & 0 deletions sysconfig.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,44 @@ function stripslashes_deep($value)
$sysconf['z3950_source'][1] = array('uri' => 'z3950.loc.gov:7090/voyager', 'name' => 'Library of Congress Voyager');
$sysconf['z3950_SRU_source'][1] = array('uri' => 'http://z3950.loc.gov:7090/voyager', 'name' => 'Library of Congress SRU Voyager');
















/**
* Peer to peer server config
*/
$sysconf['p2pserver'][1] = array('uri' => 'http://127.0.0.1/slims7_cendana', 'name' => 'SLiMS Library');
$sysconf['p2pserver'][2] = array('uri' => 'http://192.168.70.117:8089/cendana', 'name' => 'Perpustakaan XYZ');



















/**
* User and member login method
Expand Down
2 changes: 1 addition & 1 deletion template/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ h1,h2,h3,h4,h5,h6 {
.navbar-social .navbar-inner {
border-top: solid 1px #b0d6e7;
background: #89c1db;
background: -moz-linear-gradient(top, #89c1db 0%, #62accf 100%);
/ background: -moz-linear-gradient(top, #89c1db 0%, #62accf 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#89c1db), color-stop(100%,#62accf));
background: -webkit-linear-gradient(top, #89c1db 0%,#62accf 100%);
background: -o-linear-gradient(top, #89c1db 0%,#62accf 100%);
Expand Down

0 comments on commit 00b73f8

Please sign in to comment.