Bug 4987 - modified OMPPageRouter: role router
modified OMPPageRouter: role router
Status: RESOLVED WONTFIX
Product: OMP
Classification: Unclassified
Component: Authors
1.0
PC Linux
: P5 enhancement
Assigned To: PKP Support
Depends on: 5111
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-04 15:20 PST by tyler lokken
Modified: 2010-05-01 00:17 PDT (History)
3 users (show)

See Also:
Version Reported In:
Also Affects:


Attachments
patch against pkp cvs (1.13 KB, patch)
2010-01-04 15:21 PST, tyler lokken
Details | Diff
patch against OMP pre-release (5.40 KB, patch)
2010-01-04 15:22 PST, tyler lokken
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tyler lokken 2010-01-04 15:20:46 PST
We need a router for custom roles.

The basic principle:

If RoleType is an AuthorRoleType then import('pages/author/index.php').
Otherwise, import('pages/customRole/index.php')
---
(The routing could get more complex.)
Comment 1 tyler lokken 2010-01-04 15:21:38 PST
Created attachment 2791 [details]
patch against pkp cvs
Comment 2 tyler lokken 2010-01-04 15:22:55 PST
Created attachment 2792 [details]
patch against OMP pre-release
Comment 3 tyler lokken 2010-01-04 15:29:28 PST
What are your thoughts on the approach outlined in the two patches?

The approach involves a new function in the PKPPageRouter class that is overriden in OMPPageRouter. The custom role's type determines the route.
Comment 4 jerico 2010-01-21 13:42:28 PST
Tyler, do you need more info on this than what we've already talked about by Skype/in the OMP team call?
Comment 5 jerico 2010-02-03 17:40:20 PST
Just to document what we determined today when we talked about the "user groups" (alias "flexible roles"): If we want user-group-specific URLs then, yes, the right approach would be to extend the page router and let it route the user-group specific page to the canonical role-specific handler. The exact approach depends on the back-end API which Juan will implement.