----- Original Message ----- 
From: "Mark Diggory" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Valerio Minetti" <[EMAIL PROTECTED]>; 
<[email protected]>
Sent: Monday, April 28, 2008 11:57 AM
Subject: Re: [Dspace-tech] DSpace 1.5 themes and source


>
> On Apr 28, 2008, at 10:16 AM, <[EMAIL PROTECTED]> wrote:
>
>> ----- Original Message -----
>> From: "Valerio Minetti" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>; <[email protected]>
>> Sent: Monday, April 28, 2008 10:39 AM
>> Subject: Re: [Dspace-tech] DSpace 1.5 themes and source
>>
>>
>>>> 2. Since i've been doing customizations in dspace/ no dspace- source/,
>>>> how to
>>>> preserve theme through updates and rebuilds? I'll  move changes to
>>>> dspace.cfg and input-forms.xml to dspace-source/, but what to do  about
>>>> Custom theme - where in the source three do i put it? dspace/ target/ 
>>>> is
>>>> overwritten during maven build, right? do i put it into
>>>> dspace/modules/xmlui/target/xmlui1.5.0/themes/?
>>>
>>> [dspace-source]\dspace-xmlui\dspace-xmlui-webapp\src\main\webapp \themes
>>
>> See - that's one of the sources of my headaches - there is no such 
>> directory
>> in my source tree! I downloaded dspace-1.5.0-release.tar.bz2,  uzipped 
>> it,
>> etc. etc... Did i download the wrong file?
>
> Right... see my email... use dspace/modules/xmlui

Got it

>>
>>
>>>
>>> Maybe you should consider creating a local svn repository and
>>> branching the original dspace source,
>>> in this way you could update platform sources and bring on your  custom
>>> themes/aspect development.
>>> (i'm not an svn expert, so feel free to add more details for this
>>> operation)
>>
>> Currect me if i'm wrong, but seems a bit of overkill to just change 
>> ItemView
>> page. I can change input form in dspace.cfg, but to not ItemView.
>
> Yes and No, We are really talking about just the contents of the 
> dspace-release (i.e. [dspace-source]/dspace which is primarily just 
> configuration and customization.  you can run an svn repository 
> internally to save this stuff it. The point of using SVN is to  preserve 
> all your changes so that you can keep track of them. As you  make more and 
> more customizations. You will start to find tracking all  them 
> problematic. I say this from experience.

True, but lack of expertise in the future (let's face it - university salary 
pretty much garanties a lot of staff turnover) will pretty much turn 
repository into dead software...

>>
>>
>>>
>>>> 3. What files do what in xmlui? There is very little documentation  as
>>>> far as
>>>> i can tell. How dri2xhtml/ and dri2xhtml.xsl included in the theme?
>>>
>>> look at xml:include directives on top of your xsl theme file.
>>> I suggest you to have a look at w3cschool tutorials about xsl, xslt,
>>> xpath and xquery languages.
>>> http://www.w3schools.com/
>>>
>>
>> Again - no include directives in any of xls files, Reference theme 
>> dosn't
>> even have xls file. :(
>
> "xsl"

Sorry  - made a typo. Again - there is no "xml:include" in any of the xsl 
files. There are however "xsl:import" - <xsl:import 
href="../dri2xhtml.xsl"/>, so that's how external xsl included. I'll try to 
play with it....

>
>
> Correct, the Reference Theme uses the default dri2xhtml.xsl and  doesn't 
> have its own template.xsl, I recommend looking that the  classic or 
> Kuberick themes.

So, say i build a self-comtained theme with it's own copy of dri2xhtml.xsl 
and just drop it into /themes directory after update. Any hidden dangers in 
this appoach?

Thanks to everyone for help

Vadim

>
> -Mark
>
>
>


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to