[Portfolio] Decorated URL's for attached portfolio files (SAK-16203)

Ward, Lynn E. leward at iupui.edu
Thu Jul 29 02:15:15 PDT 2010


Hi Hongbo,

Thanks for the suggestion.  Sean is working on this problem for Indiana University.  The problem with this solution is that the form in question is the outline options form.  We use it to allow the student to upload a custom banner for the portfolio.  Also, in most cases, students will do all form creation for the portfolio directly in the Portfolios tool-in other words, they won't be using the matrix, so attaching the files to the matrix isn't really an option.

==========================
Lynn Ward, Principal Systems Analyst, Academic and Faculty Services
University Information Technology Services<http://uits.iu.edu/>
Indiana University-Purdue University Indianapolis
Information Technology and Communications Complex (IT 225D)
535 West Michigan Street, Indianapolis, IN 46202
Phone: 317-278-5713  E-mail: leward at iupui.edu<mailto:leward at iupui.edu>

From: portfolio-bounces at collab.sakaiproject.org [mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of hongbo zhang
Sent: Wednesday, July 28, 2010 4:51 PM
To: 'hongbo zhang'; Maurer, Christopher Wayne; 'Sean Keesler'
Cc: 'osp'
Subject: Re: [Portfolio] Decorated URL's for attached portfolio files (SAK-16203)

This is latest version of the portfolio template and matrix. Just want to make sure you get the latest version.

Hongbo

From: hongbo zhang [mailto:hbzhang at vt.edu]
Sent: Wednesday, July 28, 2010 4:29 PM
To: 'Maurer, Christopher Wayne'; 'Sean Keesler'
Cc: 'osp'
Subject: RE: [Portfolio] Decorated URL's for attached portfolio files (SAK-16203)

     It is hard to really resolve the permission issue, when trying to use the file attached to the form. Out past experiences told us the file attached to the form is hard to be public viewable. However, there are always ways for this, I guess.

    Instead of attaching file to the form, we often attach file to the matrix, then incorporating the matrix to the portfolio. The file is then public viewable.

   In terms of usability, the efficiency attaching multiple files to the matrix is much faster than attaching files to the form.

About tool ID, page ID.

    <xsl:param name="id"/>
    <xsl:param name="mode" select="'view'"/>
    <xsl:param name="page"/>
<xsl:param name="sakai.tool.placement.id"/>
<xsl:variable name="sitepath">
        https://scholar.vt.edu/portal/tool/
</xsl:variable>

Then use it like the following for an image:

    <xsl:attribute name="href"><xsl:value-of select=" concat(normalize-space($sitepath), $sakai.tool.placement.id, '/viewPresentation.osp?1=1&amp;id=', $id, '&amp;page=', $pageidnumber)"/></xsl:attribute>
                                            <xsl:value-of select="$instruction"/>

The reason for us to use PageID is because the image loading efficiency. If we put all images in one page. It will make the page loading very slow. By dividing images to different pages, it can improve the image loading efficiency,


However, there is an issue about using PageID. for example this:

https://scholar.vt.edu/portal/tool/7a358da0-fc03-46d1-bc51-fd51af5d0902/viewPresentation.osp?1=1&id=C1E341ACDBB4076F34C21932EB992C4A&page=1


With PageID, it makes the portfolio not public viewable. The likely reason might be because the public portfolio URL is

https://scholar.vt.edu/osp-presentation-tool/viewPresentation.osp?id=C1E341ACDBB4076F34C21932EB992C4A&sakai.tool.placement.id=7a358da0-fc03-46d1-bc51-fd51af5d0902

You can find there is not PageID in the public viewable portfolio URL address.

This issue should be fixed in the future.

I attached the portfolio template and matrix. If you can import the matrix and portfolio template. You might be able to make a portfolio with the looks similar to this one:



  http://bit.ly/9TZMrC

Hongbo












From: portfolio-bounces at collab.sakaiproject.org [mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of Maurer, Christopher Wayne
Sent: Wednesday, July 28, 2010 9:39 AM
To: Sean Keesler
Cc: osp
Subject: Re: [Portfolio] Decorated URL's for attached portfolio files (SAK-16203)

We could easily add the site id to be dumped out in the xml if it's not available in any other way.

Chris

On Jul 28, 2010, at 8:04 AM, Sean Keesler wrote:

I'm trying to get an image that a user attaches to a form to appear in public portfolios. The url provided in the passthrough XML is not a public url and so must be decorated with security advisor info to allow it to be seen. Chuck posts a suggested workaround in SAK-16203:
It isn't elegant, but I've fixed this in the XSL file by prefixing the advisor to the URL. The data is all there. The two magic numbers are the site ID, which is fixed for a given portfolio, and the portfolio ID, which is a parameter $id. It uglifies the XSL file somewhat, but this approach seems to work.

The link to a public portfolio includes the "id" and "sakai.tool.placement.id<http://sakai.tool.placement.id/>" in the query string and can be captured as parameters in the xsl, but the site id is not provided in the query string nor in the passthrough XML.

Can anyone suggest a means to get the site ID to do as Chuck suggests?

Sean
_______________________________________________
portfolio mailing list
portfolio at collab.sakaiproject.org<mailto:portfolio at collab.sakaiproject.org>
http://collab.sakaiproject.org/mailman/listinfo/portfolio

TO UNSUBSCRIBE: send email to portfolio-unsubscribe at collab.sakaiproject.org<mailto:portfolio-unsubscribe at collab.sakaiproject.org> with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/portfolio/attachments/20100729/abc7a494/attachment.html 


More information about the portfolio mailing list