#769: WebJournal: fix link to latest release of a specific journal category
------------------------+-----------------
 Reporter:  jcaffaro    |      Owner:
     Type:  defect      |     Status:  new
 Priority:  minor       |  Milestone:
Component:  WebJournal  |    Version:
 Keywords:              |
------------------------+-----------------
 By default WebJournal will link to the most recent release of a journal
 when the issue number and year are missing from the URL. For eg:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin
 }}}
 redirects to (at the time of writing this ticket):
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/2011/31/News%20Articles
 }}}
 "New Articles" being the first category of this journal.

 It was possible in the past to link to a specific category of the most
 recent release of a journal by using for eg:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin///Staff%20Association
 }}}
 resolved then to:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/2011/31/Staff%20Association
 }}}

 Unfortunately recent versions of Apache/mod_wsgi will collapse the
 repeating slashes into something like:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/Staff%20Association
 }}}
 resulting in an invalid URL for the handler.

 The resolving of the URL (in {{{WebInterfaceJournalPages.__call__(..)}}})
 should be fixed so that it is again possible to link to the most recent
 category page of a journal.

 There are several ways to fix it. For eg. by using this convention:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/latest/latest/Staff%20Association
 }}}
 (or any other meaningful keyword instead of ''latest''. The drawback being
 that the keyword is specific to a language...) or using spaces that might
 not be collapsed by Apache/mod_wsgi:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/ / /Staff%20Association
 }}}
 or adapting the URL handler so that it recognizes when a category is given
 instead of year:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/2011/31/Staff%20Association
 http://cdsweb.cern.ch/journal/CERNBulletin/Staff%20Association
 }}}
 (making it impossible to use categories that look like years) or having a
 totally different handler, similar to the legacy WebJournal URLs:
 {{{
 http://cdsweb.cern.ch/journal/CERNBulletin/?categ=Staff%20Association
 }}}
 (not that nice, but would be ok as long as the legacy URLs are not broken)

-- 
Ticket URL: <http://invenio-software.org/ticket/769>
Invenio <http://invenio-software.org>

Reply via email to