[Portfolio] Create Form "Display Name"

Maurer, Christopher Wayne chmaurer at iupui.edu
Fri Dec 31 05:06:20 PST 2010


In StructuredArtifactHome.java, I see this:


      Element type = new Element("type");

      root.addContent(type);


      type.addContent(createNode("id", "file"));

      type.addContent(createNode("description", "file"));

I haven't done any more digging yet, but perhaps that type is ending up in displayName somehow?

Chris

From: Bryan Holladay <holladay at longsight.com<mailto:holladay at longsight.com>>
Date: Wed, 22 Dec 2010 16:48:31 -0500
To: Sean Keesler <sean.keesler at threecanoes.com<mailto:sean.keesler at threecanoes.com>>
Cc: "portfolio at collab.sakaiproject.org<mailto:portfolio at collab.sakaiproject.org>" <portfolio at collab.sakaiproject.org<mailto:portfolio at collab.sakaiproject.org>>
Subject: Re: [Portfolio] Create Form "Display Name"

Thanks!... That worked, although there's got to be a better solution somewhere :)  I'm not sure why this instance was doing that (and it doesn't seem to be isolated to just me), but in my local trunk instance of sakai, the forms display name is a empty string and I never had this problem.  I wish I knew why, so I could get that beer.

Bryan

On Dec 22, 2010, at 4:31 PM, Sean Keesler wrote:

My snippet to get rid of it was:

<xsl:template match="formView">

                        <xsl:variable name="displayName">
                                <xsl:choose>
                                        <xsl:when test="formData/artifact/metaData/displayName = 'filefile'">
                                                <xsl:text></xsl:text>
                                        </xsl:when>
                                        <xsl:otherwise>
                                                <xsl:value-of select="formData/artifact/metaData/displayName" />
                                        </xsl:otherwise>
                                </xsl:choose>
                        </xsl:variable>


and then....

                                        <!--<xsl:value-of select="formData/artifact/metaData/displayName" />-->
<xsl:when test="$subForm = 'true'">
                                <h4>
                                        <!--<xsl:value-of select="formData/artifact/metaData/displayName" />-->
                                        <xsl:value-of select="$displayName" />
                                </h4>
                            </xsl:when>
                            <xsl:when test="$fromResources = 'true' and $edit = 'true'">
                                <h4>
                                        <!--<xsl:value-of select="formData/artifact/metaData/displayName" />-->
                                        <xsl:value-of select="$displayName" />
                                </h4>
                                <input type="hidden" id="displayName" name="displayName" maxlength="1024">
                                    <xsl:attribute name="value">
                                        <!--<xsl:value-of select="formData/artifact/metaData/displayName" />-->
                                        <xsl:value-of select="$displayName" />
                                    </xsl:attribute>
                                </input>
                            </xsl:when>

I guess that precludes name your form instance 'filefile'.

I'll buy a cold beverage if you make the default name of a form an empty string!

Sean



On Wed, Dec 22, 2010 at 4:19 PM, Bryan Holladay <holladay at longsight.com<mailto:holladay at longsight.com>> wrote:
Do you know what file that is?  Or is that source code?

Thanks

On Dec 22, 2010, at 3:55 PM, Ackerman, Erica wrote:

Bryan,

This isn’t much help, but I remember figuring out where the “fil” was coming from once. “Fil” is cut off from “file”, and it is the part of the form metadata that gets used when the displayName field is empty (which it is when you preview a form or create one in Resources.) It might come from the <artifact><metaData><type><id>. I hope this at least points you in the right direction.

Erica

From: portfolio-bounces at collab.sakaiproject.org<mailto:portfolio-bounces at collab.sakaiproject.org> [mailto:portfolio-bounces at collab.sakaiproject.org<mailto:portfolio-bounces at collab.sakaiproject.org>] On Behalf Of Bryan Holladay
Sent: Wednesday, December 22, 2010 3:43 PM
To: portfolio at collab.sakaiproject.org<mailto:portfolio at collab.sakaiproject.org>
Subject: [Portfolio] Create Form "Display Name"

I've been looking for the source of a miscellaneous value that is automatically populating the "Display Name" when creating a form.  I.E., when I go to Edit -> Preview on a form, the "Display Name" field has "fil" automatically populated.  I've looked in the Portfolio Admin site Resources tool at the following files:  formCreate.xslt, contentOverText.xml, formFieldTemplate.xslt, formView.xslt but didn't find anything that would do that.  Is there somewhere else it's pulling this from?  Has anyone seen this before... I know the part of the code that is filling it in is in formCreate.xstlt at:
                                                                                                                                                <input type="text" id="displayName" name="displayName" maxlength="1024">
                                                                                                                                                                <xsl:attribute name="value">
                                                                                                                                                                                <xsl:value-of select="formData/artifact/metaData/displayName" />
                                                                                                                                                                </xsl:attribute>
                                                                                                                                                </input>


Thanks,
Bryan


_______________________________________________
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"


_______________________________________________ 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/20101231/7fc2674c/attachment-0001.html 


More information about the portfolio mailing list