Feature #988
RDF author problem plus minor rails issue
| Status : | Feedback | Start : | ||
| Priority : | Low | Due date : | ||
| Assigned to : | tobi - | % Done : | 0% |
|
| Category : | frontend | |||
| Target version : | - | |||
| Resolution : |
Description
The RDF generator uses the following line for creator info
app/views/articles/read.rhtml:
line 11: dc:creator="<%= h @article.author %>"
but this will output the login for typo, probably not a good idea to declare it publicly. Instead, typo should ouput the user.name and I can do that by replacing that line with the following line
dc:creator="<%= h author_link(@article) %>"
which works for me. However, I don't give out my email address through typo and for those who do, this will include a mailto link in the RDF (in html safe format no less), which probably breaks the RDF specification. I don't know for sure that it does break the specification so someone should probably check that and amend the line or function appropriately.
Another small problem that I noticed recently when I tried to link to the mail archive of the typo mailing list at !http://www.mail-archive.com/typo-list@rubyforge.org/ is that Rails has a problem with URLs that contain email addresses. I had posted that link in someone's typo blog and the link didn't work properly because typo was using Rails's auto_link method (through body_html_postprocess) and auto_link improperly changes URLs that contain email addresses. The hyperlink
<A HREF="!http://www.mail-archive.com/typo-list@rubyforge.org/"">typo mailing list</A>
will be transformed into
<a href='!http://www.mail-archive.com/<a href=' !mailto:typo-list rel="nofollow">typo mailing list</a>
I don't know if this is worth posting on the Rails trac so I posted it here so that the typo maintainers can decide for themselves.
Associated revisions
Add wordpress2 converter. Closes #988