Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
Your sites down, so I can't view your example. Sorry, bad timing with a hardware upgrade. Back now. :-) http://scholarworks.calstate.edu/scholarworks_xmlui/handle/123456789/5 As you can see, Dorthea's template renders this element as it should -- or at least without the duplicate definition term. So that makes me think that the problem lies outside this template. I just think your messages.xml labels are different Sorry, I was unclear before. I mean the actual keys, rather than just the labels, are different -- maybe because this is a pre-1.5 messages.xml ? That probably makes no difference. --Dave == David Walker Library Web Services Manager California State University http://xerxes.calstate.edu From: Mark Diggory [EMAIL PROTECTED] On Behalf Of Mark Diggory [EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 4:55 PM To: Walker, David Cc: Dorothea Salo; dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Manakin: Why am I getting a doubled header? I just think your messages.xml labels are different. the generated html is the same and I bet the length of the value causes yours to wrap to the line above. Your sites down, so I can't view your example. Dorothea, could you just drop your war on a url somewhere and send it to me... I'll look at it on my workstation. -Mark On Sep 24, 2008, at 4:43 PM, Walker, David wrote: I don't think that's it, Mark, because the same template works in our test instance, even with the dd /. http://scholarworks.calstate.edu/scholarworks_xmlui/handle/123456789/5 dtThis item appears in the following Collection(s)/dt dd / dtPart of/dt ddhttp://www.aip.org; http://apl.aip.org//dd I also don't get those i18n namespaces in the resulting output, as Dorthea does. I also notice that some of the labels in the utils.xsl template are (slightly) different from the ones in the messages.xml file in out newly installed 1.5 instance. Not sure what that means, honestly, just thought I'd mention it. --Dave == David Walker Library Web Services Manager California State University http://xerxes.calstate.edu From: Mark Diggory [EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 2:40 PM To: Dorothea Salo Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Manakin: Why am I getting a doubled header? I believe its the section above... xmlui.ArtifactBrowser.ItemViewer.head_parent_collections creates the same label and your dd doesn't create any body, which closes it out (dd/) and breaks the flow. !-- Kill the fields if they're empty. -DS -- dt i18n:textxmlui.ArtifactBrowser.ItemViewer.head_parent_collections/ i 18n:text /dt dd xsl:for-each select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer' and @n='collection-viewer']/dri:reference xsl:apply-templates select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer'and @n='collection-viewer']/dri:reference mode=render/ xsl:if test=count(following- sibling::dri:reference) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd On Sep 24, 2008, at 1:40 PM, Dorothea Salo wrote: I wonder if we have enough XSL context to see the problem. The utilities template is available from http://minds-test.wisconsin.edu/themes/utils.xsl, and the UW- Madison theme that inherits this theme is at http://minds-test.wisconsin.edu/themes/UWMadison/uwmadison.xsl. Share and enjoy! (Not that I'm anything like an XSL wizard, but this looks like a good learning opportunity and, who knows? I might solve it.) The empty 'dd' really draws my attention but I can't yet see how it happens. Oh, good, it's not just me! I'm baffled and feeling ungodly stupid that I can't seem to solve this (especially when the same technique seems to work FINE for authors!). Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - - --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
On Thu, Sep 25, 2008 at 9:10 AM, Walker, David [EMAIL PROTECTED] wrote: I just think your messages.xml labels are different Sorry, I was unclear before. I mean the actual keys, rather than just the labels, are different -- maybe because this is a pre-1.5 messages.xml ? That probably makes no difference. Yes, that's right -- this template dates from 1.4.x + Manakin 1.x days, when relation.ispartof wasn't in the out-of-the-box metadata section, and I should probably take a look at what keys 1.5.x added, to remove any duplication! I'll nose around to see if there's another template or template section going boom and let folks know. I really appreciate all the help! Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
Actually, after looking at this further, I understand something more about the section below. The context in which this template is being executed is the dim section of a mets document, you cannot reference the below xpath in that location and have it evaluate properly, this is why that section is usually render in another template further down in the page. /dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer' and @n='collection-viewer']/dri:reference Remove the whole section matching this statement and your problem will go away. !-- Kill the fields if they're empty. -DS -- dt i18n:textxmlui.ArtifactBrowser.ItemViewer.head_parent_collections/i 18n:text /dt dd xsl:for-each select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer' and @n='collection-viewer']/dri:reference xsl:apply-templates select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer'and @n='collection-viewer']/dri:reference mode=render/ xsl:if test=count(following- sibling::dri:reference) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd Likewise, yes I would recommend looking at those tempaltes/messages/ xml in 1.5 to migrate the theme appropriately to your new instance. -Mark On Sep 25, 2008, at 8:17 AM, Dorothea Salo wrote: On Thu, Sep 25, 2008 at 9:10 AM, Walker, David [EMAIL PROTECTED] wrote: I just think your messages.xml labels are different Sorry, I was unclear before. I mean the actual keys, rather than just the labels, are different -- maybe because this is a pre-1.5 messages.xml ? That probably makes no difference. Yes, that's right -- this template dates from 1.4.x + Manakin 1.x days, when relation.ispartof wasn't in the out-of-the-box metadata section, and I should probably take a look at what keys 1.5.x added, to remove any duplication! I'll nose around to see if there's another template or template section going boom and let folks know. I really appreciate all the help! Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] Manakin: Why am I getting a doubled header?
First, the problem: http://minds-test.wisconsin.edu/handle/1760/11124. Next, the code that is generating the problem: xsl:if test=dim:[EMAIL PROTECTED]'relation' and @qualifier='ispartof'] dt i18n:textxmlui.dri2xhtml-METS-1.0.ispartof/i18n:text /dt dd xsl:for-each select=dim:[EMAIL PROTECTED]'relation' and @qualifier='ispartof'] xsl:copy-of select=./child::node()/ xsl:if test=count(following-sibling::dim:[EMAIL PROTECTED]'relation' and @qualifier='ispartof']) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd /xsl:if My brain is broken. How did I mess this up? Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
Wheres the problem? Note, Sometimes I get duplicate Headers when editing the xslt in place, I think this is caused by some caching bug in the application, it generally goes away if I restart the web-application. -Mark On Sep 24, 2008, at 11:48 AM, Dorothea Salo wrote: First, the problem: http://minds-test.wisconsin.edu/handle/ 1760/11124. Next, the code that is generating the problem: xsl:if test=dim:[EMAIL PROTECTED]'relation' and @qualifier='ispartof'] dt i18n:textxmlui.dri2xhtml-METS-1.0.ispartof/i18n:text /dt dd xsl:for-each select=dim:[EMAIL PROTECTED]'relation' and @qualifier='ispartof'] xsl:copy-of select=./child::node()/ xsl:if test=count(following-sibling::dim:field [EMAIL PROTECTED]'relation' and @qualifier='ispartof']) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd /xsl:if My brain is broken. How did I mess this up? Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ~ Mark R. Diggory - DSpace Developer and Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology Home Page: http://purl.org/net/mdiggory/homepage - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
I wonder if we have enough XSL context to see the problem. The utilities template is available from http://minds-test.wisconsin.edu/themes/utils.xsl, and the UW-Madison theme that inherits this theme is at http://minds-test.wisconsin.edu/themes/UWMadison/uwmadison.xsl. Share and enjoy! (Not that I'm anything like an XSL wizard, but this looks like a good learning opportunity and, who knows? I might solve it.) The empty 'dd' really draws my attention but I can't yet see how it happens. Oh, good, it's not just me! I'm baffled and feeling ungodly stupid that I can't seem to solve this (especially when the same technique seems to work FINE for authors!). Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
I just think your messages.xml labels are different. the generated html is the same and I bet the length of the value causes yours to wrap to the line above. Your sites down, so I can't view your example. Dorothea, could you just drop your war on a url somewhere and send it to me... I'll look at it on my workstation. -Mark On Sep 24, 2008, at 4:43 PM, Walker, David wrote: I don't think that's it, Mark, because the same template works in our test instance, even with the dd /. http://scholarworks.calstate.edu/scholarworks_xmlui/handle/123456789/5 dtThis item appears in the following Collection(s)/dt dd / dtPart of/dt ddhttp://www.aip.org; http://apl.aip.org//dd I also don't get those i18n namespaces in the resulting output, as Dorthea does. I also notice that some of the labels in the utils.xsl template are (slightly) different from the ones in the messages.xml file in out newly installed 1.5 instance. Not sure what that means, honestly, just thought I'd mention it. --Dave == David Walker Library Web Services Manager California State University http://xerxes.calstate.edu From: Mark Diggory [EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 2:40 PM To: Dorothea Salo Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Manakin: Why am I getting a doubled header? I believe its the section above... xmlui.ArtifactBrowser.ItemViewer.head_parent_collections creates the same label and your dd doesn't create any body, which closes it out (dd/) and breaks the flow. !-- Kill the fields if they're empty. -DS -- dt i18n:textxmlui.ArtifactBrowser.ItemViewer.head_parent_collections/ i 18n:text /dt dd xsl:for-each select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer' and @n='collection-viewer']/dri:reference xsl:apply-templates select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer'and @n='collection-viewer']/dri:reference mode=render/ xsl:if test=count(following- sibling::dri:reference) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd On Sep 24, 2008, at 1:40 PM, Dorothea Salo wrote: I wonder if we have enough XSL context to see the problem. The utilities template is available from http://minds-test.wisconsin.edu/themes/utils.xsl, and the UW- Madison theme that inherits this theme is at http://minds-test.wisconsin.edu/themes/UWMadison/uwmadison.xsl. Share and enjoy! (Not that I'm anything like an XSL wizard, but this looks like a good learning opportunity and, who knows? I might solve it.) The empty 'dd' really draws my attention but I can't yet see how it happens. Oh, good, it's not just me! I'm baffled and feeling ungodly stupid that I can't seem to solve this (especially when the same technique seems to work FINE for authors!). Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - - --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ~ Mark R. Diggory - DSpace Developer and Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology Home Page: http://purl.org/net/mdiggory/homepage -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ~ Mark R. Diggory - DSpace Developer and Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology Home Page: http://purl.org/net/mdiggory/homepage
Re: [Dspace-tech] Manakin: Why am I getting a doubled header?
I don't think that's it, Mark, because the same template works in our test instance, even with the dd /. http://scholarworks.calstate.edu/scholarworks_xmlui/handle/123456789/5 dtThis item appears in the following Collection(s)/dt dd / dtPart of/dt ddhttp://www.aip.org; http://apl.aip.org//dd I also don't get those i18n namespaces in the resulting output, as Dorthea does. I also notice that some of the labels in the utils.xsl template are (slightly) different from the ones in the messages.xml file in out newly installed 1.5 instance. Not sure what that means, honestly, just thought I'd mention it. --Dave == David Walker Library Web Services Manager California State University http://xerxes.calstate.edu From: Mark Diggory [EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 2:40 PM To: Dorothea Salo Cc: dspace-tech@lists.sourceforge.net Subject: Re: [Dspace-tech] Manakin: Why am I getting a doubled header? I believe its the section above... xmlui.ArtifactBrowser.ItemViewer.head_parent_collections creates the same label and your dd doesn't create any body, which closes it out (dd/) and breaks the flow. !-- Kill the fields if they're empty. -DS -- dt i18n:textxmlui.ArtifactBrowser.ItemViewer.head_parent_collections/i 18n:text /dt dd xsl:for-each select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer' and @n='collection-viewer']/dri:reference xsl:apply-templates select=/dri:document/dri:body/dri:div/ dri:referenceSet [EMAIL PROTECTED]'aspect.artifactbrowser.ItemViewer.referenceSet.collection- viewer'and @n='collection-viewer']/dri:reference mode=render/ xsl:if test=count(following- sibling::dri:reference) != 0 xsl:text; /xsl:text /xsl:if /xsl:for-each /dd On Sep 24, 2008, at 1:40 PM, Dorothea Salo wrote: I wonder if we have enough XSL context to see the problem. The utilities template is available from http://minds-test.wisconsin.edu/themes/utils.xsl, and the UW-Madison theme that inherits this theme is at http://minds-test.wisconsin.edu/themes/UWMadison/uwmadison.xsl. Share and enjoy! (Not that I'm anything like an XSL wizard, but this looks like a good learning opportunity and, who knows? I might solve it.) The empty 'dd' really draws my attention but I can't yet see how it happens. Oh, good, it's not just me! I'm baffled and feeling ungodly stupid that I can't seem to solve this (especially when the same technique seems to work FINE for authors!). Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 -- --- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech ~ Mark R. Diggory - DSpace Developer and Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology Home Page: http://purl.org/net/mdiggory/homepage - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech