Lines Matching refs:ref
216 foreach($this->_bibtex_references as $refno => $ref) {
217 if (is_array($ref) && array_key_exists('cite', $ref)) {
218 $this->_bibtex_keys[$ref['cite']] = $refno;
272 $ref = $this->_parser->data[0];
281 $ref = $this->_parser->data[0];
283 if (empty($ref)) {
288 foreach ($ref as $key => $value) {
488 $ref = $this->_parser->data[0];
494 $ref = $this->_bibtex_references[$this->_bibtex_keys[$bibtex_key]];
498 $bibtex_key = $ref['authors'][0]['last'];
499 if ($ref['authors'][0]['last'] == '') {
500 $bibtex_key = $ref['editors'][0]['last'];
502 $bibtex_key .= $ref['year'];
505 $bibtex_key = substr($ref['authors'][0]['last'],0,3);
506 if ($ref['authors'][0]['last'] == '') {
507 $bibtex_key = substr($ref['editors'][0]['last'],0,3);
509 $bibtex_key .= substr($ref['year'],2,2);
512 $bibtex_key = $ref['authors'][0]['last'] . ", ";
513 if ($ref['authors'][0]['last'] == '') {
514 $bibtex_key = $ref['editors'][0]['last'] . ", ";
516 $bibtex_key .= $ref['year'];