Lines Matching refs:data
49 public function render($mode, Doku_Renderer $renderer, $data)
52 $data['id'] = $resolver->cleanID($data['id']);
55 $publication = $resolver->getData($data['id']);
58 $url = $resolver->getFallbackURL($data['id']);
59 $title = empty($data['title']) ? $data['id'] : $data['title'];
66 if (!empty($data['title'])) $publication['title'] = $data['title'];
87 * Render the given data on the XHTML renderer
91 * @param array $data
95 protected function renderXHTML($data, $renderer)
97 $renderer->doc .= '<div class="plugin_doi ' . hsc($data['type']) . '">';
98 $renderer->externallink($data['url'], $data['title']);
100 if ($data['published']) {
101 $renderer->doc .= ' <span>(' . hsc($data['published']) . ')</span>';
105 if ($data['authors']) {
108 }, $data['authors']);
111 if ($data['journal']) {
112 $journal = $data['journal'];
113 $journal .= ' ' . join('/', array_filter([$data['volume'] ?? null, $data['issue'] ?? null]));
115 if ($data['page']) {
116 $journal .= ' <i>p' . hsc($data['page']) . '</i>';
123 if ($data['publisher']) {
124 $renderer->doc .= '<span class="publisher">' . hsc($data['publisher']) . '</span>';
126 $renderer->doc .= ' <code class="id">' . $data['idtype'] . ':' . hsc($data['id']) . '</code>';
133 * Render the given data on any renderer
137 * @param array $data
141 protected function renderAny($data, $renderer)
144 $renderer->externallink($data['url'], $data['title']);
146 if ($data['published']) {
147 $renderer->cdata(' (' . hsc($data['published']) . ')');
151 if ($data['authors']) {
152 $len = count($data['authors']);
155 $renderer->cdata($data['authors'][$i]);
162 if ($data['journal']) {
163 $journal = $data['journal'];
164 $journal .= ' ' . join('/', array_filter([$data['volume'] ?? null, $data['issue'] ?? null]));
168 if ($data['page']) {
171 $renderer->cdata('p' . $data['page']);
177 if ($data['publisher']) {
178 $renderer->cdata($data['publisher']);
182 $renderer->cdata($data['idtype'] . ':' . hsc($data['id']));