From 00b73f89f540a459fc98cea22cd673a60a42cfec Mon Sep 17 00:00:00 2001 From: Arif Syamsudin Date: Thu, 11 Aug 2016 22:04:45 +0700 Subject: [PATCH] Fixed: Item status not show on reporting modules. --- .../reporting/customs/item_titles_list.php | 20 +++++++++-- sysconfig.inc.php | 34 +++++++++++++++++++ template/default/style.css | 2 +- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/admin/modules/reporting/customs/item_titles_list.php b/admin/modules/reporting/customs/item_titles_list.php index a56bf08..03da7dd 100755 --- a/admin/modules/reporting/customs/item_titles_list.php +++ b/admin/modules/reporting/customs/item_titles_list.php @@ -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'); @@ -261,8 +260,23 @@ function showTitleAuthors($obj_db, $array_data) $_output = $_title.'
'.$_authors.''."\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 diff --git a/sysconfig.inc.php b/sysconfig.inc.php index 2e6a730..b64bf89 100755 --- a/sysconfig.inc.php +++ b/sysconfig.inc.php @@ -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 diff --git a/template/default/style.css b/template/default/style.css index 91eaa1c..a1bd2ca 100755 --- a/template/default/style.css +++ b/template/default/style.css @@ -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%);