Lines Matching refs:data

41      * Returns an array of keys for data that is shared between references and notes.
46 * Returns an array of keys for data that is specific to references.
154 private $data;
159 public function __construct($data) {
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) {
277 $data = new refnotes_renderer_data($note->getData());
279 $text = $data->get('note-text', 'title');
282 $text = $data->getLongest();
285 if ($url = $data->get('url')) {
959 $data = new refnotes_renderer_data($note->getData());
961 if (!$data->has('title')) {
970 $title = $this->renderTitle($data);
977 $authors = $this->renderAuthors($data);
984 $publication = $this->renderPublication($data, !empty($authors));
986 if ($data->has('journal')) {
989 $subtitle = $this->renderJournal($data);
991 elseif ($data->has('booktitle')) {
994 $subtitle = $this->renderBookTitle($data);
1010 $text = $this->renderBook($data, $title);
1029 protected function renderTitle($data) {
1030 $text = $data->get('title') . '.';
1032 if ($url = $data->get('url')) {
1042 protected function renderAuthors($data) {
1043 $text = $data->get('authors', 'author');
1046 if ($published = $this->renderPublished($data)) {
1059 protected function renderPublished($data, $useMonth = true) {
1060 $text = $data->get('published');
1063 if ($text = $data->get('year')) {
1064 if ($useMonth && $month = $data->get('month')) {
1076 protected function renderPublication($data, $authors) {
1079 if ($format = $data->get('format')) {
1083 $address = $data->get('address');
1084 $publisher = $data->get('publisher');
1095 if (!$authors && ($published = $this->renderPublished($data))) {
1099 if ($pages = $this->renderPages($data, array('note-pages', 'note-page', 'pages', 'page'))) {
1103 if ($isbn = $data->get('isbn')) {
1106 elseif ($issn = $data->get('issn')) {
1116 if ($accessed = $data->get('accessed')) {
1133 protected function renderPages($data, $key) {
1137 if ($text = $data->get($k)) {
1152 protected function renderJournal($data) {
1153 $text = '//' . $data->get('journal') . '//';
1155 if ($volume = $data->get('volume')) {
1165 protected function renderBook($data, $title) {
1168 if ($chapter = $data->get('chapter')) {
1172 if ($edition = $data->get('edition')) {
1182 protected function renderBookTitle($data) {
1183 return '//' . $data->get('booktitle') . '//';
1190 $data = new refnotes_renderer_data($reference->getData());
1192 if (!$this->checkReferenceData($data)) {
1196 $authors = $data->get('ref-authors', 'ref-author');
1199 $authors = $data->get('authors', 'author');
1207 $html = $this->renderReferenceExtra($data);
1211 if ($data->isPositive('direct')) {
1259 protected function renderReferenceExtra($data) {
1262 if ($published = $this->renderPublished($data, false)) {
1266 if ($pages = $this->renderPages($data, array('page', 'pages'))) {
1297 protected function checkReferenceData($data) {
1298 $authors = $data->has('ref-authors', 'ref-author', 'authors', 'author');
1299 $year = $data->has('published', 'year');
1300 $page = $data->has('page', 'pages');