Re: [Dspace-tech] xmlui customizations

2009-04-30 Thread Kim Shepherd
There's a wee HOWTO at 
http://wiki.dspace.org/index.php/Modify_item_metadata_display_(Manakin) that 
could probably do with a bit of updating and some examples added.

Cheers,

Kim

 -Original Message-
 From: Mark H. Wood [mailto:mw...@iupui.edu]
 Sent: Thursday, 30 April 2009 9:01 a.m.
 To: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] xmlui customizations
 
 On Wed, Apr 29, 2009 at 04:19:00PM -0400, Jeffrey Trimble wrote:
  So, I do need to customize the *.xsl files that are stored in the
  dri2xhtml directory huh?!
 
 Well, I'd leave those alone and just copy what you need into a theme,
 then customize it there, but yes, your starting point is in there.
 
  One further questions, since I have been in those files looking at
  them.  Is it possbile to code more indepth HTML coding like Tables,
  TR, TD or will cocoon cough at this during transformation?
 
 I think you could, but haven't tried anything extensive myself.
 Cocoon is just running the XSL engine over its inputs.  If you keep the
 namespaces straight, HTML should just flow through.  What you have to
 watch is how the various XSL bits assemble the page, so you wind up
 with well-formed HTML.
 
 --
 Mark H. Wood, Lead System Programmer   mw...@iupui.edu
 Friends don't let friends publish revisable-form documents.
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] xmlui customizations

2009-04-29 Thread Jeffrey Trimble
So, how does one customize the brief item display of fields?  I am not  
able to
find a reference to this in the documentation.  Any assistance is  
appreciated.


--Jeff

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu



--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] xmlui customizations

2009-04-29 Thread Mark H. Wood
On Wed, Apr 29, 2009 at 01:24:16PM -0400, Jeffrey Trimble wrote:
 So, how does one customize the brief item display of fields?  I am
 not able to find a reference to this in the documentation.  Any
 assistance is appreciated.

Good question!  Unless something has changed recently, you didn't miss
it in the documentation (and we need to fix that).

The various pages are laid out by the Theme which is active for a
given URL.  (This is determined in config/xmlui.xconf, near the
bottom.)  So you first need to figure out which Theme you're going to
customize.

All the Themes I'm aware of inherit a lot of code from what I like to
call the Theme library:  'themes/dri2xhtml.xsl' and the components it
'xsl:import's from 'themes/dri2xhtml/*'.  In the source kit these are
found under 'dspace-xmlui/dspace-xmlui-webapp/src/main/webapp'.
There's some discussion on the wiki of copying a Theme to make a new
one, if you need to do that.  (It's probably a good idea to do so
whenever you customize.)

You need to fish around in the Theme library to find the bit of XSL
that transforms DRI elements into the kind of page you want to alter.
The stuff I want to change tends to be in 'dri2xhtml/DIM-Handler.xsl'.
Typically you make a copy of that code and place it in your Theme's
own something.xsl, making the necessary alterations.  That causes your
altered version of the template(s) to override the 'import'ed code
from the library.

I think the area you want is the itemSummaryView-DIM template.

I think there's some material on the wiki about getting the raw DRI
for an interesting page, which may help to track down the particular
transform code for the portion you're interested in.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgppIYl0DrEiZ.pgp
Description: PGP signature
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] xmlui customizations

2009-04-29 Thread Jeffrey Trimble

Excellent!

So, I do need to customize the *.xsl files that are stored in the  
dri2xhtml directory huh?!


One further questions, since I have been in those files looking at  
them.  Is it possbile to
code more indepth HTML coding like Tables, TR, TD or will cocoon cough  
at this during

transformation?

--Jeff

Jeffrey Trimble
System LIbrarian
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jtrim...@cc.ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu



On Apr 29, 2009, at 4:03 PM, Mark H. Wood wrote:


On Wed, Apr 29, 2009 at 01:24:16PM -0400, Jeffrey Trimble wrote:

So, how does one customize the brief item display of fields?  I am
not able to find a reference to this in the documentation.  Any
assistance is appreciated.


Good question!  Unless something has changed recently, you didn't miss
it in the documentation (and we need to fix that).

The various pages are laid out by the Theme which is active for a
given URL.  (This is determined in config/xmlui.xconf, near the
bottom.)  So you first need to figure out which Theme you're going to
customize.

All the Themes I'm aware of inherit a lot of code from what I like to
call the Theme library:  'themes/dri2xhtml.xsl' and the components  
it

'xsl:import's from 'themes/dri2xhtml/*'.  In the source kit these are
found under 'dspace-xmlui/dspace-xmlui-webapp/src/main/webapp'.
There's some discussion on the wiki of copying a Theme to make a new
one, if you need to do that.  (It's probably a good idea to do so
whenever you customize.)

You need to fish around in the Theme library to find the bit of XSL
that transforms DRI elements into the kind of page you want to alter.
The stuff I want to change tends to be in 'dri2xhtml/DIM-Handler.xsl'.
Typically you make a copy of that code and place it in your Theme's
own something.xsl, making the necessary alterations.  That causes your
altered version of the template(s) to override the 'import'ed code
from the library.

I think the area you want is the itemSummaryView-DIM template.

I think there's some material on the wiki about getting the raw DRI
for an interesting page, which may help to track down the particular
transform code for the portion you're interested in.

--
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.
--
Register Now  Save for Velocity, the Web Performance  Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance  Operations tracks. Use code  
vel09scf

and Save an extra 15% before 5/3. 
http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] xmlui customizations

2009-04-29 Thread Mark H. Wood
On Wed, Apr 29, 2009 at 04:19:00PM -0400, Jeffrey Trimble wrote:
 So, I do need to customize the *.xsl files that are stored in the dri2xhtml 
 directory huh?!

Well, I'd leave those alone and just copy what you need into a theme,
then customize it there, but yes, your starting point is in there.

 One further questions, since I have been in those files looking at
 them.  Is it possbile to code more indepth HTML coding like Tables,
 TR, TD or will cocoon cough at this during transformation?

I think you could, but haven't tried anything extensive myself.
Cocoon is just running the XSL engine over its inputs.  If you keep
the namespaces straight, HTML should just flow through.  What you have
to watch is how the various XSL bits assemble the page, so you wind up
with well-formed HTML.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Friends don't let friends publish revisable-form documents.


pgpw35vUD1Nnb.pgp
Description: PGP signature
--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech