Lines Matching refs:this

30         $this->namespace = $namespace;
37 return $this->namespace->getStyle($name);
78 $this->referenceRenderer = $this->createRenderer($this->getStyle('reference-render'));
79 $this->noteRenderer = $this->createRenderer($this->getStyle('note-render'));
88 $renderer = new refnotes_harvard_renderer($this->namespace);
92 $renderer = new refnotes_basic_renderer($this->namespace);
103 return $this->referenceRenderer->getReferenceSharedDataSet();
110 return $this->referenceRenderer->getReferencePrivateDataSet();
117 return $this->referenceRenderer->renderReference($mode, $reference);
125 $style = $this->getStyle('notes-separator');
140 return $this->noteRenderer->renderNoteText($note);
147 return $this->noteRenderer->renderNote($mode, $note, $reference);
160 $this->data = $data;
171 if (array_key_exists($key, $this->data)) {
180 return array_key_exists($key, $this->data);
192 if (array_key_exists($key, $this->data)) {
193 $result = $this->data[$key];
201 return array_key_exists($key, $this->data) ? $this->data[$key] : '';
213 if (array_key_exists($key, $this->data) && (strlen($result) < strlen($this->data[$key]))) {
214 $result = $this->data[$key];
219 foreach ($this->data as $value) {
236 return in_array(strtolower($this->get($key)), $lookup);
264 $doc = $this->renderInlineReference($reference);
267 $doc = $this->renderRegularReference($mode, $reference);
300 $doc = $this->renderNoteXhtml($note, $reference);
304 $doc = $this->renderNoteOdt($note, $reference);
315 $html = '<div class="' . $this->renderNoteClass() . '">' . DOKU_LF;
316 $html .= $this->renderBackReferences($note, $reference);
321 $this->rendered = true;
330 $this->rendered = true;
339 return ($reference->getAttribute('use-' . $name) === false) ? $default : $this->getStyle($name);
346 $baseStyle = $this->getInlineReferenceStyle($reference, 'reference-base', 'text');
347 $fontWeightStyle = $this->getInlineReferenceStyle($reference, 'reference-font-weight', 'normal');
348 $fontStyle = $this->getInlineReferenceStyle($reference, 'reference-font-style', 'normal');
349 $formatStyle = $this->getInlineReferenceStyle($reference, 'reference-format', 'none');
351 list($baseOpen, $baseClose) = $this->renderBase($baseStyle);
352 list($fontOpen, $fontClose) = $this->renderFont($fontWeightStyle, 'normal', $fontStyle);
353 list($formatOpen, $formatClose) = $this->renderFormat($formatStyle);
370 $doc = $this->renderRegularReferenceXhtml($reference);
374 $doc = $this->renderRegularReferenceOdt($reference);
387 $class = $this->renderReferenceClass();
389 list($baseOpen, $baseClose) = $this->renderReferenceBase();
390 list($fontOpen, $fontClose) = $this->renderReferenceFont();
391 list($formatOpen, $formatClose) = $this->renderReferenceFormat($reference);
395 $html .= $formatOpen . $this->renderReferenceId($reference) . $formatClose;
411 // Check to see if this note has been seen before
413 if (array_search($noteId, $this->renderedNoteId) === false) {
415 $this->renderedNoteId[] = $noteId;
426 // Seen this one before - just reference it FIXME: style isn't correct
442 $backRefFormat = $this->getStyle('back-ref-format');
446 list($formatOpen, $formatClose) = $this->renderNoteIdFormat();
449 list($baseOpen, $baseClose) = $this->renderNoteIdBase();
450 list($fontOpen, $fontClose) = $this->renderNoteIdFont();
454 $html .= $formatOpen . $this->renderNoteId($note) . $formatClose;
461 $backRefCaret = $this->renderBackRefCaret($singleReference);
465 $separator = $this->renderBackRefSeparator();
467 list($baseOpen, $baseClose) = $this->renderBackRefBase();
468 list($fontOpen, $fontClose) = $this->renderBackRefFont();
481 $html .= $formatOpen . $this->renderBackRefId($reference[$r], $r, $singleReference) . $formatClose;
498 switch ($this->getStyle('note-preview')) {
519 return $this->renderBase($this->getStyle('reference-base'));
526 return $this->renderFont('reference-font-weight', 'normal', 'reference-font-style');
533 $result = $this->renderFormat($this->getStyle('reference-format'));
535 if ($this->getReferenceGrouping($reference)) {
538 $result = array($result[0], $this->renderReferenceGroupSeparator());
542 $result = array('', $this->renderReferenceGroupSeparator());
560 in_array($this->getStyle('reference-group'), array(',', 's'));
567 $style = $this->getStyle('reference-group');
589 $idStyle = $this->getStyle('refnote-id');
594 switch ($this->getStyle('multi-ref-id')) {
604 $html = $this->convertToStyle($id, $idStyle);
616 switch ($this->getStyle('note-font-size')) {
629 switch ($this->getStyle('note-text-align')) {
646 return $this->renderBase($this->getStyle('note-id-base'));
653 return $this->renderFont('note-id-font-weight', 'normal', 'note-id-font-style');
660 $style = $this->getStyle('note-id-format');
667 $result = $this->renderFormat($style);
678 $idStyle = $this->getStyle('refnote-id');
683 $html = $this->convertToStyle($note->getId(), $idStyle);
693 switch ($this->getStyle('back-ref-caret')) {
714 return $this->renderBase($this->getStyle('back-ref-base'));
721 return $this->renderFont('back-ref-font-weight', 'bold', 'back-ref-font-style');
730 $style = $this->getStyle('back-ref-separator');
742 $style = $this->getStyle('back-ref-format');
745 $result = $this->convertToLatin($index + 1, $style);
761 $result = $this->renderReferenceId($reference);
765 if ($singleReference && ($this->getStyle('back-ref-caret') == 'merge')) {
792 list($weightOpen, $weightClose) = $this->renderFontWeight($this->getStyle($weight), $defaultWeight);
793 list($styleOpen, $styleClose) = $this->renderFontStyle($this->getStyle($style));
856 $result = $this->convertToLatin($id, $style);
861 $result = $this->convertToRoman($id, $style);
970 $title = $this->renderTitle($data);
977 $authors = $this->renderAuthors($data);
984 $publication = $this->renderPublication($data, !empty($authors));
989 $subtitle = $this->renderJournal($data);
994 $subtitle = $this->renderBookTitle($data);
1010 $text = $this->renderBook($data, $title);
1046 if ($published = $this->renderPublished($data)) {
1095 if (!$authors && ($published = $this->renderPublished($data))) {
1099 if ($pages = $this->renderPages($data, array('note-pages', 'note-page', 'pages', 'page'))) {
1192 if (!$this->checkReferenceData($data)) {
1193 return $this->renderBasicReferenceId($reference);
1207 $html = $this->renderReferenceExtra($data);
1209 list($formatOpen, $formatClose) = $this->renderReferenceParentheses();
1214 if ($this->getReferenceGrouping($reference)) {
1218 $html .= $this->renderReferenceGroupSeparator();
1224 if ($this->getReferenceGrouping($reference)) {
1227 $formatClose = $this->renderReferenceGroupSeparator();
1232 $formatClose = $this->renderReferenceGroupSeparator();
1262 if ($published = $this->renderPublished($data, false)) {
1266 if ($pages = $this->renderPages($data, array('page', 'pages'))) {
1281 $style = $this->getStyle('reference-format');
1284 return $this->renderFormat($style);