click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-13693
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Stephen Marquard
Reporter: Adam Marshall
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Sakai

make 'access servlet' use files from local skins folder

Created: 05-Jun-2008 09:13   Updated: 21-Dec-2009 09:39
Component/s: Access, Resources
Affects Version/s: 2.5.0, 2.5.2, 2.5.3, 2.6.0
Fix Version/s: 2.5.6, 2.6.3 [tentative]

Time Tracking:
Not Specified

File Attachments: 1. Text File SAK-13693-2.5.x_r69233.patch (1 kB)
2. Text File SAK-13693.patch (1 kB)

Image Attachments:

1. screenshot-1.jpg
(207 kB)
Environment: n/a
Issue Links:
Depend
 
Relate
 

2.6.x Status: Merge
2.5.x Status: Closed
2.4.x Status: None


 Description  « Hide
For some reason the access servlet doesnt acknowldge the instruction to use a local skin - regardless of whether any local skins have been defined it always uses the access.css from the libaray.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Stephen Marquard added a comment - 05-Jun-2008 11:35
Do you mean it should tool_base.css and the tool.css defined for the site?

The classes in access.css probably need to get merged into tool.css

Matthew Buckett added a comment - 06-Jun-2008 03:51
The default and default-horiz skins contains a file called access.css. This file is used by the access servlet to style it's pages.
The access servlet has the access.css hardcoded to be the one in the default skin.

/content-impl/impl/src/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java

Has the code which generates the link to the CSS.

This code doesn't understand the default skin or the site skin for which the content is in.

Example of an access URL (sakai-dev)

https://collab.sakaiproject.org/access/content/group/1097928811887-22636/

Peter A. Knoop added a comment - 13-Jun-2008 15:32
Gonzalo, is this one you could review? Thanks.

Gonzalo Silverio added a comment - 23-Jun-2008 07:43
There a 2 possible solutions to this, in order by desirability:

1 - servlet detects site skin, uses it - referenced css are:

   - tool_base.css, tool.css, access.css

2 - servlet uses access.css only - but access.css is improved by addition of selectors specific to it (for which the servlet would also need to be edited), and in turn it also calls tool_base.css (insuring that there is a family resemblance with the institutional stylesheet - colors, font, font-size, etc.)

If 1 is the preferred method, a developer will need to add the link to the sheets. I could do 2 - see discussion at:

http://bugs.sakaiproject.org/jira/browse/SAK-13694

Thanks!

Matthew Buckett added a comment - 23-Jun-2008 08:18
If go for option 2 could we move access.css out of the default skin (up one folder?) as it is misleading to people customizing their skins.

Gonzalo Silverio added a comment - 23-Jun-2008 08:30
Good point, makes sense.

Stephen Marquard added a comment - 23-Jun-2008 08:36
I think one should be able to customize the access collection display per site, so I 'd vote for option 1, with the possible variant that we do away with access.css and move the required selectors into tool_base.css and tool.css.

Gonzalo Silverio added a comment - 25-Jun-2008 03:44
That does seem like the sensible thing to do:

1 - access servlet runs with site skin
2 - access css is incorporated into tool css

Can you assign to someone that can do 1 (and review my changes to the servlet) and then back to me so that I can do 2?

Thanks


Peter A. Knoop added a comment - 05-Jul-2008 09:32
Ian, can you do the first part and Assign back to Gonzalo? Thanks.

Stephen Marquard added a comment - 10-Jul-2008 01:44
We rewrote CollectionAccessFormatter.java for a custom Sakai build used for an online conference.

The revised code is here:

https://source.sakaiproject.org/svn/uct/emerge08/content/content-impl/impl/src/java/org/sakaiproject/content/impl/CollectionAccessFormatter.java

This is so different from the original that it's not really mergeable back into trunk, but it does have a number of fixes and useful features, including:

- breadcrumbs
- uses css from the site (currently tool_base, tool and access though I think the best is to drop access and put everything in the site's tool.css)
- fixes links to metaobj
- shows descriptions

Having worked with this a little,

1. the basedir and sferyx stuff really complicates the code. We took this out for simplicity in the custom version. I'm not sure if it's even used anymore or what the specs/requirements are.

2. There are many possible desireable formats for directory indexes, and ideally one should be able to do this differently for different sites. I think it would be ideal if we could implement something that allows a custom xslt renderer (similar to how forms are rendered). We should have a good default which people can override on a site basis (or a folder basis, inheriting the parent being the default) if necessary.


Stephen Marquard added a comment - 10-Jul-2008 01:47
Example of directory index shown in a web content tool (formatted using the custom code referenced above).

The description is the item description and the italics is the dc_creator optional properties text.

Ian Boston added a comment - 29-Jan-2009 02:28
I am unassigning this issue as it gives the wrong impression. I dont have enough hours in the day to look at this issue at the moment and keeping it assigned to me give the reporter hope that I might be able to look at it. I am very sorry. If this issue is a real blocker for production then I would suggest you look for resource in the community to fix the problem, I am happy to respond to emails and guide. Where the code base is Rwiki or Search, I have absolutely no problem with someone else working on the code, this after all is a community.

Matthew Buckett added a comment - 21-Oct-2009 08:01
This is the patch to 2.5.x we used in production. It depend on having a default skin in your local skins folder.

Jean-François Lévêque added a comment - 22-Oct-2009 01:22
Trying automatic assignment (didn't work with Access)

John Leasia added a comment - 22-Oct-2009 08:58
Gonzalo, is this something you need to do more on now?

Gonzalo Silverio added a comment - 22-Oct-2009 09:05
This has 2 parts in it's simpler version:

1 - access servlet runs with site skin
2 - access css is incorporated into tool css

Till 1 gets done I cannot do 2. Also SAK-13694 depends on this as well.

Gonzalo Silverio added a comment - 22-Oct-2009 09:10
So it should be asssigned to someone who can do 1 and commit to kernel or submit a patch to kernel, sorry to not be clear.

Seth Theriault added a comment - 25-Nov-2009 12:37
Attaching a patch done against recent 2.5.x maint branch; it duplicates the attached Oxford 2.5 patch. This is being tested at Columbia and seems to work, so it could be used for a 2.5.x merge.

Stephen Marquard added a comment - 26-Nov-2009 23:08
Resolved for kernel 1.1/trunk in KNL-305. The fix should be backportable to kernel 1.0 / 2-5-x though not trivially so (it's unlikely to be a clean merge).

Gonzalo Silverio added a comment - 08-Dec-2009 07:33
Stephen,

Anthony asks the following:

"Gonzalo--can you review the following SAKs and if any have been tested
and verified, can you close them, setting the fix version to 2.6.2
and, if appropriate, 2.7.0-M2. If any of the issues in the list are
not ready for merging can you set the fix version to 2.6.3 and 2.7.0-
M3 if appropriate."

This SAK is included in the list, since I had little to do with the fix, can you make the determinations that A is asking about? Many thanks - that is why I assigned it to you.




Stephen Marquard added a comment - 08-Dec-2009 07:45 - edited
The fix for this is in KNL-308. It's not easily mergeable to 1.0.x kernel because of all the related changes in CollectionAccessFormatter.

It could be backported if someone wanted to take it on by making equivalen changes in the 1.0.x version, or the complete set of changes related to KNL-308 and associated JIRAs (KNL-213 and matching tool changes) would have to be merged to 1.0.x and 2-6-x. Not a simple task.

Seth Theriault added a comment - 08-Dec-2009 18:52
Per the 2.5.6/2.6.2 Jira Review Meeting held on 2009-12-08, this issue has been scheduled for the 2.5.6 release. The 2.6.x status is less clear.