diff --git a/admin/admin_template/default-dz/assets/css/style.css b/admin/admin_template/default-dz/assets/css/style.css index b0840044..1549de8a 100644 --- a/admin/admin_template/default-dz/assets/css/style.css +++ b/admin/admin_template/default-dz/assets/css/style.css @@ -1432,6 +1432,7 @@ tr.dataListHeader > td > a { #memberIDList { margin-top: -5px; width: 181px !important; + z-index: 1; } .ajaxDDlist { border-color: #ddd !important; diff --git a/admin/admin_template/default/assets/css/style.css b/admin/admin_template/default/assets/css/style.css index dee8ce32..17869517 100644 --- a/admin/admin_template/default/assets/css/style.css +++ b/admin/admin_template/default/assets/css/style.css @@ -1432,6 +1432,7 @@ tr.dataListHeader > td > a { #memberIDList { margin-top: -5px; width: 181px !important; + z-index: 1; } .ajaxDDlist { border-color: #ddd !important; diff --git a/admin/modules/bibliography/import.php b/admin/modules/bibliography/import.php index 401a1fec..eeae576e 100755 --- a/admin/modules/bibliography/import.php +++ b/admin/modules/bibliography/import.php @@ -265,7 +265,7 @@ // field enclosed $form->addTextField('text', 'fieldEnc', __('Field Enclosed With').'*', ''.htmlentities('"').'', 'style="width: 10%;"'); // number of records to import -$form->addTextField('text', 'recordNum', __('Number of Records To Export (0 for all records)'), '0', 'style="width: 10%;"'); +$form->addTextField('text', 'recordNum', __('Number of Records To Import (0 for all records)'), '0', 'style="width: 10%;"'); // records offset $form->addTextField('text', 'recordOffset', __('Start From Record'), '1', 'style="width: 10%;"'); // output the form diff --git a/admin/modules/bibliography/index.php b/admin/modules/bibliography/index.php index ceab86be..6653c2ab 100755 --- a/admin/modules/bibliography/index.php +++ b/admin/modules/bibliography/index.php @@ -375,12 +375,12 @@ function getimagesizefromstring($string_data) $itemcode .= $chars[1]; $item_insert_sql = sprintf("INSERT IGNORE INTO item (biblio_id, item_code, call_number, coll_type_id) - VALUES (%d, '%s', '%s', %d)", $updateRecordID?$updateRecordID:$last_biblio_id, $itemcode, $data['call_number'], $_POST['collTypeID']); + VALUES (%d, '%s', '%s', %d)", isset($updateRecordID)?$updateRecordID:$last_biblio_id, $itemcode, $data['call_number'], $_POST['collTypeID']); @$dbs->query($item_insert_sql); } } - echo ''; + echo ''; exit(); } exit(); diff --git a/admin/modules/bibliography/item_import.php b/admin/modules/bibliography/item_import.php index cb6a5329..782670fa 100755 --- a/admin/modules/bibliography/item_import.php +++ b/admin/modules/bibliography/item_import.php @@ -215,7 +215,7 @@ // field enclosed $form->addTextField('text', 'fieldEnc', __('Field Enclosed With').'*', ''.htmlentities('"').'', 'style="width: 10%;"'); // number of records to import -$form->addTextField('text', 'recordNum', __('Number of Records To Export (0 for all records)'), '0', 'style="width: 10%;"'); +$form->addTextField('text', 'recordNum', __('Number of Records To Import (0 for all records)'), '0', 'style="width: 10%;"'); // records offset $form->addTextField('text', 'recordOffset', __('Start From Record'), '1', 'style="width: 10%;"'); // output the form diff --git a/admin/modules/bibliography/pop_biblio.php b/admin/modules/bibliography/pop_biblio.php index 6cc4c481..2f35128d 100755 --- a/admin/modules/bibliography/pop_biblio.php +++ b/admin/modules/bibliography/pop_biblio.php @@ -44,6 +44,10 @@ $_POST['itemID'] = $_GET['itemID']; } +if (isset($_GET['itemCollID'])) { + $_POST['itemCollID'] = $_GET['itemCollID']; +} + $_GET['inPopUp'] = true; ob_start(); diff --git a/admin/modules/circulation/member_loan_hist.php b/admin/modules/circulation/member_loan_hist.php index b3cd0669..adaf3e3d 100755 --- a/admin/modules/circulation/member_loan_hist.php +++ b/admin/modules/circulation/member_loan_hist.php @@ -62,7 +62,7 @@ 'l.item_code AS \''.__('Item Code').'\'', 'b.title AS \''.__('Title').'\'', 'l.loan_date AS \''.__('Loan Date').'\'', - 'IF(return_date IS NULL, \''.__('Not Returned Yet').'\', return_date) AS \''.__('Returned Date').'\''); + 'IF(is_return = 0, \''.__('Not Returned Yet').'\', return_date) AS \''.__('Returned Date').'\''); $datagrid->setSQLorder("l.loan_date DESC"); $criteria = 'l.member_id=\''.$dbs->escape_string($memberID).'\' '; diff --git a/admin/modules/membership/member_AJAX_response.php b/admin/modules/membership/member_AJAX_response.php index cbf21e74..e8712883 100755 --- a/admin/modules/membership/member_AJAX_response.php +++ b/admin/modules/membership/member_AJAX_response.php @@ -21,7 +21,6 @@ // key to authenticate define('INDEX_AUTH', '1'); -sleep(1); require '../../../sysconfig.inc.php'; // IP based access limitation require LIB.'ip_based_access.inc.php'; diff --git a/admin/modules/reporting/customs/overdued_list.php b/admin/modules/reporting/customs/overdued_list.php index 2eec8c3d..1e11924d 100755 --- a/admin/modules/reporting/customs/overdued_list.php +++ b/admin/modules/reporting/customs/overdued_list.php @@ -117,7 +117,7 @@ // create datagrid $reportgrid = new report_datagrid(); $reportgrid->setSQLColumn('m.member_id AS \''.__('Member ID').'\''); - $reportgrid->setSQLorder('l.due_date DESC'); + $reportgrid->setSQLorder('MAX(l.due_date) DESC'); $reportgrid->sql_group_by = 'm.member_id'; $overdue_criteria = ' (l.is_lent=1 AND l.is_return=0 AND TO_DAYS(due_date) < TO_DAYS(\''.date('Y-m-d').'\')) '; diff --git a/admin/modules/stock_take/finish.php b/admin/modules/stock_take/finish.php index 431f5e45..492f3a57 100755 --- a/admin/modules/stock_take/finish.php +++ b/admin/modules/stock_take/finish.php @@ -100,7 +100,7 @@ echo ''; echo ''; echo ' - + '; echo ''."\n"; while ($lost_item_d = $lost_item_q->fetch_row()) { diff --git a/js/form.js b/js/form.js index 5be6b279..375b00f1 100755 --- a/js/form.js +++ b/js/form.js @@ -147,7 +147,7 @@ var showDropDown = function(strURL, strElmntID, strAddParams) { var listObj = $('#'+strElmntID + 'List'); if (inputVal.length < 4) { listObj.hide(); return; } // populate list ID - jsonToList(strURL, strElmntID, 'inputSearchVal=' + escape(inputVal) + '&' + strAddParams); + jsonToList(strURL, strElmntID, 'inputSearchVal=' + encodeURIComponent(inputVal) + '&' + strAddParams); if (noResult) { return; } // show list listObj.css({'left': inputObjXY.left+'px', 'width': inputObjWidth+'px', 'display': 'block'}); diff --git a/lib/minigalnano/createthumb.php b/lib/minigalnano/createthumb.php index 4b81d1a7..d1000314 100755 --- a/lib/minigalnano/createthumb.php +++ b/lib/minigalnano/createthumb.php @@ -91,7 +91,7 @@ function genContentType($imagefilename) genContentType($imagefilename); $target = imagecreatetruecolor($res_width,$res_height); -if (preg_match("/.jpg$/i", $imagefilename)) $source = imagecreatefromjpeg($imagefilename); +if (preg_match("/.jpg$|.jpeg$/i", $imagefilename)) $source = imagecreatefromjpeg($imagefilename); if (preg_match("/.gif$/i", $imagefilename)) $source = imagecreatefromgif($imagefilename); if (preg_match("/.png$/i", $imagefilename)) $source = imagecreatefrompng($imagefilename); @@ -105,7 +105,7 @@ function genContentType($imagefilename) imagedestroy($source); if ($cache['exist'] == false) { - if (preg_match("/.jpg$/i", $imagefilename)) { + if (preg_match("/.jpg$|.jpeg$/i", $imagefilename)) { imagejpeg($target,null,90); imagejpeg($target,$cache['file'],90); } diff --git a/sysconfig.inc.php b/sysconfig.inc.php index a3fb9cd6..894e766a 100755 --- a/sysconfig.inc.php +++ b/sysconfig.inc.php @@ -45,7 +45,7 @@ function stripslashes_deep($value) $_REQUEST = array_map('stripslashes_deep', $_REQUEST); } // turn off all error messages for security reason -@ini_set('display_errors', true); +@ini_set('display_errors', false); // check if safe mode is on if ((bool) ini_get('safe_mode')) { define('SENAYAN_IN_SAFE_MODE', 1); diff --git a/template/classic/detail_template.php b/template/classic/detail_template.php index ef799948..cd307cc3 100644 --- a/template/classic/detail_template.php +++ b/template/classic/detail_template.php @@ -170,7 +170,7 @@ - +
@@ -179,4 +179,4 @@
- \ No newline at end of file + diff --git a/template/default/detail_template.php b/template/default/detail_template.php index 03c1cbfb..5486d624 100644 --- a/template/default/detail_template.php +++ b/template/default/detail_template.php @@ -10,7 +10,7 @@ ============================================= -->

- +
' . __('Item Code') . '' . __('Document Title') . '' . __('Title') . ' ' . __('Classification') . '