I have not seen anything about this and I wonder if it would be possible to add RSS feeds to pages that show the works of each Author in the bibliography. I am just learning to write modules so I may be able to work on this if I have an idea of what would need to be done.
Thank you very much,
Jeremy
Comments
Comment #1
rjerome commentedCould you clarify, do you mean a separate feed for each author or a feed sorted by author?
I think this would be pretty easy to do if we just add an rss option the the regular author url, so the rss url would be
example.com/biblio/author/jeremy/rss.xml then instead of calling the show results function we would just call a slightly modified version of biblio_feed and that should be all there is to it.
Ron.
Comment #2
rjerome commentedI just added this to the -dev version. It took just a couple of lines of code.
So now you can use a url like http://example.com/biblio/author/jeremy/rss.xml to get the listings for that author.
Ron.
Comment #3
jyork commentedThank you very much for this, Ron. I'm one of several people I've noticed who are using your module for a university faculty publications hub. This is huge for what we are trying to do and I really appreciate it. I've been going through your code and am having a hard time finding which part relates specifically to this functionality. If you have a minute it would be great if you could direct me to the parts that make it work.
Thank you very much again,
Jeremy
Comment #4
rjerome commentedHi Jeremy,
Unfortunately, the 5.x branch has developed into a bit of a mess which I'm trying to rectify in the upcoming 6.x version.
That being said, there were only a few changes required, and they were...
In biblio_db_search() at line 2319 I added
This detects the fact that we want an RSS feed.
Then at line 2429 I added this conditional which branches based on the value of $rss
So if $rss is true, then we create a feed rather than displaying the results.
Lastly, I made a couple of modifications to biblio_feed() at line 1910. This function used to take no arguments, but I added $result and $title and gave them both default values of NULL so that the function would behave the same as it did without arguments. Now you just pass a db result pointer and a title and a feed is created.
Ron.
Comment #5
jyork commentedHi Ron,
Thank you very much. I'm starting to get the hang of this, but I'm not quite there yet. I really appreciate your help and all of your work on this module.
Jeremy
Comment #6
nschloe commentedhey guys,
anything new on this one? our department just makes the switch to drupal, and having a per-user rss feed would be just great.
i'm running on drupal 6 here with biblio 1.0-rc4, but i can seem to find the functionality. the rss on /biblio/author/1, for example, just gives a list of all the biblio entries (and so for all other authors as well).
cheers!
nico
Comment #7
rjerome commentedI'll check that tomorrow, it's probably not functional yet.
You should upgrade to RC5, there was a bug in RC4 that can mess up taxonomy vocabularies (if you happen to have a vocabulary with ID 1)
Ron.
Comment #8
rjerome commentedI just tested this and the following works for me... biblio/author/4/rss.xml
The rss.xml component must be the last item in the URL.
Ron.
Comment #9
nschloe commentedhi ron,
thanks for the quick reply!
accessing the rss.xml directly works smoothly indeed, no problems with that. for users to find that, i guess, i'd be useful to display an rss link when a (name-)filter is applied to biblio.
what do you think? should i file this as a separate feature request?
cheers,
nico
Comment #10
bekasu commentedMarking issue closed.