Flow of control (Manakin)
(Ryan is working out some issues here. Once they are somewhat coherent, they should be moved to the DSpace wiki.)
Understanding various issues in Manakin's data flow.
Parameters can be passed between Manakin pages in multiple ways.
In the Administrative aspect, a call to /admin/item?itemID=123:
In the Administrative aspect, with a call to /admin/item, and POSTing a continuation:
- This occurs when the request came from an administrative page, so a lot of data is already populated (and stored in the continuation)
- The sitemap passes this off to FlowItemUtils.java
In the ArtifactBrowser aspect, a call to /handle/123/4567:
- the sitemap calls various matchers (HandleAuthorizedMatcher, HandleTypeMatcher) and eventually calls ItemViewer
- each of these calls calls HandleUtil.obtainHandle, which
- the first time it is called for a given Request, calls request.getSitemapURI(); and parses the URI
- on subsequent calls, it retrieves the existing handle from the Request
In the ArtifactBrowser aspect, a call to /feedback:
- the sitemap explicitly sends parameters to the FeedbackForm (but it is unclear where these values come from)
- these parameters are then available in the parameters field of AbstractDSpaceTransformer (parent of FeedbackForm)
Note: sometimes, an objectModel is passed around, and sometimes it is inherited from AbstractDSpaceTransformer. Why?
Formatting of the /feedback page (especially textarea width)
- the page template is constructed by the ArtifactBrowswer aspect (FeedbackForm.java) which subclasses AbstractDSpaceTransformer
- the page contains a division and a form within the division
- the form itself is an instance of a List (which is subclass of AbstractWingElement, and not itself a java.utils.List), with a type field that indicates it will be rendered as a form.
- the textArea for comments is added to the form as an item within the list maintained by the form;
- there exist constructors for both list items and textAreas that accept a string argument for rending hints. Not sure if these could have been used to set the width and height of the textArea, however the width is nowhere set within the aspect, so the generated DRI is passed through to cocoon.
- because text area height and width are required attributes, there are templates in dri2xhtml/structural.xsl (textAreaCols and textAreaRows) that provide defaults for these
- these can be overwritten in the DRI document but no such values are provided in this case
- there is a template for textArea elements in Dryad.xsl which calls the textAreaCols and textAreaRows to get the defaults defined in structural.xsl
- since testAreaCols was generating a default of 20, Dryad.xsl has been adjusted to default to 60 width.
- there is another textArea for user comments that is directly generated earlier in the Dryad.xsl, but that appears in different contexts (and with a height of 15 lines)