Lines Matching defs:bibtex_key
260 public function printReference($bibtex_key) {
266 $rawBibtexEntry = $this->sqlite->res2arr($this->sqlite->query("SELECT entry FROM bibtex WHERE key=?",$bibtex_key));
274 //$ref = $this->_bibtex_references[$this->_bibtex_keys[$bibtex_key]];
275 $rawBibtexEntry = $this->_bibtex_references[$bibtex_key];
320 $pdffilename = mediaFN($this->_conf['pdfdir'][0]) . "/" . $bibtex_key . ".pdf";
324 ml($pdflinkname) . "/" . $bibtex_key . ".pdf" . '">PDF</a>';
472 public function printCitekey($bibtex_key) {
473 if (!array_key_exists($bibtex_key,$this->_bibtex_keysCited)) {
475 $this->_bibtex_keysCited[$bibtex_key] = $this->_currentKeyNumber;
479 $rawBibtexEntry = $this->sqlite->res2arr($this->sqlite->query("SELECT entry FROM bibtex WHERE key=?",$bibtex_key));
481 return $bibtex_key;
491 if (empty($this->_bibtex_references[$bibtex_key])) {
492 return $bibtex_key;
494 $ref = $this->_bibtex_references[$this->_bibtex_keys[$bibtex_key]];
498 $bibtex_key = $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);
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'] . ", ";
514 $bibtex_key = $ref['editors'][0]['last'] . ", ";
516 $bibtex_key .= $ref['year'];
519 $bibtex_key = $this->_bibtex_keysCited[$bibtex_key];
523 $bibtex_key = $this->_bibtex_keysCited[$bibtex_key];
526 return $bibtex_key;