[Dspace-tech] Successfully able to do batch import

2009-06-29 Thread Yureshwar Dspace
Hi all,

Now I am able to do  batch import via command line. The problem is that we
should give the root folder of the files containing folder. means for
example if you are files(dublin_core.xml, filename.ext, contents) are under
c:\export\item-01\ then you have to declare the source path as c:\export\
only not c:\export\item-01\

The syntax for the command is

*(linux)*

/dspace/bin/import -a -e usern...@domain.com -c handle/collectionid -s
pathtotherootfolder(/export/) -m whatevername

*(windows)*

c:\dspace\bin\dsrun org.dspace.app.itemimport.ItemImport -a -e
usern...@domain.com -c handle/collectionid -s
pathtotherootfolder(c:\export\) -m whatevername

-- 
Regards,
Yureshwar Ravuri.
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Batch Upload - blank mapfile

2009-06-26 Thread Yureshwar Dspace
Hi jason,

I have already tried with the command you have told for the batch import.
But still its not showing. I have exported one item from the repository via
web browser and the same exported file i have imported. But still its not
showing in the web browser. I have raised this as a bug in the dspace bugs
issue page. You can find that in here
http://jira.dspace.org/jira/browse/DS-237

Regards,
Yureshwar Ravuri.
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Error while i am trying to add jw wmv player

2009-06-22 Thread Yureshwar Dspace
Hi stuart,

Thank you very much for the information. I have rectified it. It is not
showing any errors when compiling. But it is not playing the mpeg,wmv
videos. The function is calling and the message is also appearing as *Videos
will be played here *as i have declared in the function. Can you please tell
me why the player is not able to load and play the wmv and mpeg files. Here
is the code which i am using.
  private void showwmvPlayer() throws IOException
{
 try
 {
Bundle[] bundles = item.getBundles(ORIGINAL);
if (bundles.length  0)
{
Bitstream[] bitstreams = bundles[0].getBitstreams();
boolean found = false;
for (Bitstream bitstream : bitstreams)
{
if (!found)
{
if
((video/mpeg.equals(bitstream.getFormat().getMIMEType())) ||

(video/wmv.equals(bitstream.getFormat().getMIMEType(
{
// We found one, don't search for any more
found = true;

// Display the player
HttpServletRequest request =
(HttpServletRequest)pageContext.getRequest();
String url =request.getContextPath() + /bitstream/
+ item.getHandle() + / +
   bitstream.getSequenceID() + / +

UIUtil.encodeBitstreamName(bitstream.getName(), Constants.DEFAULT_ENCODING);
JspWriter out = pageContext.getOut();
out.println(script type=\text/javascript\ src=\ +
request.getContextPath() +
/ silverlight.js\/script\n +
script type=\text/javascript\ src=\ +
request.getContextPath() +
/player.js\/script\n +
centerdiv id=\player1\Videos will be
played here/div/center +
script type=\text/javascript\\n +
var elm =
document.getElementById('player1');\n +
var src = '/wmvplayer.xaml';\n +
var cfg = {file:' + url +
autostart=true',width:'320',height:'180'};\n +
var ply = new jeroenwijering.Player( +
request.getContextPath() + elm,src,cfg);\n +
/script);
}
}
}
  }
I am using JW wmv player for that.


On Mon, Jun 22, 2009 at 5:25 AM, Stuart Lewis s.le...@auckland.ac.nzwrote:

  Hi Yureshwar,



 It looks like the error might be due to some unescaped embedded quotation
 marks (for example, some are shown in red below).



 var elm = document.getElementById(**player1**);\n



 Thanks,





 Stuart Lewis

 Digital Services Programmer

 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/*







 *From:* Yureshwar Dspace [mailto:dspace.yuresh...@gmail.com]
 *Sent:* Thursday, 18 June 2009 10:31 p.m.
 *To:* Stuart Lewis
 *Cc:* dspace-tech@lists.sourceforge.net
 *Subject:* Error while i am trying to add jw wmv player



 Hi Staurt Lewis,

 I am currently developing the dspace for my college. Can you please help me
 how to add wmv player like flv player you have added. I am trying to
 integrate the java script from the site in the code which you given for flv
 player. When i am compiling it is showing error. here is the code which i
 have written into your code and the error i got. I have modified after
 out.println

 out.println(script type=\text/javascript\ src=\ +
 request.getContextPath() + / silverlight.js\/script\n +
 script type=\text/javascript\ src=\ + request.getContextPath() +
 /player.js\/script\n +
 centerdiv id=\player1\Videos will be played here/div/center +
 script type=\text/javascript\\n
 var elm = document.getElementById(player1);\n
 var src = 'wmvplayer.xaml';\n
 var cfg = {
 file: + url + autostart=true',
 width:'320',
 height:'180'
 };\n
 var ply = new jeroenwijering.Player( + request.getContextPath() +
 elm,src,cfg);\n
 /script);

 *Errors:*

 /home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1130,0]
 unclosed string literal

 /home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1130,35]
 ';' expected

 /home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1132,11]
 unclosed character literal

 /home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1132,26]
 unclosed character literal

 /home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app

[Dspace-tech] Error while creating thumbnails.

2009-06-22 Thread Yureshwar Dspace
Hi all,

Can anyone help why thumbnails are creating. Until day before yesterday i am
able to create the thumbnails by enabling *webui.preview.enabled = true* but
now i have updated with some video player in my dspace and i have updated it
from then onwards i am unable to create the thumbnail. Can any one help me
please. When i run /dspace/bin/filter-media it is updating only search index
only.

-- 
Regards,
Yureshwar Ravuri.
--
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Error while i am trying to add jw wmv player

2009-06-18 Thread Yureshwar Dspace
Hi Staurt Lewis,

I am currently developing the dspace for my college. Can you please help me
how to add wmv player like flv player you have added. I am trying to
integrate the java script from the site in the code which you given for flv
player. When i am compiling it is showing error. here is the code which i
have written into your code and the error i got. I have modified after
out.println

out.println(script type=\text/javascript\ src=\ +
request.getContextPath() + / silverlight.js\/script\n +
script type=\text/javascript\ src=\ + request.getContextPath() +
/player.js\/script\n +
centerdiv id=\player1\Videos will be played here/div/center +
script type=\text/javascript\\n
var elm = document.getElementById(player1);\n
var src = 'wmvplayer.xaml';\n
var cfg = {
file: + url + autostart=true',
width:'320',
height:'180'
};\n
var ply = new jeroenwijering.Player( + request.getContextPath() +
elm,src,cfg);\n
/script);

*Errors:*

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1130,0]
unclosed string literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1130,35]
';' expected

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1132,11]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1132,26]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1132,21]
not a statement

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1134,2]
illegal start of expression

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1134,7]
'}' expected

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1134,34]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1135,8]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1135,12]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1135,10]
not a statement

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1136,9]
unclosed character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1136,13]
illegal line end in character literal

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1136,11]
not a statement

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1138,69]
')' expected

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1138,72]
illegal start of expression

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1138,80]
';' expected

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1139,0]
not a statement

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1139,11]
';' expected

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1103,5]
'try' without 'catch' or 'finally'

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1145,5]
illegal start of type

/home/dspace/dspace-1.5.2-src-release/dspace-jspui/dspace-jspui-api/src/main/java/org/dspace/app/webui/jsptag/ItemTag.java:[1150,0]
class, interface, or enum expected



-- 
Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Can we change the layout posistions of dspace in jspui

2009-06-17 Thread Yureshwar Dspace
Hi,

Is it possible to change the layout posistions in jspui. I want to have the
navigation bar at right side and below it i want side bar. Can it be
possible.

-- 
Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Where can i change the default text messages in jspui

2009-06-16 Thread Yureshwar Dspace
Can anyone tell where can i change the default text messages in jspui. I
mean from where the text is calling into the string fmt:message
key=jsp.layout.header-default.alt/

-- 
Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Test condition is failing for showing thumbnails in xmlui

2009-06-15 Thread Yureshwar Dspace
Hi

Can anyone plot out why the test condition is failing in my code for
displaying the thumbnails of an image in xmlui.
xsl:choose
   xsl:when
test=$context/mets:METS/mets:fileSec/mets:fileg...@use='THUMBNAIL']
a class=image-link
xsl:attribute name=href
xsl:value-of
select=./mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute
img alt=Thumbnail
xsl:attribute name=src
xsl:value-of
select=$context/mets:METS/mets:fileSec/mets:fileg...@use='THUMBNAIL']/

mets:file/mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute
/img
/a
/xsl:when
xsl:otherwise
a
xsl:attribute name=href
xsl:value-of
select=./mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute
img alt=Thumbnail
   xsl:attribute name=src
   xsl:value-of
select=./mets:fileSec/mets:fileg...@use='THUMBNAIL']/

mets:file/mets:floc...@loctype='URL']/@*[local-name()='href']/
   /xsl:attribute
/img --

i18n:textxmlui.dri2xhtml.METS-1.0.item-files-viewOpen/i18n:text
/a
/xsl:otherwise
/xsl:choose
-- 
Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] How to add thumbnail preview for all items in one collection in xmlui how to add video preview for xmlui.

2009-06-10 Thread Yureshwar Dspace
Hi can anyone help me how to add thumbnail preview for all items in one
collection in xmlui.

 i want to add video preview for xmlui. I found one resource but there is
not enough guidence on how to add it here is link.

Link:
http://wiki.dspace.org/index.php//DSpace_1.5_XMLUI_FLV_Video_Progressive_Download/

Thanks in advance.


Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] thumbnails are not showing in xmlui theme even i am having it declared.

2009-06-10 Thread Yureshwar Dspace
Hi all,

I have an theme which shows the preview of the thumbnail. But it is not
showing the preview the test conditioned is failed. here is the code where
it checks the thumbnails. Can anyone help me how to fix this.


*Code*

*td
xsl:choose
   xsl:when
test=$context/mets:METS/mets:fileSec/mets:fileg...@use='THUMBNAIL']
a class=image-link
xsl:attribute name=href
xsl:value-of
select=./mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute
img alt=Thumbnail
xsl:attribute name=src
xsl:value-of
select=$context/mets:METS/mets:fileSec/mets:fileg...@use='THUMBNAIL']/

mets:file/mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute
/img
/a
/xsl:when
xsl:otherwise
a
xsl:attribute name=href
xsl:value-of
select=./mets:floc...@loctype='URL']/@*[local-name()='href']/
/xsl:attribute

i18n:textxmlui.dri2xhtml.METS-1.0.item-files-viewOpen/i18n:text
/a
/xsl:otherwise
/xsl:choose
/td
*
**

-- 
Regards,
Yureshwar Ravuri.
--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] XMLUI: how to add preview function for all the images that are in one collection

2009-06-05 Thread Yureshwar Dspace
Hi all,

  Can anyone help me how add image preview function for all the images that
are in one collection for xmlui. It is showing the files in a table but no
images previews are available. If the collection has single file then it is
showing the preview.
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] XMLUI: How to add video preview function for xmlui.

2009-06-05 Thread Yureshwar Dspace
Hi all its again me,

How to add video preview function for xmlui as we can add for jspui. For
jspui video preview you can follow the link.

Link:
http://blog.stuartlewis.com/2009/05/27/easy-pseudo-video-streaming-for-dspace-repositories/


Can we do similar thing for xmlui. If so where we can add that code.


Regards,

Yureshwar Ravuri.
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Can it be possible to sort by file types.

2009-06-02 Thread Yureshwar Dspace
I want to search by file types can it be possible to do that. Is there
anyway for doing it.


Thanks  regards,
Yureshwar Ravuri.
--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech