Yes, I see how it gets set here:

                findItem.setHead(T_head1);

I think what is causing me so much trouble is my lack of knowledge of DRI and 
cocoon.

I was expecting the DRI object to be completely converted to HTML by the 
themes, but that is not the case, right?  Some tags in the DRI object are 
handled by cocoon, right, and this is one of them.

For now I've just been trying to understand the code because I'd like to make a 
change to the withdraw confirmation page. I'd like to add a pick list for the 
user to select the reason for withdraw.  How I create this pick list is still a 
mystery to me.  I've been looking at the creation of the pick list for the 
advanced search page as a guide. Actually, hoping that I could copy paste and 
change a few things, but I don't think it's going to be that easy. 

I'm going to read:
http://scott.phillips.name/wp-content/uploads/2009/05/tdl-manakin-training.pdf\

to see if it can help me.

I found the jspui interface a lot easier to understand.

-Jose

-----Original Message-----
From: Pottinger, Hardy J. [mailto:[email protected]] 
Sent: Thursday, October 07, 2010 12:29 PM
To: Blanco, Jose; Walker, David; Tim Donohue
Cc: [email protected]
Subject: RE: [Dspace-tech] manikin question

Hi, Jose: 

> would put the message "Find Item" in the url

I'm guessing you actually mean in the title of the page?

I believe your answer is somewhere in this file:

  
dspace-src/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/administrative/item/
 FindItemForm.java

Two methods are of interest here: addPageMeta and addBody, they define the 
content for the Find Item form.

Does that help?

--Hardy 

> -----Original Message-----
> From: Blanco, Jose [mailto:[email protected]]
> Sent: Thursday, October 07, 2010 10:19 AM
> To: Walker, David; Tim Donohue
> Cc: [email protected]
> Subject: Re: [Dspace-tech] manikin question
> 
> But how does it get from that file to the page?
> 
> -----Original Message-----
> From: Walker, David [mailto:[email protected]]
> Sent: Thursday, October 07, 2010 10:58 AM
> To: Blanco, Jose; Tim Donohue
> Cc: [email protected]
> Subject: RE: [Dspace-tech] manikin question
> 
> Hi Jose,
> 
> Text labels are not set in the XSLT, but rather are defined in the
> i18n/messages.xml file.
> 
> --Dave
> 
> ==================
> David Walker
> Library Web Services Manager
> California State University
> http://xerxes.calstate.edu
> ________________________________________
> From: Blanco, Jose [[email protected]]
> Sent: Thursday, October 07, 2010 7:20 AM
> To: Tim Donohue
> Cc: [email protected]
> Subject: Re: [Dspace-tech] manikin question
> 
> I'm really having a hard time with this.  In order to understand the
> code a bit more, I'm trying to find the line in the themes dir that
> would put the message "Find Itme" in the url:
> 
> http://dspace-test-area/admin/item
> 
> So I looked at
> 
> http://dspace-test-area/DRI/admin/item
> 
> which contains:
> 
> <document version="1.1">
> −
> <body>
> −
> <div id="aspect.administrative.item.FindItemForm.div.find-item"
> interactive="yes" rend="primary administrative item"
> action="/admin/item" n="find-item" method="get">
> <head>Find Item</head>
> 
> So I figure I need to look for some match on the dri:div where
> id="aspect.administrative.item.FindItemForm.div.find-item"
> 
> But I can't find it.  I have tried removing code to see if I can find it
> that way, but after a whole day of it, I can't find it.  How does 'Find
> Item' make it to the browser window.
> 
> Thank you!
> Jose
> 
> -----Original Message-----
> From: Tim Donohue [mailto:[email protected]]
> Sent: Thursday, September 30, 2010 10:26 AM
> To: Blanco, Jose
> Cc: [email protected]
> Subject: Re: [Dspace-tech] manikin question
> 
> Hi Jose,
> 
> Actually, that's exactly my point.  There is not a single template that
> renders the entire middle of the page.  It's rendered by several
> templates working together.
> 
> So, if you take a look closely, the middle part of the page is a giant
> table (with class="ds-table").  If you dig into the dri2xhtml.xsl file,
> you'll see it just loads several other XSLs in the /dri2xhtml/ folder.
> In this case, you are looking for templates that generate the structure
> of the page -- so, you'd look in /dri2xhtml/structural.xsl  (the
> *-Handler.xsl files all deal more with displaying actual metadata values
> from the METS files which are generated by Manakin, so you'd look there
> if you wanted to customize what metadata values are being displayed on a
> particular page).  In the structural.xsl file, there is one main
> template that gets called for <dri:table> contents:
> 
> <xsl:template match="dri:table">
> 
> But, notice that template calls several other XSL templates in the file,
> by using the <xsl:apply-templates> or <xsl:call-template> tag.  So,
> depending on what you are looking to change, you may need to follow the
> logic between the templates.
> 
> Sometimes the easiest way to find a very specific template is to looking
> closely at the resulting XHTML that you want to change.  Especially
> looking at specific @class attributes on HTML elements.  Oftentimes you
> can search for those @class attribute values in the XSL templates to
> find where they are being generated.  For example, in this case, you are
> looking at a big HTML table with a class="ds-table".  If you search for
> "ds-table" in the structural.xsl, it will jump you right to the template
> that generates that content.  (In some cases that @class attribute may
> exist in multiple templates, so you'd have to figure out which one you
> really need to change.  But, in this example, it's only one place in the
> structural.xsl file)
> 
> Hope that helps,
> 
> - Tim
> 
> 
> On 9/30/2010 9:03 AM, Blanco, Jose wrote:
> > Tim,
> >
> > Thanks for your reply.  I guess what I'm looking for is the xsl within
> the dri2xhml.xsl file that handles the rendering of the page used when
> the user confirms he wants to withdraw an item.  I see the code that
> displays the header and the footer for that page, but I don't see the
> part that renders the stuff in the middle.
> >
> > -Jose
> > ________________________________________
> > From: Tim Donohue [[email protected]]
> > Sent: Wednesday, September 29, 2010 5:37 PM
> > To: Blanco, Jose
> > Cc: [email protected]
> > Subject: Re: [Dspace-tech] manikin question
> >
> > Jose,
> >
> > I'm not sure I fully understand the question?
> >
> > Manakin works much differently than JSPUI -- so there is never really
> a
> > "one template" to "one page" relationship.  XSL Templates (in a theme)
> > are usually used across many different pages in the system. Also,
> > obviously many templates are used to generate a single page.
> >
> > The template you are looking for should be either in your Theme's XSL
> > file or in the main 'dri2xhml.xsl' file (which is where most of the
> > default templates reside -- as this file just basically transforms DRI
> > into XHTML).
> >
> > If you are having trouble finding the exact template, sometimes it
> helps
> > to look at the DRI structure of that page (add ?XML to the end of the
> > Manakin URL, or&XML if there's other stuff on the querystring
> already).
> >
> > You also may find it useful to use a tool like FireBug
> > (http://getfirebug.com/) to analyze the structure of the generated
> > XHTML, so that you can search through the templates in your Theme's
> XSL
> > to find where that structure is generated.
> >
> > Hopefully that's helpful.  Let us know if any of this doesn't make
> sense.
> >
> > - Tim
> >
> > On 9/29/2010 3:48 PM, Blanco, Jose wrote:
> >> I'm trying to get a better understanding of Manakin, and I've made a
> change in the aspect
> >>
> >> ConfirmItemForm.java
> >>
> >> And would like now to experiment with the theme that handles the
> display of DRIs coming from this aspect, but I can't find the template
> that is responsible for displaying the page that goes with this aspect.
> By page I mean the main body, not the header and footer display.
> >>
> >> Thank you!
> >> Jose
> >>
> >> ---------------------------------------------------------------------
> ---------
> >> Start uncovering the many advantages of virtual appliances
> >> and start using them to simplify application deployment and
> >> accelerate your shift to cloud computing.
> >> http://p.sf.net/sfu/novell-sfdev2dev
> >> _______________________________________________
> >> DSpace-tech mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> ------------------------------------------------------------------------
> ------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> ------------------------------------------------------------------------
> ------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> DSpace-tech mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to