sul-dlss/SearchWorks — pull request #303 by jkeck (2014-06-14 00:09:07+00:00)
Title: [PROPOSAL] Change routes to be /view

Closes #99

Override routes to record view to be `view/:id`.
Also overriding librarian_view but keeping all other resources at `catalog/:id`.

This PR takes a pretty different (and simplified) approach to the routes than in the current codebase.

Routes are taken *first come first serve* so by mapping `view/:id` to the correct action and naming it the same as Blacklight will (e.g. `catalog_path` and `solr_document_path`) then Blacklight will use our overridden path when linking to records.

One thing to note is that I've directly mapped the `view/:id/librarian_view` as I think it *might* be something that people will hand craft the URL to go to. The other things that will still reside at a `catalog` url are things that users won't go directly to because they are either backend integration points for external services or are in modal pop-ups (e.g. refworks/endnote exports, email forms, citations, etc).

If we feel like any of those routes should also have `view` then we can add them as they come up.