Re: [Dspace-tech] Hide 4 collections in collection-list.xsl

2013-03-13 Thread helix84
I see, you probably had that template already customized and this reverted
your changes. Do yo still have the old template? It might be enough to
comment out this new one. Then the only thing you really need to add is the
condition.

In case it's in another template, find the file name of one of those images
in all the xsl files and send the template. But it may also contain an id
and the image can be defined in css.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Hide 4 collections in collection-list.xsl

2013-03-13 Thread M. Àngels Pulido

  
  
Hello Helix and Hugh,

  
Thank you very much for your help and for your
  solutions. Everything works fine now: 

  the four
  collections
  are not
displayed:


http://dspace.uvic.cat:/xmlui/handle/10854/2
  


Cheers.


El 13/03/2013 8:45, helix84 escribió:

I see, you probably had that template already
  customized and this reverted your changes. Do yo still have the
  old template? It might be enough to comment out this new one. Then
  the only thing you really need to add is the condition.
  

  
  In case it's in another template, find the file name of one
of those images in all the xsl files and send the template. But
it may also contain an id and the image can be defined in css.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

  


-- 
  
M. Àngels Pulido Medina
  Biblioteca - Servei de Recursos
Informàtics
  
  Universitat de Vic
  C. Sagrada Família, 7
  08500 Vic
  Tel. 938 816 170 (8333)
  m.angels.pul...@uvic.cat 
  www.uvic.cat
  

  

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Hide 4 collections in collection-list.xsl

2013-03-12 Thread M. Àngels Pulido

  
  
Hello everybody,

  
I work with
Dspace
1.7.2 and Mirage theme.
I need to hide 4 collections
  that have the following
names and handles:

  X - Formulari -
Llibres
(http://dspace.uvic.cat:/xmlui/handle/10854/1945)
X - Formulari - Captols de llibres
(http://dspace.uvic.cat:/xmlui/handle/10854/1946)
X - Formulari - Article de revista
(http://dspace.uvic.cat:/xmlui/handle/10854/2040)
X - Formulari - Conferncies, Proceedings, Psters
de Congressos no publicats
http://dspace.uvic.cat:/xmlui/handle/10854/2041)

  

  In the file
collection-list.xsl, I created
  this
code 
  that
follows by which I have succeeded
in eliminating the title, "[",
  number of items, etc.

Please
  see:
http://dspace.uvic.cat:/xmlui/handle/10854/2
 
But... I do not know
  how
to removethe
"points" () from the list
only for these four collections.
  

  Can anyone help me, please ?
  

Thanks in advance.

  Sorry for my
inexperience in programming
  xsl :-(
  

  

  



 xsl:template name="collectionSummaryList-DIM"
 xsl:variable name="data"
select="./mets:dmdSec/mets:mdWrap/mets:xmlData/dim:dim"/
 a href="" 
 xsl:choose 
 xsl:when
test="contains($data/dim:field[@element='title'],'Formulari')"
 
 xsl:text
/xsl:text 
 /xsl:when
 
 
 xsl:otherwise
 xsl:value-of
select="$data/dim:field[@element='title'][1]"/ 
 /xsl:otherwise
 /xsl:choose 
 /a
 
   
  
xsl:choose 
 xsl:when
test="($data/dim:field[@element='format'][@qualifier='extent'])=
0"
 xsl:text /xsl:text
 /xsl:when
 
 
 xsl:otherwise
 xsl:text [/xsl:text
xsl:value-of
select="$data/dim:field[@element='format'][@qualifier='extent'][1]"/

xsl:text]/xsl:text
 /xsl:otherwise
 /xsl:choose
 /xsl:template
-- 
  
M. ngels Pulido Medina
  Biblioteca - Servei de Recursos
Informtics
  
  Universitat de Vic
  C. Sagrada Famlia, 7
  08500 Vic
  Tel. 938 816 170 (8333)
  m.angels.pul...@uvic.cat 
  www.uvic.cat
  

  

--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Hide 4 collections in collection-list.xsl

2013-03-12 Thread helix84
Hello,

you can't do it by overriding that template, that's out the scope of what
it matches. You can do it this way:

http://dspace.2283337.n4.nabble.com/Hide-Sub-Community-from-Anonymous-td4662481.html


And change the following condition

xsl:if test=$authenticated or (@url !=
'/metadata/handle/123456789/123/mets.xml')

 to this:

xsl:if test=(@url != '/metadata/handle/10854/1945/mets.xml') or
(@url != '/metadata/handle/10854/1946/mets.xml') or (@url !=
'/metadata/handle/10854/2040/mets.xml') or (@url !=
'/metadata/handle/10854/2041/mets.xml')



Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and remains a good choice in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Hide 4 collections in collection-list.xsl

2013-03-12 Thread Barnes, Hugh
Again, I have no test environment to confirm this, but you should be able to 
more simply suppress specific li elements by creating a more specific 
template which does nothing (i.e. is empty).

Instead of helix84’s template, add this template where it is appropriate (for 
customisations to go):

xsl:template match=dri:reference[
  @url='/metadata/handle/10854/1945/mets.xml' or
  @url='/metadata/handle/10854/1946/mets.xml' or
  @url='/metadata/handle/10854/2040/mets.xml' or
  @url='/metadata/handle/10854/2041/mets.xml'
  ] mode=summaryList / !-- this template has no content --

Note that this would have the side-effect of removing the HTML comments 
(invisible) from the output. I doubt it, but that could have other consequences 
(?).

If you wanted a more robust matching pattern, like the contains 'Formulari' in 
the title you coded, you'd need to specify an XPath for that expression from 
the context of dri:reference. I can't even provide you with a guess for that, 
as I have no source XML document example. It will certainly be a long 
expression and may not even be possible.

Cheers

Hugh Barnes
Digital Access Coordinator
Library, Teaching and Learning
Lincoln University
Christchurch
New Zealand
p +64 3 321 8924 | f +64 3 325 2944

From: helix84 [mailto:heli...@centrum.sk]
Sent: Wednesday, 13 March 2013 1:28 a.m.
To: M. Àngels Pulido
Cc: dspace-tech
Subject: Re: [Dspace-tech] Hide 4 collections in collection-list.xsl

Hello,

you can't do it by overriding that template, that's out the scope of what it 
matches. You can do it this way:

http://dspace.2283337.n4.nabble.com/Hide-Sub-Community-from-Anonymous-td4662481.html


And change the following condition





xsl:if test=$authenticated or (@url != 
'/metadata/handle/123456789/123/mets.xml')




to this:

xsl:if test=(@url != '/metadata/handle/10854/1945/mets.xml') or (@url != 
'/metadata/handle/10854/1946/mets.xml') or (@url != 
'/metadata/handle/10854/2040/mets.xml') or (@url != 
'/metadata/handle/10854/2041/mets.xml')


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


P Please consider the environment before you print this email.
The contents of this e-mail (including any attachments) may be confidential 
and/or subject to copyright. Any unauthorised use, 
distribution, or copying of the contents is expressly prohibited.  If you have 
received this e-mail in error, please advise the sender 
by return e-mail or telephone and then delete this e-mail together with all 
attachments from your system.
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette