[Dspace-tech] Creating a new .jsp page
Hi list, I'm Hakim. I'm still new in Dspace. I want to create a new page called about. The problem is i can't display any information on that page. I wonder why. Can some tell me what should i do if i want to add a new jsp file. Thanks a lot. Zulhakim Bin Esa Research Assistant, FCSIT, University of Malaya - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.- 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] handle server problems
Every Monday our Handle server is running 'wild'. From 0.00 until 24.00, it uses all the free CPU capacity, freeing it if another application needs it. I linked the problem to the creation of the log files, which are created on Monday, 0.00hr. I looked at the configuration and properties files, without noticing a problem. Also the error and access logs are normally created. I only see the following message: 2008/04/21 04:20:52 CEST 25 Started new run. HandleException (INTERNAL_ERROR) Error parsing global info: java.lang.ArrayIndexOutOfBoundsException: 0 at net.handle.hdllib.Encoder.decodeGlobalValues(Encoder.java:2495) at net.handle.hdllib.Configuration.init(Configuration.java:76) at net.handle.hdllib.Configuration.defaultConfiguration(Configuration.java:28) at net.handle.hdllib.HandleResolver.init(HandleResolver.java:41) at net.handle.server.Main.initialize(Main.java:147) at net.handle.server.Main.main(Main.java:96) Had trouble finding your home directory and/or your configuration settings. Will use /home/dspace/.handle. Anyway, since we installed our DSpace installation on a new server (we send the necessary information to the handle registration service), the handle server doesn't like Mondays. Marc Goovaerts Staff member Information Technology Hasselt University Library Bibliotheek Universiteit Hasselt E. [EMAIL PROTECTED] - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] Problem with replace
On Sun, Apr 27, 2008 at 5:09 PM, George Stanley Kozak [EMAIL PROTECTED] wrote: Dorothea: Well, that's why I am confused. I don't know. I was running the command as the dspace user and with my ID which the Admin. I can add the record just fine, but I can't replace the record. Wow, that's weird. About the only other thing I can think of to do is guess that the first attempt to replace the record got stuck halfway somehow. Try rerunning your command adding the -r (for resume) flag. Dorothea -- Dorothea Salo [EMAIL PROTECTED] Digital Repository Librarian AIM: mindsatuw University of Wisconsin Rm 218, Memorial Library (608) 262-5493 - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] google Sitemap and Manakin
Hello A recent discussion about sitemaps in the General mailing list led me to try out the new sitemap functionality as documented in the Google and HTML sitemaps chapter of the new DSpace manual. I can view the sitemap in the JSP client but not in the Manakin client. Am I missing something? George -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] user statistics
Hi, Hi, is there anyone who can help me to add user statistics in dspace. I am using 1.4 and running this in Fedora core 7. See: http://www.dspace.org/index.php?option=com_contenttask=viewid=147 Instructions are under the section titled 'Configuring System Statistical Reports'. Thanks, Stuart _ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _ - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
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 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) 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/ - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] DSpace 1.5 themes and source
- Original Message - From: Valerio Minetti [EMAIL PROTECTED] To: [EMAIL PROTECTED]; dspace-tech@lists.sourceforge.net 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? 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. 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. :( - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] DSpace 1.5 themes and source
On Apr 28, 2008, at 9:39 AM, Valerio Minetti wrote: 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 No you place them in [dspace-source]/dspace/modules/xmlui/src/main/ webapp You want to avoid changing the [dspace-source]/dspace-xxx projects outside the [dspace-source]/dspace directory 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) Yes, and we war talking about just the [dspace-source]/dspace configuration and modules which you need to maintain in a svn repo, everything else can be left out and resolved as a dependency via Maven 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/ The nice thing is that if you go to xmlui and run mvn package once, all the theme resources that are in the original dspace-xmlui-web will then be found in xmlui/target/webapp. You can copy the parts you want upto xmlui/src/main/webapp for your own customizations. -Mark ~ Mark R. Diggory - DSpace Developer and Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
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]; dspace-tech@lists.sourceforge.net 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 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. 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 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. -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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] user statistics
On Mon, Apr 28, 2008 at 8:14 PM, Stuart Lewis [EMAIL PROTECTED] wrote: See: http://www.dspace.org/index.php?option=com_contenttask=viewid=147 Instructions are under the section titled 'Configuring System Statistical Reports'. I have already followed this doc. But, i am facing problem at the time of $in_directory. What is it actually?? I gave the directory location of *log* of dspace directory there. * /usr/src/dspace/log* But, it didn`t work! When i go to run the * /usr/src/dspace/bin/stat-report-initial* command, then the error comes: *Failed to read input file Failed to read input file Failed .. . * -- Best, Z - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] DSpace 1.5 themes and source
- Original Message - From: Mark Diggory [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Valerio Minetti [EMAIL PROTECTED]; dspace-tech@lists.sourceforge.net 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]; dspace-tech@lists.sourceforge.net 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
[Dspace-tech] FW: Creating add-ons or modifications in 1.5
Hello, I'd still appreciate some comments on this from the DSpace gurus out there.. I can't be the only one left wondering about how to best utilize maven for managing different types of DSpace customizations? Best regards Mathias Hjelt ---Original Mesage--- From: Mathias Hjelt [mailto:[EMAIL PROTECTED] Sent: 23. huhtikuuta 2008 9:20 To: 'dspace-tech@lists.sourceforge.net' Subject: Creating add-ons or modifications in 1.5 Hello, Ive been trying to get a grasp of how to port our own add-ons and customizations made in 1.4.2 to the brave new maven-based world of 1.5. I read the SimpleAddonMechanism on the wiki, but that document is still sort of under construction and didnt make things much clearer. Could someone with a better understanding of the maven build process suggest the proper best practice development approaches for the following three scenarios: Scenario 1: Creating a stand-alone Java application which uses the DSpace API. For instance a maintenance application which is to be run using dsrun, i.e. having the dspace classes on the classpath. Currently Ive been developing and building such apps in Eclipse with the entire 1.4.2 project source included, then copying the resulting custom class or jar file manually to [dspace]/custom from where Ive been running them with dsrun. Scenario 2: Creating a custom class that should be compiled into the webapp. For instance a custom plugin for the authentication stack. Currently Ive developed these classes with Eclipse, then added the custom source files into the base [dspace-source] and built the webapp normally using ant. Scenario 3: Making changes to an existing DSpace class. Suppose ones local installation needs a few hacks in an existing Servlet class. To accomplish this in prior versions, Ive applied our local modifications to the existing DSpace source files in [dspace-source] and then built as normally. Any help on how to accomplish the above three scenarios using maven practices is greatly appreciated! Best regards Mathias Hjelt - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] user statistics
On Tue, Apr 29, 2008 at 9:14 AM, Cameron, Jacob [EMAIL PROTECTED] wrote: Did you run stat-initial first? Yes, I ran it before. And this stat-initial can save it`s data to it`s $out_directory=/usr/src/dspace/logs/ And, i gave the same location ( /usr/srce/dspace/logs/ ) for $in_directory of stat-report-initial. But, it didn`t solve! -- Best, Z - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] user statistics
On Tue, Apr 29, 2008 at 10:45 AM, Zico [EMAIL PROTECTED] wrote: On Tue, Apr 29, 2008 at 9:14 AM, Cameron, Jacob [EMAIL PROTECTED] wrote: Did you run stat-initial first? Yes, I ran it before. And this stat-initial can save it`s data to it`s $out_directory=/usr/src/dspace/logs/ And, i gave the same location ( /usr/srce/dspace/logs/ ) for $in_directory of stat-report-initial. But, it didn`t solve! And, another thing. The reports files are creating in /usr/src/dspace/reports. Cause, i can see those files in html form in /usr/src/dspace/reports. But, the thing is, these reports cannot connect my 192.168.3.36 ( that server ). On the top of these html files, it shows the error that, cannot connect to localhost.localdomain. I am really waiting for your word. -- Best, Z - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech
Re: [Dspace-tech] user statistics
Hi Zico, I have already followed this doc. But, i am facing problem at the time of $in_directory. What is it actually?? When you run stat-initial (or stat-monthly / stat-general) it takes the files [dspace]/log/dspace.log* and makes some statistical data files in [dspace]/log/*.dat When you then run the jobs to create the reports (e.g. stat-report-initial) the $in_directory relates to the location of these .dat files. Some checks to carry out: - Do the [dspace]/log/dspace.log files appear as expected? - After running stat-initial, are [dspace]/log/***.dat files created? - Are $start_year and $start_month the same in all the stat scripts? I gave the directory location of log of dspace directory there. /usr/src/dspace/log But, it didn`t work! When i go to run the /usr/src/dspace/bin/stat-report-initial command, then the error comes: Failed to read input file Failed to read input file Failed .. . Assuming all the checks above are OK, then you'll need to edit some java code to work out what exactly is going on. (This has been included in 1.5 by default). Open [dspace-src]/src/org/dspace/app/statistics/ReportGenerator.java and find the following code around line 632: 632 String record = null; 633 try 634 { 635 fr = new FileReader(input); 636 br = new BufferedReader(fr); 637 } 638 catch (IOException e) 639 { 640 System.out.println(Failed to read input file); 641 System.exit(0); 642 } Edit line 640 so that it reads: System.out.println(Failed to read input file: + input); Run an 'ant -Dconfig=[dspace]/config/dspace.cfg update' and then re-run the stats script. It should now report what file it is not finding, and this will help with working out what is going wrong. Thanks, Stuart _ Gwasanaethau Gwybodaeth Information Services Prifysgol Aberystwyth Aberystwyth University E-bost / E-mail: [EMAIL PROTECTED] Ffon / Tel: (01970) 622860 _ - 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 DSpace-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-tech