Re: [Dspace-tech] [Dspace-general] Change displayed item metadata (XMLUI)
Thank you, Dorothea for your help - i found that by commenting out or adding block below in webapps/xmlui/themes/dri2xhtml/DIM-Handler.xsl i can remove/add metadata from default itemSummaryView. Right. However, i need to add metadata from our custom shceme to itemSummaryView - how do i do that? Well, the first question is whether it's showing up in your DIM, or whether the metadata Aspect isn't smart enough to pull in metadata outside the DC schema. One of the Manakin devs will have a better read on this than I do, but to find out for yourself, navigate to an item page that has metadata from your custom schema and add ?XML to its URL. The result will be the DIM. Search that for your custom metadata. If it's there, you're fine. If not... you'll need to do some Aspect programming, which is a bit above my knowledge level at present. And there is my custom metadata kept? It should be in the metadatavalues table in the database with everything else. What you're looking to do is add more rows while changing the dim:[EMAIL PROTECTED]'myelement' and @qualifier='myqualifier'] piece. If you compare the XSLT code you pasted to the DIM, you should see pretty quickly how that works. 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 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] Change displayed item metadata(XMLUI)
- Original Message - From: Dorothea Salo [EMAIL PROTECTED] To: DSpace Tech-List DSpace-tech@lists.sourceforge.net Sent: Monday, April 21, 2008 10:50 AM Subject: Re: [Dspace-tech] [Dspace-general] Change displayed item metadata(XMLUI) Thank you, Dorothea for your help - i found that by commenting out or adding block below in webapps/xmlui/themes/dri2xhtml/DIM-Handler.xsl i can remove/add metadata from default itemSummaryView. Right. However, i need to add metadata from our custom shceme to itemSummaryView - how do i do that? Well, the first question is whether it's showing up in your DIM, or whether the metadata Aspect isn't smart enough to pull in metadata outside the DC schema. One of the Manakin devs will have a better read on this than I do, but to find out for yourself, navigate to an item page that has metadata from your custom schema and add ?XML to its URL. The result will be the DIM. Search that for your custom metadata. so, my metadata appears in full item view (url - handle/123456789/9?show=full) and if i append ?XML nothing happens. i can get xml with handle/123456789/9?XML, but that doesn't have my metadata. am i doing something wrong? Vadim If it's there, you're fine. If not... you'll need to do some Aspect programming, which is a bit above my knowledge level at present. And there is my custom metadata kept? It should be in the metadatavalues table in the database with everything else. What you're looking to do is add more rows while changing the dim:[EMAIL PROTECTED]'myelement' and @qualifier='myqualifier'] piece. If you compare the XSLT code you pasted to the DIM, you should see pretty quickly how that works. 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 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] Change displayed item metadata(XMLUI)
Use the URLs: handle/123456789/9?XML handle/123456789/9?show=fullXML Scott-- On Apr 21, 2008, at 12:04 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: so, my metadata appears in full item view (url - handle/123456789/9?show=full) and if i append ?XML nothing happens. i can get xml with handle/123456789/9?XML, but that doesn't have my metadata. am i doing something wrong? - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] Change displayed item metadata (XMLUI)
On Mon, Apr 7, 2008 at 11:30 AM, [EMAIL PROTECTED] wrote: (Copying to dspace-tech list; further discussion probably belongs there.) Hello... .. and help! I trying to find a way to change displayed item metadata in simple item view. I'm using Manakin. Now - i know there is a way to do it for JSPUI (Change displayed item metadata (JSP) http://wiki.dspace.org/index.php/Change_displayed_item_metadata_%28JSP%29) But how do i do it for XMLUI? First, build a new theme. Next, go into dri2xhtml/DS-METS-1.0-DIM.xsl and copy the xsl:template whose name attribute is itemSummaryView_DS-METS-1.0-DIM into your theme's XSL. Now you need to add or subtract table rows based on the metadata you do/don't want to see. A typical table row looks like this: tr class=ds-table-row odd tdspan class=boldi18n:textxmlui.dri2xhtml.METS-1.0.item-description/i18n:text:/span/td tdxsl:copy-of select=$data/dim:[EMAIL PROTECTED]'description' and not(@qualifier)]/child::node()//td /tr This is a lot of gobbledygook, but the general idea is to change the @element and @qualifier tests to whatever it is you need, adding text to your messages.xml as needed for the i18n:text element. I strongly recommend not differentiating even and odd table rows in your design if at all possible! What leaving them out lets you do is slap xsl:if statements around the whole row to test whether a metadata item even EXISTS before you display it. I hope this gets you started. 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 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] Change displayed item metadata (XMLUI)
Thank you so much for replying. I'm trying to keep it as generic install as possible, but some customizations just can't be avoided. Of course. But few things i don't understand: 1. build a theme (can i just copy Reference theme into new folder?). i'm guessing yes, according to wiki You can, yes, but don't forget that you have to change some configurations, too. See http://wiki.dspace.org/index.php/Install_a_theme_%28Manakin%29 for what you need to do. 2. i don't have dri2xhtml/DS-METS-1.0-DIM.xsl. all i have in dri2xhtml - DIM-Handler.xsl General-Handler.xsl MODS-Handler.xsl QDC-Handler.xsl structural.xsl. Aha! Looks like I'm behind the times, and filenames have been changed (for the better, I might add). Look in DIM-Handler.xsl. My apologies! 3. there would themes xls be located? all i have in themes dir - images lib(contains only style sheets) sitemap.xmap Your theme's XSL will probably live in the folder for your new theme. (I am hedging here, because I have a multiple-theme repository with one utility XSL file that all the themes call. That utility file does not live in any one theme's folder.) 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 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] [Dspace-general] Change displayed item metadata (XMLUI)
Just a note -- this thread really belongs on dspace-tech rather than dspace-general. I have cc'ed accordingly. Inside of themes/Reference/ is only lib(contains only style sheets) and sitemap.xmap - is it possible that xls file for that theme is themes/template/template.xsl? Without looking at the new build, I'm not sure. In Manakin 1.1, the Reference theme appears to be using only what (if I read your message right) is now themes/dri2xhtml.xsl. Rather than copying that file wholesale into your new theme, let me recommend making a new XSL file and putting this line at the top of it (inside xsl:stylesheet): xsl:import href=../themes/dri2xhtml.xsl/ Then ONLY copy code that you are CHANGING into your new theme. This makes things more maintainable -- you know what you've changed, and you'll automatically reap the benefits of (most) improvements to the base Manakin theme over time. Other themes (Classic and Kubrick) do have [theme-name].xls. But i wuld really like to build on Reference theme. I'll poke around to see if i can figure it out, but any help will be appreciated - the lack of 1.5 specific how-tos is a bit of the killer, but not surprising giving how recent the release is. Well, I feel bad, because I didn't write a good enough Manakin-tutorial proposal to make it into the JCDL preconference offerings. I'll keep trying, though travel restrictions locally may make matters worse... 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 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ DSpace-tech mailing list DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech