Re: [Dspace-tech] Organize icons and add file descriptions in browse and search results

2009-08-19 Thread Fabricio Costa
Steven,

Thanks.

I've already added vertical-align=middle to your format-icon class in my CSS. 
The issue is not vertical alignment. The problem is that items don't stay below 
each other (see images).

I also couldn't insert description, i don't know why. I used the code, but 
nothing appeared.

As i'm not a programmer or something like that, maybe i'm doing something wrong.

The code for the slider in theme's XSL is below. Thanks.


!-- Generate the metadata slider (aka popup) text about the item from the 
metadata section --
xsl:template match=dim:dim mode=itemMetadataPopup-DIM
table class=ds-includeSet-metadata-table

!-- is version of --
xsl:if test=dim:fie...@element='relation' and 
@qualifier='isversionof']
tr class=ds-table-row even
tdspan 
class=boldi18n:textxmlui.dri2xhtml.METS-1.0.item-isVersionOf/i18n:text:/span/td
tdxsl:copy-of select=dim:fie...@element='relation' and 
@qualifier='isversionof'][1]/child::node()//td
/tr
/xsl:if

!-- referenced item --
xsl:if test=dim:fie...@element='relation' and @qualifier='uri']
tr class=ds-table-row odd
tdspan 
class=boldi18n:textxmlui.dri2xhtml.METS-1.0.item-relationUri/i18n:text:/span/td
td
xsl:for-each select=dim:fie...@element='relation' and 
@qualifier='uri']
a
xsl:attribute name=href
xsl:copy-of select=./node()/
/xsl:attribute
xsl:copy-of select=./node()/
/a
xsl:if 
test=count(following-sibling::dim:fie...@element='relation' and 
@qualifier='uri']) != 0
br/
/xsl:if
/xsl:for-each
/td
/tr
/xsl:if
/table


br/


xsl:variable name=context select=ancestor::mets:METS/
xsl:variable name=data 
select=./mets:METS/mets:dmdSec/mets:mdWrap/mets:xmlData/dim:dim/

xsl:apply-templates select=$data mode=detailView/
xsl:variable name=primary select=$context/mets:structm...@type = 
'LOGICAL']/mets:d...@type='DSpace Item']/mets:d...@type='DSpace Content 
Bitstream']/mets:fptr/@FILEID /

xsl:variable name=bitstream-count 
select=count($context/mets:structm...@type = 'LOGICAL']/mets:d...@type='DSpace 
Item']/mets:d...@type='DSpace Content Bitstream']) /

xsl:choose

!-- If one exists only display the primary bitstream --
xsl:when 
test=$context/mets:METS/mets:fileSec/mets:fileg...@use='CONTENT']/mets:fi...@id=$primary]
xsl:if test=$bitstream-countlt;2
   xsl:call-template name=buildBitstreamOnePrimary  

xsl:with-param name=context select=$context/
xsl:with-param name=file 
select=$context/mets:fileSec/mets:fileg...@use='CONTENT']/mets:fi...@id=$primary]/
/xsl:call-template
 /xsl:if


xsl:if test=$bitstream-countgt;1
xsl:call-template name=buildBitstreamSingle
xsl:with-param name=context select=$context/
xsl:with-param name=file 
select=$context/mets:fileSec/mets:fileg...@use='CONTENT']/mets:fi...@id=$primary]/
/xsl:call-template

a class=slider-bitstream-count 
href={ancestor::dri:object/@url}
(mais arquivos)
/a
/xsl:if
/xsl:when


!-- Otherwise, iterate over and display some (4) of 
them --
xsl:otherwise
xsl:for-each 
select=$context/mets:fileSec/mets:fileg...@use='CONTENT']/mets:file
xsl:sort 
select=./mets:floc...@loctype='URL']/@xlink:title/ 
xsl:if test=position()lt;5

!-- Add File Format icon, based on MIME Type --
xsl:call-template 
name=getFileFormatIcon
xsl:with-param 
name=mimetype
xsl:value-of 
select=substring-before(@MIMETYPE,'/')/
xsl:text//xsl:text
xsl:value-of 

[Dspace-tech] Bit streams size

2009-08-19 Thread Mariano A. Belladonna
Is there a limit imposed by DSpace on the size of files to be included 
into an item? Can it be fixed somehow?

Thanks.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Recent submissions text does not change when metadata is updated

2009-08-19 Thread John Preston
I am using dspace 1.5.2 with xmlui. Ir submitted an item without problems.
However, when I update the metadata data, specifically the title and
dc.publisher, when I view the collection page the recent submission text for
the item does not reflect the updated metadata. It still shows the old
author and dc.publisher.

Where do I need to change this data.

John
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Recent submissions text does not change when metadata is updated

2009-08-19 Thread John Preston

  Hi John this may not help but have you tried re-starting tomcat?  I’ve
 had several cases where that was required before a change is reflected.

Restarting does not fix the problem.

John

 Stephen



 Stephen Wilkinson

 System Support Technician

 Information Technology Services

 McLaughlin Library

 University of Guelph

 GUELPH, ON.  N1G 2W1

 519-824-4120 X 53939

 swilk...@uoguelph.ca







 *From:* John Preston [mailto:byhisde...@gmail.com]
 *Sent:* Wednesday, August 19, 2009 12:28 PM
 *To:* dspace-tech@lists.sourceforge.net
 *Subject:* [Dspace-tech] Recent submissions text does not change when
 metadata is updated



 I am using dspace 1.5.2 with xmlui. Ir submitted an item without problems.
 However, when I update the metadata data, specifically the title and
 dc.publisher, when I view the collection page the recent submission text for
 the item does not reflect the updated metadata. It still shows the old
 author and dc.publisher.

 Where do I need to change this data.

 John

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Recent submissions text does not change when metadata is updated

2009-08-19 Thread John Preston
Ok I have been running dspace under jetty because I was having some issues
with tomcat caching pages. I would login and then two pages on it would ask
me to login again, or I would change some metadata and the page would not
show it until I cleared the browser cache. This didn't seem to happen with
the same frequency under jetty. But now when I change back to tomcat 6.0.18
this problem has disappeared.

I'm not sure which application server to use? Urghh

John

On Wed, Aug 19, 2009 at 2:19 PM, John Preston byhisde...@gmail.com wrote:

  Hi John this may not help but have you tried re-starting tomcat?  I’ve
 had several cases where that was required before a change is reflected.

 Restarting does not fix the problem.

 John

 Stephen



 Stephen Wilkinson

 System Support Technician

 Information Technology Services

 McLaughlin Library

 University of Guelph

 GUELPH, ON.  N1G 2W1

 519-824-4120 X 53939

 swilk...@uoguelph.ca







 *From:* John Preston [mailto:byhisde...@gmail.com]
 *Sent:* Wednesday, August 19, 2009 12:28 PM
 *To:* dspace-tech@lists.sourceforge.net
 *Subject:* [Dspace-tech] Recent submissions text does not change when
 metadata is updated



 I am using dspace 1.5.2 with xmlui. Ir submitted an item without problems.
 However, when I update the metadata data, specifically the title and
 dc.publisher, when I view the collection page the recent submission text for
 the item does not reflect the updated metadata. It still shows the old
 author and dc.publisher.

 Where do I need to change this data.

 John



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] [Dspace-general] Bit streams size

2009-08-19 Thread Stuart Lewis
Hi Mariano,

 Is there a limit imposed by DSpace on the size of files to be included
 into an item? Can it be fixed somehow?

There is no limit imposed by DSpace, however there may be limits based on
your operating system, filesystem, or bandwidth to the server if initiating
large uploads from a browser.

If you want to limit the size of uploads, there is setting in the main
configuration file 'dspace.cfg' that can be used:

# Maximum size of uploaded files in bytes, negative setting will result in
no limit being set
# 512Mb
upload.max = 536870912

I hope this helps,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: 64 9 373-7599 x81928
http://www.library.auckland.ac.nz/


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Bit streams size

2009-08-19 Thread Van Ly

On 19/08/2009, at 7:06 PM, Mariano A. Belladonna wrote:

 Is there a limit imposed by DSpace on the size of files to be included
 into an item? Can it be fixed somehow?




DSpace 1.4.2 has the parameter `upload.max' you can set in  
dspace.cfg. How it works is detailed in FileUploadRequest.java. Look for

  int maxSize = ConfigurationManager.getIntProperty(upload.max);
  DiskFileUpload upload = new DiskFileUpload();
  upload.setSizeMax(maxSize);

Best wishes,

Van Ly
vly at usyd dot edu dot au





--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech