Dev#32668 bib form custom fields
Merge request reports
Activity
Filter activity
194 194 195 195 function bibviewAction() { 196 196 $id_bib = (int)$this->_request->getParam('id'); 197 if(!$id_bib || $id_bib==0) { 197 198 if (!$id_bib || $id_bib == 0) { 199 $this->_redirect('opac/bib/index'); 200 return; 201 } 202 203 if (!($bib = Class_Bib::getLoader()->find($id_bib))) { 272 272 273 273 protected function _byCustomFields($custom_fields) { 274 274 275 foreach ($custom_fields as $id => $value) { 275 276 $this->_select 276 277 ->join( 277 278 [ "cfv$id" => 'custom_field_values' ], 278 279 "cms_article.ID_ARTICLE = cfv$id.model_id AND cfv$id.custom_field_id = $id", 279 280 [] 280 ) 281 ->where("cfv$id.value = ?", $value); 281 ); 282 if (Class_CustomField::findTypeForCustomFieldId($id) == Class_CustomField_Meta::MULTI_CHECKBOX) { 283 284 $this->_select 285 ->where(" cfv$id.value like ?", "%;".$value.";%");
Please register or sign in to reply