Hello,
Drupal newbie here. I wrote a quick plugin for BibTeX format. It was pretty much based on the JSON code.
Here is my content type setup:
- Author field: text - textfield - unlimited values (for multiple authors) - views custom label: author
- Entry type field: text - textfield (a field to indicate the BibTeX entry type, i.e: book, article, etc)
- Year field: text - textfield - views custom label: year
Some limitation compared to other formats: field output is always 'normal'; there's only one theme "simple"
Please help review it if you have time. Hopefully it will be helpful for some :)
Cheers.
Comment | File | Size | Author |
---|---|---|---|
views_datasource-7.x-1.x-bibtex.patch | 22.61 KB | BPm | |
views_datasource-6.x-1.x-bibtex.patch | 20.06 KB | BPm |
Comments
Comment #1
Renee S CreditAttribution: Renee S commentedComment #2
Renee S CreditAttribution: Renee S commentedThese work for me!
Comment #3
yannickooThanks so much for this patch! If you are new to Drupal check out the Drupal coding standards. There are missing spaces after
if
andforeach
etc.Why did you use the
2.0
as API version and not3.0
?This will only works for nodes? Maybe we should move with the times and support every entity type here.
We can remove the comment here.
Comment #4
anthonylindsay CreditAttribution: anthonylindsay commentedHi BPM, I installed the patch and output a BibTex feed to see. Comparing it visually with some examples http://www.xandi.eu/bib2x/files/example.bib it looks like it does the job, but the entry type label does not appear to be printed.