I've decided to use the existing ref-by-ajax system for retrieving location information. That means I may be able to remove the abstract stuff from the JSON completely (although it's still there for the moment), making the JSON info very quick to retrieve. I've proposed that we stop diverting users straight to a location page, and stick with popups even when there's no abstract; I've implemented this on dev, because I really need that behaviour for the map. There's now a working rotation function (shift + drag) and I've made the rotation-reset button appear bottom left so it's not obscured by our controls. Coming along nicely.
Article revision checked; article accepted; copyedit done.
Got a timeline MSWord document from LD to incorporate as page on site. Added a timeline page to the Contexts section (at end of list) and populated it with the content from the MSWord file.
Modified the generateNav.xsl file to add the new navigation item. Had to add a nextSection element with contextTimeline as value to the contextCharacters file. The contextTimeline has no nextSection element, as it's the last page in the section.
If the braintrust decides to have a copy of this file in each of a number of other sections of the site, I'll have to create 3 or 4 new pages and make similar modifications to the generateNav.xsl and XXXXXCharacters_en.xml file.
Dental appointment this morning.
Much progress today. I have visible item selection using a FeatureOverlay; I have selection discrimination (so that when you click on a point where multiple features intersect, it intelligently selects the best one to highlight/select); we have the map using the full available page area; I have a "loading..." message working, and there's now an explicit control for zooming a particular item to the centre. We're getting close.
When the Editor selects a submission from the Submission In Review page (slatest1/editor/submissions/submissionsInReview), they get the submissionReview page for that submission (slatest1/editor/submissionReview/2). I need that page to include a control that lets the editor assign the submission to the open review process (rather than a reviewer in the peer review process).
I started (as documented before) by trying to capture the pagelaunch event for that page and then writing out an entire new page which grabbed the standard elements somehow and included them on the page along with the new elements I wrote in. I couldn't figure out how to get the path references to work.
I then tried using an output filter on the submissionReview template to inject GUI elements into that template. I managed to get localized strings and hard-coded html in there, but I have no clue how to inject a form with a checkbox and action that updates the db appropriately. Further I have no idea what to do if the editor decides to change their mind about assigning the submission to open review, or preventing the editor from accidentally assigning the submission to both open review and peer review.
To get the injection to work, I modified the OpenReviewPlugin.inc.php file (though it seems the wrong approach):
1) added to register function:
HookRegistry::register('TemplateManager::display', array(&$this, 'handleTemplateDisplay'));
2) create handlTemplateDisplay() function which has this critical line:
$templateMgr->register_outputfilter(array(&$this, 'submissionReviewOutputFilter'));
3) create submissionReviewOutputFilter() function, which takes the html of the page, includes a bunch of hardcoded html at a specified place in the html and returns the modified html
I don't see how the injection method is going to work, because it's only dealing with the view and not the model, essentially. For example, how do I attach the events in the checkbox with an object that talks to the database?
The point display issue was a silly error (passing two parameters instead of a single array parameter). I now also have the categories scrolling instead of the whole nav box, and I also have a double-click on a location name showing the location, and zooming to it. GN and I are working with little success on creating an optimal height for the map canvas, though. There may be some JavaScript approach we can use, but I don't know what it would be. If we resize the div after the map is created, the map is stretched because the canvas resizes. We really need to size the div before the canvas is created, I guess.
Handling decisions on submissions for Issue 8; creating copyedited versions for one author; updating author agreement and guidelines.
Received request to create table with advising position and contact info.
Completed:
- created table with position and contact information extracted from existing website
- inserted relevant content information; included links
Edited:
- Contacts block updated with relevant Germanic and Slavic Studies contact information extracted from current website
Sent email to G&S advising task completed