Re: [Dspace-tech] Re ading dspace DB from other applications - tangent !

2009-02-03 Thread KlausDK

I like the idea using something standalone rather than use some plugin which
could make an upgrade of dspace difficult.

So far I'm using cronolog for apache to make an access_log pr. month. I then
pass this logfile in a php script.

I fetch out those metavalues we need for stats and make another logfile or
insert in another database. I plan on caching the result, so we don't have
to hit dspace database for each request.

I post the php script here, hoping you can use it or be inspired somehow :

#!/usr/bin/php
?

# 200901 Klaus Hessellund @ CBS DK



# parses apache accesslog filen and get timestamp, handle, papertype,
institute and author.



# xxx.xxx.xxx.xxx - - [13/Jan/2009:05:42:02 +0100] GET
/xmlui/bitstream/handle/123456789/19044/qfswhe%26mbox%3dinbox%26charset%3descaped_unicode%26uid%3d57%26number%3d3%26xxx.pdf?sequence=1
HTTP/1.1 200 9 http://130.226.36.214/xmlui/handle/123456789/19044;
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5)
Gecko/2008120122 Firefox/3.0.5

dbconnect();

# get ids for metafields
  $sql = select metadata_field_id from metadatafieldregistry where
element='type' and qualifier is null;
  $papertype_id = getonevalue ($sql);

  $sql = select metadata_field_id from metadatafieldregistry where
element='contributor' and qualifier = 'departmentshort';
  $institute_id = getonevalue ($sql);

  $sql = select metadata_field_id from metadatafieldregistry where
element='contributor' and qualifier = 'author';
  $author_id = getonevalue ($sql);


# open stdin
$fp = fopen (php://stdin,r);

while ($line = fgets($fp)) {
# we only want to know about downloads
if (!preg_match (/\[(.*?):.*GET
\/.*bitstream\/handle\/(.*?\/.*?)\//,$line,$found)) { continue; };

if ($found) {
#print_r ($found);

$epoch = strtotime(preg_replace(/\//,
,$found[1]));

$handle = $found[2];
$papertype = get_metavalue_from_id
($handle,$papertype_id);
$institute = get_metavalue_from_id
($handle,$institute_id);
$author = get_metavalue_from_id
($handle,$author_id);

$sql = insert into handle_log
('date','handle_id','papertype','institute','author') 
values
(FROM_UNIXTIME('$epoch'),'$handle','$papertype','$institute','$author');
echo
$epoch:$handle:$papertype:$institute:$author\n;
#echo $sql . \n;;

}

}




#  some helpful functions

function get_metavalue_from_id($handle,$id) {

global $type_id;

$sql = select text_value from handle h
inner join item i on (h.resource_id = i.item_id) 
inner join metadatavalue m on
(i.item_id = m.item_id)
where m.metadata_field_id = '$id'
and h.handle = '$handle';

#echo $sql . \n;
$value = getonevalue($sql);
return ($value);


}
function getonevalue($sql) {

  $sth = query ($sql);
  $r = pg_fetch_row($sth);
  return ($r[0]);
}

function dbconnect () {

  global $db;

  $db = pg_connect (host=localhost dbname=xxx user=xx
password=xxx);
  if (!$db) {
error_log (DB connect failed:  . pg_last_error());
exit;
  }

}


function query ($sql) {
  global $db;

  $sth = pg_query ($sql);
  if (!$sth) {
error_log (pg_last_error());
exit;
  }
  return ($sth);

}


?
-- 
View this message in context: 
http://www.nabble.com/Reading-dspace-DB-from-other-applications-tp21782514p21807275.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle server

2009-02-03 Thread Claudia Jürgen
Hi Zaya,

if you want to use handles as persistent identifiers e.g. 
http://hdl.handle.net/2003/26015 you got to get a prefix from handle.net 
and register as a resolution service provider. There is a 50$ fee for 
getting the prefix and an additional annual 50$ fee for the resolving 
service see http://www.handle.net/service_agreement.html.

You can use dspace without having a real handle. Just don't create the 
handle as persistent identifier.

Hope that helps

Claudia Jürgen




Zaya Kh schrieb:
 hi all,
 I installed Dspace 1.5.1 on fedora, But i'm not understand handle server,
 i have a question,
 
 Must I have pay some money?
 
 Sorry, my English is not well
 
 Best regards, Zoloo
 
 
 
 
 
 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 
 
 
 
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Handle server

2009-02-03 Thread Robin Taylor
Hi Zoloo,

Yes you do need to pay something but its not a lot, something like $50. The 
Handle service is something provided by CNRI (see 
http://www.cnri.reston.va.us/index.html and http://www.handle.net/). Dspace has 
the Handle software integrated so you don't need to install the software, but 
you do need to create a file called a sitebndl that you send to CNRI. They will 
send you your handle, its just a number that uniquely identifies your site. Its 
been a while since I did this but there should be a script in Dspace to create 
the sitebndl file. I would suggest that you email CNRI, I have found them to be 
very helpful in the past.

I think it is better explained here in the Dspace docs 
http://www.dspace.org/1_5_1Documentation/ch03.html#N10AA9

Cheers, Robin.   


Robin Taylor
Main Library
University of Edinburgh
Tel. 0131 6515208  

 -Original Message-
 From: Zaya Kh [mailto:zayak...@gmail.com] 
 Sent: 03 February 2009 11:20
 To: dspace-tech
 Subject: [Dspace-tech] Handle server
 
 hi all,
 I installed Dspace 1.5.1 on fedora, But i'm not understand 
 handle server, i have a question, 
 
 Must I have pay some money?
 
 Sorry, my English is not well
 
 Best regards, Zoloo
 



-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Statistics error?

2009-02-03 Thread Zaya Kh
Hello again,
I have a question? When I start DSpace's statistics this error show me.

[r...@localhost bin]# ./stat-initial
Exception in thread main org.postgresql.util.PSQLException: ERROR: syntax
error at or near FROM
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:250)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at
org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:209)
at
org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.java:279)
at
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1273)
at
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1302)
at
org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:543)
at
org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.java:291)
at
org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:162)
[r...@localhost bin]#

Can you advice me?
Best regard, Zoloo
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Handle server

2009-02-03 Thread Zaya Kh
hi all,
I installed Dspace 1.5.1 on fedora, But i'm not understand handle server,
i have a question,

Must I have pay some money?

Sorry, my English is not well

Best regards, Zoloo
--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Migrating from Gallery2 to Dspace?

2009-02-03 Thread Tim Ribaric
Hello,
  Does anyone have any experience migrating content from a Gallery2 
(http://gallery.menalto.com/)site to a Dspace instance?  I know Dspace has the 
command line import tool but I think getting the information out of the Gallery 
site into a suitable import format is where the trouble would be.

Thanks,
 Tim


Tim Ribaric
+  Digital Services Librarian
+  James A Gibson Library, Brock University
+++
triba...@brocku.camailto:triba...@brocku.ca
905-688-5550 x5358


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Migrating from Gallery2 to Dspace?

2009-02-03 Thread Mr Havercamp
We were able to migrate data out of Joomla! to DSpace by exporting the 
MySQL data as XML and then using a converter we wrote  and which is now 
available at http://www.sourceforge.net/projects/dcmetatoolkit we were 
able to convert the MySQL XML data into Dublin Core compatible XML and 
batch import it.

The Joomla site is also running Gallery2 so I would assume it would be 
possible.

Hope this helps

Cheers


Hayden

Tim Ribaric wrote:

 Hello,

   Does anyone have any experience migrating content from a Gallery2 
 (http://gallery.menalto.com/)site to a Dspace instance?  I know Dspace 
 has the command line import tool but I think getting the information 
 out of the Gallery site into a suitable import format is where the 
 trouble would be.

  

 Thanks,

  Tim

  

  

 Tim Ribaric

 +  Digital Services Librarian

 +  James A Gibson Library, Brock University

 +++

 triba...@brocku.ca mailto:triba...@brocku.ca

 905-688-5550 x5358

  

  

 

 --
 Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code to
 build responsive, highly engaging applications that combine the power of local
 resources and data with the reach of the web. Download the Adobe AIR SDK and
 Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
 

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


--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] xmlui corruption?

2009-02-03 Thread Poulter, Dale
Good morning all,

 

We recently switch to using the xmlui.  The general display is great but
when a staff member goes in to edit a record with diacritics using the
xmlui the display/record content becomes corrupt.  Any suggestions as to
the cause?  Here is an example :
http://discoverarchive.vanderbilt.edu/handle/1803/2086

 

Thanks for your assistance.

 

 

 

 

--Dale

 

---
Dale Poulter
Automation Coordinator

Library Information Technology Services
Vanderbilt University
Suite 700
110 21st Avenue South
Nashville, TN  37240
(615)343-5388
(615)343-8834 (fax)
(615)207-9705 (cell)
dale.poul...@vanderbilt.edu mailto:dale.poul...@vanderbilt.edu 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Statistics error?

2009-02-03 Thread Kim Shepherd
Hi Zaya,

 

It might be easier to track this problem down with debug-level logging. To do 
this, edit your [dspace]/config/log4j.properties and change 
log4j.rootCategory=INFO, A1 to log4j.rootCategory=DEBUG, A1. Then restart 
Dspace. Now you’ll be able to see all the SQL queries in your log, which should 
shed some more light on why the one being used by stat-initial is upsetting 
PostgreSQL.

 

Cheers,

 

Kim

 

From: Zaya Kh [mailto:zayak...@gmail.com] 
Sent: Wednesday, 4 February 2009 1:23 a.m.
To: dspace-tech
Subject: [Dspace-tech] Statistics error?

 

Hello again, 
I have a question? When I start DSpace's statistics this error show me.

[r...@localhost bin]# ./stat-initial
Exception in thread main org.postgresql.util.PSQLException: ERROR: syntax 
error at or near FROM
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1512)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1297)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:250)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92)
at 
org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:209)
at 
org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.java:279)
at 
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1273)
at 
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1302)
at 
org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:543)
at 
org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.java:291)
at 
org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:162)
[r...@localhost bin]#

Can you advice me?
Best regard, Zoloo

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Where do I put .java programs that I'm going to make local modifications
to, in DSpace 1.5.1?  I am putting the .jsps in:

/export/home/dspace-1.5.1-src-release/dspace/modules/jspui/src/main/weba
pp.. /image  or /layoutetc.

 

Where would I put our modified PDFFilter.java so that when I
assemble/compile our application, the modified .class or .jar file ends
up in /dspace/webapps..????

 

Thanks,

Sue

 

 

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
//Integrated Library Systems Application  Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547 
Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Kim Shepherd
Hi Sue,

 

Java source code for JSPUI should be in 
[dspace-source]/dspace-jspui/dspace-jspui-api -- however, PDFFilter.java lives 
in the main API, at 
[dspace-source]/dspace-api/src/main/java/org/dspace/app/mediafilter/ so it’s 
not technically a JSPUI change you’re making. You can patch the PDFFilter.java 
in that directory, or replace it with your own (after backing the original up, 
of course!) to make changes to the way org.dspace.app.mediafilter.PDFFilter 
works.

 

Once you’ve rebuilt, assuming that’s the only change you’ve made, the only 
changed jar should be dspace-api-1.5.1.jar (or named something similar).

 

If you want to find this jar, it will be copied over to 
[dspace-source]/dspace/target/[build.dir]/webapps/jspui/WEB-INF/lib during the 
Maven build, and into your [dspace]/webapps/jspui/WEB-INF/lib and [dspace]/lib 
folders if you install with ant update_code and ant update_webapps.

 

Hope this helps!

 

Cheers,

 

Kim

 

--

Kim Shepherd

IRR Technical Specialist

ITS Systems  Development

The University of Waikato

DDI +64 7 838 4025

 

 

 

From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] 
[mailto:susan.m.thorn...@nasa.gov] 
Sent: Wednesday, 4 February 2009 9:02 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

 

Where do I put .java programs that I’m going to make local modifications to, in 
DSpace 1.5.1?  I am putting the .jsps in:

/export/home/dspace-1.5.1-src-release/dspace/modules/jspui/src/main/webapp…… 
/image  or /layout….etc.

 

Where would I put our modified PDFFilter.java so that when I assemble/compile 
our application, the modified .class or .jar file ends up in 
/dspace/webapps……????

 

Thanks,

Sue

 

 

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application  Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547 
Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Kim Shepherd
Hi Sue,

 

I see where you’re coming from. The [dspace-source]/dspace/modules directory is 
just for overriding things like JSPs, themes, images, aspects, and other webapp 
resources like that. Java source code is not managed in the same way.

 

There are a few different ways of going about making changes to source... if 
you are just changing a couple of lines and are not familiar with diff, patch, 
or SVN, it might be easier to simply back up the original source file, make 
your changes to the existing one, and rebuild.

If you are making a lot of changes, or you want to share your changes with 
others easily, or you think you’ll be making more than one change to the file 
over the next while, it’s probably better to do it “the proper way” and look 
into diff/patch (preferably SVN diff/patch if you use SVN to checkout your 
source directory).

 

There’s a bit of info at the end of: 
http://wiki.dspace.org/index.php/Building_DSpace_From_Source 

This is a nice guide, too: 
http://stephenjungels.com/jungels.net/articles/diff-patch-ten-minutes.html

And last but not least, the SVN book: 
http://svnbook.red-bean.com/en/1.5/index.html

 

Cheers,

 

Kim.

 

--

Kim Shepherd

IRR Technical Specialist

ITS Systems  Development

The University of Waikato

DDI +64 7 838 4025

 

 

 

From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] 
[mailto:susan.m.thorn...@nasa.gov] 
Sent: Wednesday, 4 February 2009 9:35 a.m.
To: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,in 1.5.1

 

Hi Kim,

 Thanks for the info!  Aren’t I supposed to copy PDFFilter.java though, 
from its source directory (before I make my changes) into somewhere in 
/dspace-source…/dspace/modules in order to keep our local mods separate???  
Would I copy it into:

 

{dspace-source}/dspace/modules/dspace-api/src/main/java/org/dspace/app/mediafilter
  ??

Thanks again,

Sue

 



From: Kim Shepherd [mailto:k...@waikato.ac.nz] 
Sent: Tuesday, February 03, 2009 3:28 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: RE: [Dspace-tech] Local modifications to DSpace .java programs, in 
1.5.1

 

Hi Sue,

 

Java source code for JSPUI should be in 
[dspace-source]/dspace-jspui/dspace-jspui-api -- however, PDFFilter.java lives 
in the main API, at 
[dspace-source]/dspace-api/src/main/java/org/dspace/app/mediafilter/ so it’s 
not technically a JSPUI change you’re making. You can patch the PDFFilter.java 
in that directory, or replace it with your own (after backing the original up, 
of course!) to make changes to the way org.dspace.app.mediafilter.PDFFilter 
works.

 

Once you’ve rebuilt, assuming that’s the only change you’ve made, the only 
changed jar should be dspace-api-1.5.1.jar (or named something similar).

 

If you want to find this jar, it will be copied over to 
[dspace-source]/dspace/target/[build.dir]/webapps/jspui/WEB-INF/lib during the 
Maven build, and into your [dspace]/webapps/jspui/WEB-INF/lib and [dspace]/lib 
folders if you install with ant update_code and ant update_webapps.

 

Hope this helps!

 

Cheers,

 

Kim

 

--

Kim Shepherd

IRR Technical Specialist

ITS Systems  Development

The University of Waikato

DDI +64 7 838 4025

 

 

 

From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] 
[mailto:susan.m.thorn...@nasa.gov] 
Sent: Wednesday, 4 February 2009 9:02 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

 

Where do I put .java programs that I’m going to make local modifications to, in 
DSpace 1.5.1?  I am putting the .jsps in:

/export/home/dspace-1.5.1-src-release/dspace/modules/jspui/src/main/webapp…… 
/image  or /layout….etc.

 

Where would I put our modified PDFFilter.java so that when I assemble/compile 
our application, the modified .class or .jar file ends up in 
/dspace/webapps……????

 

Thanks,

Sue

 

 

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application  Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547 
Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Diggory Mark
Susan,The way to do it without altering the code in place requires creating a custom maven project within the dspace/modules/ directory, wiring it into the dspace/pom.xml and dspace/modules/pom.xml so that it compiles into the build process.At this point, I'm seeing community member using both approaches, and I'm unsure which I would most recommend. But here's what I try to approach as a best practice.1.) I don't like to alter code in place in dspace-api, dspace-xmlui or any of those projects unless I intend to contribute it into the next release of DSpace 1.5.x2.) Keeping all those projects around lengthens the build process and if your not using all of them (dspace-sword, lni, etc) thats a lot of compile time for nothing.3.) Once configured properly, your changes in dspace/modules/xxx will always beseparatefrom the rest of the codebase, but you will still need to verify that upgrades don't break your customizations by comparing your code to the original. Something we continue to strive to get away from.So I would recommend the following steps:a.) create a dspace/modules/custom-api/pom.xml for your api changes. That looks something like the attached pom.xmlproject xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdorg.dspace.modules/groupId
   artifactIdcustom-api/artifactId
   packagingjar/packaging
   nameDSpace :: Modules :: Custom Changes/name
   description
  Changes to the API specific for the your repository
   /description

   parent
  groupIdorg.dspace/groupId
  artifactIdmodules/artifactId
  version1.5.1/version
   /parent

   repositories
  repository
 idmaven.dspace.org/snapshot/id
 nameDSpace Maven Snapshot Repository/name
 urlhttp://maven.dspace.org/snapshot/url
 releases
enabledfalse/enabled
checksumPolicyfail/checksumPolicy
 /releases
 snapshots
enabledtrue/enabled
checksumPolicyfail/checksumPolicy
 /snapshots
  /repository
   /repositories

   dependencies

  !-- DSpace API --
  dependency
 groupIdorg.dspace/groupId
 artifactIddspace-api/artifactId
  /dependency

  dependency
 groupIdjavax.servlet/groupId
 artifactIdservlet-api/artifactId
 version2.3/version
 scopeprovided/scope
  /dependency

   /dependencies

/projectb.) Alter your modules/pom.xml to include it as a module (you can turn off any other modules that you do not want to use here as well.	modules>		module>custom-api/module>		module>xmlui/module>		module>lni/module> 		module>oai/module>		module>jspui/module>		module>sword/module>	/modules>c.) Add custom-api as a dependency to any modules project you require it within or to the dspace/pom.xml so that it is included into [dspace]/lib as a dependency.I hope this documentation is helpful should you choose this approach. But you can feel free to take the approach that best solves your situation for you.MarkOn Feb 3, 2009, at 12:35 PM, Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] wrote:Hi Kim, Thanks for the info! Aren’t I supposed to copy PDFFilter.java though, from its source directory (before I make my changes) into somewhere in /dspace-source…/dspace/modules in order to keep our local mods separate??? Would I copy it into:{dspace-source}/dspace/modules/dspace-api/src/main/java/org/dspace/app/mediafilter ??Thanks again,SueFrom:Kim Shepherd [mailto:k...@waikato.ac.nz]Sent:Tuesday, February 03, 2009 3:28 PMTo:Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]Cc:dspace-techSubject:RE: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1Hi Sue,Java source code for JSPUI should be in [dspace-source]/dspace-jspui/dspace-jspui-api -- however, PDFFilter.java lives in the main API, at [dspace-source]/dspace-api/src/main/java/org/dspace/app/mediafilter/ so it’s not technically a JSPUI change you’re making. You can patch the PDFFilter.java in that directory, or replace it with your own (after backing the original up, of course!) to make changes to the way org.dspace.app.mediafilter.PDFFilter works.Once you’ve rebuilt, assuming that’s the only change you’ve made, the only changed jar should be dspace-api-1.5.1.jar (or named something similar).If you want to find this jar, it will be copied over to [dspace-source]/dspace/target/[build.dir]/webapps/jspui/WEB-INF/lib during the Maven build, and into your [dspace]/webapps/jspui/WEB-INF/lib and [dspace]/lib folders if you install with ant update_code and ant update_webapps.Hope this helps!Cheers,Kim--Kim ShepherdIRR Technical SpecialistITS Systems  DevelopmentThe University of WaikatoDDI +64 7 838 4025From:Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] [mailto:susan.m.thorn...@nasa.gov]Sent:Wednesday, 4 February 2009 9:02 

Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Kim Shepherd
Ah!

Thanks for this info Mark, I never thought about managing local code this 
way... I’ve just been sticking to SVN, myself - partly because I intend to 
contribute most of my patches to the SF tracker and I understand that SVN diffs 
against latest tags/branches are preferred.

I think you might have prematurely hit the send button? I’m keen to hear the 
rest of this method. (not a maven expert by a long shot)

 

Cheers,

 

Kim.

 

From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Wednesday, 4 February 2009 10:10 a.m.
To: Thornton,Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,in 1.5.1

 

Susan,

 

The way to do it without altering the code in place requires creating a custom 
maven project within the dspace/modules/ directory, wiring it into the 
dspace/pom.xml and dspace/modules/pom.xml so that it compiles into the build 
process.

 

At this point, I'm seeing community member using both approaches, and I'm 
unsure which I would most recommend. But here's what I try to approach as a 
best practice.

 

1.) I don't like to alter code in place in dspace-api, dspace-xmlui or any of 
those projects unless I intend to contribute it into the next release of DSpace 
1.5.x

 

2.) Keeping all those projects around lengthens the build process and if your 
not using all of them (dspace-sword, lni, etc) thats a lot of compile time for 
nothing.

 

3.) Once configured properly, your changes in dspace/modules/xxx will always be 
separate from the rest of the codebase, but you will still need to verify that 
upgrades don't break your customizations by comparing your code to the 
original.  Something we continue to strive to get away from.

 

So I would recommend the following steps:

 

a.) create a dspace/modules/custom-api/pom.xml for your api changes. That looks 
something like the attached pom.xml

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Diggory Mark

no

On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI  
INFORMATION SYSTEMS] wrote:



Do I need to modify {dspace-source}/pom.xml ??

From: Diggory Mark [mailto:mdigg...@gmail.com]
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
programs, in 1.5.1


Susan,

The way to do it without altering the code in place requires  
creating a custom maven project within the dspace/modules/  
directory, wiring it into the dspace/pom.xml and dspace/modules/ 
pom.xml so that it compiles into the build process.


At this point, I'm seeing community member using both approaches,  
and I'm unsure which I would most recommend. But here's what I try  
to approach as a best practice.


1.) I don't like to alter code in place in dspace-api, dspace-xmlui  
or any of those projects unless I intend to contribute it into the  
next release of DSpace 1.5.x


2.) Keeping all those projects around lengthens the build process  
and if your not using all of them (dspace-sword, lni, etc) thats a  
lot of compile time for nothing.


3.) Once configured properly, your changes in dspace/modules/xxx  
will always be separate from the rest of the codebase, but you will  
still need to verify that upgrades don't break your customizations  
by comparing your code to the original.  Something we continue to  
strive to get away from.


So I would recommend the following steps:

a.) create a dspace/modules/custom-api/pom.xml for your api changes.  
That looks something like the attached pom.xml




~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Statistics error?

2009-02-03 Thread Yin Latt
Hi Zaya,

It is bug
http://sourceforge.net/tracker/index.php?func=detailaid=1931799group_i
d=19984atid=119984 which have been fixed.


Regards,
YinYin


From: Zaya Kh [mailto:zayak...@gmail.com] 
Sent: Wednesday, 4 February 2009 1:23 a.m.
To: dspace-tech
Subject: [Dspace-tech] Statistics error?

 

Hello again, 
I have a question? When I start DSpace's statistics this error show me.

[r...@localhost bin]# ./stat-initial
Exception in thread main org.postgresql.util.PSQLException: ERROR:
syntax error at or near FROM
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu
torImpl.java:1512)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp
l.java:1297)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:
188)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
nt.java:430)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb
c2Statement.java:346)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2St
atement.java:250)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
ingPreparedStatement.java:92)
at
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
ingPreparedStatement.java:92)
at
org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:209)
at
org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.jav
a:279)
at
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1273)
at
org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1302)
at
org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:543)
at
org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.
java:291)
at
org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:16
2)
[r...@localhost bin]#

Can you advice me?
Best regard, Zoloo

-- next part --
An HTML attachment was scrubbed...

--

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] How to add a new search category to the Advanced Search

2009-02-03 Thread Claudia Juergen
Hi Susan,

The index identifier is already part of the advanced search.

In general if you want to add an element to the advanced search (jspui).
a) create the search index in dspace.cfg
search.index.[number]=[indexName]:schema.element.qualifier
or with wildcard
search.index.[number]=[indexName]:schema.element.*

b) change the advanced search


Copy
[dspace-src]/dspace-jspui/dspace-jspui-webapp/src/main/webapp/search/advanced.jsp
to
[dspace-src]/dspace-1_5_1/dspace/modules/jspui/src/main/webapp/search/advanced.jsp

Then edit
[dspace-src]/dspace-1_5_1/dspace/modules/jspui/src/main/webapp/search/advanced.jsp
add the new option to field1, field2 and field3

select name=field1 id=tfield1
option value=indexName %= field1.equals(indexName) ?
selected=fmt:message key=jsp.search.advanced.type.indexName/
/option
/select

c) change the Messages.properties to include a tag for
jsp.search.advanced.type.indexName

then do
mvn package
ant init_configs, update
and deploy


Hope that helps

Claudia Jürgen




 Hi,

  I recently changed my 1.4.2/1.5.1 dspace.cfg file and added a new
 search.index as follows:



 search.index.3 = identifier:dc.identifier.titleControlKey



 In the DSpace System Documentation, section 5.1.2. Configuring Lucene
 Search Indexes, it says:



 NOTE: While the indexes are created, this only affects the search
 results and has no effect on the search components of the user
 interface. To add new search capability (e.g. to add a new search
 category to the Advanced Search) requires local customisation to the
 user interface.



 Can someone tell me what the local customizations are to get this search
 to work?



 Thanks,

 Sue



 Sue Walker-Thornton

 ConITS Contract
 NASA Langley Research Center
 //Integrated Library Systems Application  Database Administrator

 130 Research Drive

 Hampton, VA  23666

 Office: (757) 224-4074
 Fax:(757) 224-4001
 Pager: (757) 988-2547
 Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov



 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications
 today-http://p.sf.net/sfu/adobe-com___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech




--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Problems with IP Autentication

2009-02-03 Thread Eric Luhrs
Has anyone had luck getting IP Authentication to work with recent
checkouts of 1.5.2 (I'm using code that was checked out a week or two
ago)?  I'm not sure if my troubles stem from local configuration
issues, or the problem reported here:

http://sourceforge.net/tracker/?func=detailatid=119984aid=2088431group_id=19984

I have added org.dspace.authenticate.IPAuthentication and
authentication.ip.on-campus = x.x.x lines to my dspace.cfg.  I have
also created a group called on-campus and a collection called
restricted with the following policies:

read = on-campus
default_item_read = on-campus
default_bitstream_read = on-campus

My expectation was that with the above settings, unauthenticated users
on the x.x.x subnet would be able to view the restricted collection,
along with any items added to it, without authenticating.  Instead,
when unauthenticated users attempt to view the collection, they are
prompted to login.  No matter if one is logged in or not, I only see
references to PasswordAuthentication and
LDAPHierarchicalAuthentication in dspace.log, and no mention of
IPAuthentication.

So is this a local problem with my config.cfg, something to do with my
group/collection configuration, or the bug mentioned above?

Eric Luhrs
Lafayette College

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Hi Kim,

 Thanks for the info!  Aren't I supposed to copy PDFFilter.java
though, from its source directory (before I make my changes) into
somewhere in /dspace-source.../dspace/modules in order to keep our local
mods separate???  Would I copy it into:

 

{dspace-source}/dspace/modules/dspace-api/src/main/java/org/dspace/app/m
ediafilter  ??

Thanks again,

Sue

 



From: Kim Shepherd [mailto:k...@waikato.ac.nz] 
Sent: Tuesday, February 03, 2009 3:28 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: RE: [Dspace-tech] Local modifications to DSpace .java programs,
in 1.5.1

 

Hi Sue,

 

Java source code for JSPUI should be in
[dspace-source]/dspace-jspui/dspace-jspui-api -- however, PDFFilter.java
lives in the main API, at
[dspace-source]/dspace-api/src/main/java/org/dspace/app/mediafilter/ so
it's not technically a JSPUI change you're making. You can patch the
PDFFilter.java in that directory, or replace it with your own (after
backing the original up, of course!) to make changes to the way
org.dspace.app.mediafilter.PDFFilter works.

 

Once you've rebuilt, assuming that's the only change you've made, the
only changed jar should be dspace-api-1.5.1.jar (or named something
similar).

 

If you want to find this jar, it will be copied over to
[dspace-source]/dspace/target/[build.dir]/webapps/jspui/WEB-INF/lib
during the Maven build, and into your [dspace]/webapps/jspui/WEB-INF/lib
and [dspace]/lib folders if you install with ant update_code and ant
update_webapps.

 

Hope this helps!

 

Cheers,

 

Kim

 

--

Kim Shepherd

IRR Technical Specialist

ITS Systems  Development

The University of Waikato

DDI +64 7 838 4025

 

 

 

From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
[mailto:susan.m.thorn...@nasa.gov] 
Sent: Wednesday, 4 February 2009 9:02 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Local modifications to DSpace .java programs, in
1.5.1

 

Where do I put .java programs that I'm going to make local modifications
to, in DSpace 1.5.1?  I am putting the .jsps in:

/export/home/dspace-1.5.1-src-release/dspace/modules/jspui/src/main/weba
pp.. /image  or /layoutetc.

 

Where would I put our modified PDFFilter.java so that when I
assemble/compile our application, the modified .class or .jar file ends
up in /dspace/webapps..????

 

Thanks,

Sue

 

 

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application  Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547 
Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Diggory Mark
Certainly very useful information no matter if you decide to keep your  
changes in place or isolate them within the modules directory.


Cheers,
Mark

On Feb 3, 2009, at 1:01 PM, Kim Shepherd wrote:


Hi Sue,

I see where you’re coming from. The [dspace-source]/dspace/modules  
directory is just for overriding things like JSPs, themes, images,  
aspects, and other webapp resources like that. Java source code is  
not managed in the same way.


There are a few different ways of going about making changes to  
source... if you are just changing a couple of lines and are not  
familiar with diff, patch, or SVN, it might be easier to simply back  
up the original source file, make your changes to the existing one,  
and rebuild.
If you are making a lot of changes, or you want to share your  
changes with others easily, or you think you’ll be making more than  
one change to the file over the next while, it’s probably better to  
do it “the proper way” and look into diff/patch (preferably SVN diff/ 
patch if you use SVN to checkout your source directory).


There’s a bit of info at the end of: 
http://wiki.dspace.org/index.php/Building_DSpace_From_Source
This is a nice guide, too: 
http://stephenjungels.com/jungels.net/articles/diff-patch-ten-minutes.html
And last but not least, the SVN book: 
http://svnbook.red-bean.com/en/1.5/index.html

Cheers,

Kim.

--
Kim Shepherd
IRR Technical Specialist
ITS Systems  Development
The University of Waikato
DDI +64 7 838 4025



From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] [mailto:susan.m.thorn...@nasa.gov 
]

Sent: Wednesday, 4 February 2009 9:35 a.m.
To: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
programs,in 1.5.1


Hi Kim,
 Thanks for the info!  Aren’t I supposed to copy PDFFilter.java  
though, from its source directory (before I make my changes) into  
somewhere in /dspace-source…/dspace/modules in order to keep our  
local mods separate???  Would I copy it into:


{dspace-source}/dspace/modules/dspace-api/src/main/java/org/dspace/ 
app/mediafilter  ??

Thanks again,
Sue

From: Kim Shepherd [mailto:k...@waikato.ac.nz]
Sent: Tuesday, February 03, 2009 3:28 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: RE: [Dspace-tech] Local modifications to DSpace .java  
programs, in 1.5.1


Hi Sue,

Java source code for JSPUI should be in [dspace-source]/dspace-jspui/ 
dspace-jspui-api -- however, PDFFilter.java lives in the main API,  
at [dspace-source]/dspace-api/src/main/java/org/dspace/app/ 
mediafilter/ so it’s not technically a JSPUI change you’re making.  
You can patch the PDFFilter.java in that directory, or replace it  
with your own (after backing the original up, of course!) to make  
changes to the way org.dspace.app.mediafilter.PDFFilter works.


Once you’ve rebuilt, assuming that’s the only change you’ve made,  
the only changed jar should be dspace-api-1.5.1.jar (or named  
something similar).


If you want to find this jar, it will be copied over to [dspace- 
source]/dspace/target/[build.dir]/webapps/jspui/WEB-INF/lib during  
the Maven build, and into your [dspace]/webapps/jspui/WEB-INF/lib  
and [dspace]/lib folders if you install with ant update_code and ant  
update_webapps.


Hope this helps!

Cheers,

Kim

--
Kim Shepherd
IRR Technical Specialist
ITS Systems  Development
The University of Waikato
DDI +64 7 838 4025



From: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS] [mailto:susan.m.thorn...@nasa.gov 
]

Sent: Wednesday, 4 February 2009 9:02 a.m.
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Local modifications to DSpace .java programs,  
in 1.5.1


Where do I put .java programs that I’m going to make local  
modifications to, in DSpace 1.5.1?  I am putting the .jsps in:
/export/home/dspace-1.5.1-src-release/dspace/modules/jspui/src/main/ 
webapp…… /image  or /layout….etc.


Where would I put our modified PDFFilter.java so that when I  
assemble/compile our application, the modified .class or .jar file  
ends up in /dspace/webapps……????


Thanks,
Sue



Sue Walker-Thornton
ConITS Contract
NASA Langley Research Center
Integrated Library Systems Application  Database Administrator
130 Research Drive
Hampton, VA  23666
Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547
Email:  susan.m.thorn...@nasa.gov

--
Create and Deploy Rich Internet Apps outside the browser with  
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills  
and code to
build responsive, highly engaging applications that combine the  
power of local
resources and data with the reach of the web. Download the Adobe AIR  
SDK and

Ajax docs to start building applications 
today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net

[Dspace-tech] How to add a new search category to the Advanced Search

2009-02-03 Thread Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Hi,

 I recently changed my 1.4.2/1.5.1 dspace.cfg file and added a new
search.index as follows:

 

search.index.3 = identifier:dc.identifier.titleControlKey

 

In the DSpace System Documentation, section 5.1.2. Configuring Lucene
Search Indexes, it says:

 

NOTE: While the indexes are created, this only affects the search
results and has no effect on the search components of the user
interface. To add new search capability (e.g. to add a new search
category to the Advanced Search) requires local customisation to the
user interface.

 

Can someone tell me what the local customizations are to get this search
to work?

 

Thanks,

Sue

 

Sue Walker-Thornton

ConITS Contract
NASA Langley Research Center
//Integrated Library Systems Application  Database Administrator

130 Research Drive

Hampton, VA  23666

Office: (757) 224-4074
Fax:(757) 224-4001
Pager: (757) 988-2547 
Email:  susan.m.thorn...@nasa.gov mailto:susan.m.thorn...@nasa.gov 

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Diggory Mark

Or to be more explicit you add the pom at

{dspace-source}/dspace/modules/custom-api/pom.xml

and modify the following with modulecustom-api/module

{dspace-source}/dspace/modules/pom.xml

And add custom-api as a dependency in

{dspace-source}/dspace/pom.xml

Mark

On Feb 3, 2009, at 2:14 PM, Diggory Mark wrote:


no

On Feb 3, 2009, at 2:06 PM, Thornton, Susan M. (LARC-B702)[NCI  
INFORMATION SYSTEMS] wrote:



Do I need to modify {dspace-source}/pom.xml ??

From: Diggory Mark [mailto:mdigg...@gmail.com]
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java  
programs, in 1.5.1


Susan,

The way to do it without altering the code in place requires  
creating a custom maven project within the dspace/modules/  
directory, wiring it into the dspace/pom.xml and dspace/modules/ 
pom.xml so that it compiles into the build process.


At this point, I'm seeing community member using both approaches,  
and I'm unsure which I would most recommend. But here's what I try  
to approach as a best practice.


1.) I don't like to alter code in place in dspace-api, dspace-xmlui  
or any of those projects unless I intend to contribute it into the  
next release of DSpace 1.5.x


2.) Keeping all those projects around lengthens the build process  
and if your not using all of them (dspace-sword, lni, etc) thats a  
lot of compile time for nothing.


3.) Once configured properly, your changes in dspace/modules/xxx  
will always be separate from the rest of the codebase, but you will  
still need to verify that upgrades don't break your customizations  
by comparing your code to the original.  Something we continue to  
strive to get away from.


So I would recommend the following steps:

a.) create a dspace/modules/custom-api/pom.xml for your api  
changes. That looks something like the attached pom.xml




~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage





~
Mark R. Diggory
http://purl.org/net/mdiggory/homepage



--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Local modifications to DSpace .java programs, in 1.5.1

2009-02-03 Thread Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Do I need to modify {dspace-source}/pom.xml ??

 



From: Diggory Mark [mailto:mdigg...@gmail.com] 
Sent: Tuesday, February 03, 2009 4:10 PM
To: Thornton, Susan M. (LARC-B702)[NCI INFORMATION SYSTEMS]
Cc: dspace-tech
Subject: Re: [Dspace-tech] Local modifications to DSpace .java programs,
in 1.5.1

 

Susan,

 

The way to do it without altering the code in place requires creating a
custom maven project within the dspace/modules/ directory, wiring it
into the dspace/pom.xml and dspace/modules/pom.xml so that it compiles
into the build process.

 

At this point, I'm seeing community member using both approaches, and
I'm unsure which I would most recommend. But here's what I try to
approach as a best practice.

 

1.) I don't like to alter code in place in dspace-api, dspace-xmlui or
any of those projects unless I intend to contribute it into the next
release of DSpace 1.5.x

 

2.) Keeping all those projects around lengthens the build process and if
your not using all of them (dspace-sword, lni, etc) thats a lot of
compile time for nothing.

 

3.) Once configured properly, your changes in dspace/modules/xxx will
always be separate from the rest of the codebase, but you will still
need to verify that upgrades don't break your customizations by
comparing your code to the original.  Something we continue to strive to
get away from.

 

So I would recommend the following steps:

 

a.) create a dspace/modules/custom-api/pom.xml for your api changes.
That looks something like the attached pom.xml

 

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] STATISTICS

2009-02-03 Thread Mohamad Asmawi Bin Abdul Rahman
Hai All,

I have a question! How we can produce statistics or report from dspace?? Can u 
guide me for this issue.

Hope u all can help.

Many thanks.


This e-mail and the attachments are intended solely for the person to whom it 
has been addressed. It contains privileged and/or confidential information and 
is privileged or otherwise protected from disclosure. If you are not the person 
for whom this e-mail was intended, or the e-mail has reached you by mistake, 
please delete it immediately and
inform us of the error. Our e-mail address is administra...@uniten.edu.my.

All opinions, conclusions and other information in this message that do not 
relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be 
understood as neither given nor endorsed by UNITEN. UNITEN shall not be 
responsible for any activity that may be considered as illegal and/or improper 
use of e-mail and UNITEN further is claims and shall not accept liability for 
any content of this e-mail, or for the consequences of any actions taken on the 
basis of the information provided, unless that information is subsequently 
confirmed in writing.

WARNING
Internet communications cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, arrive late or contain 
viruses. As such, we do not accept liability for any errors or omissions in the 
content of this message which may arise as a result of internet transmission.

UNITEN does not authorize any of its employees to make any defamatory or 
seditious statements or commit any offence which is contrary to the laws of 
Malaysia. Any such communications and/or actions by such employees are outside 
the scope of employment of the said individuals and UNITEN shall not be liable 
for such communications and/or actions.

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] STATISTICS

2009-02-03 Thread Kim Shepherd
Hi Mohamad,

 

Once you have Dspace installed and running, have a read of 
http://dspace.svn.sourceforge.net/viewvc/dspace/trunk/dspace/docs/configure.html#statistics
 to see how to configure statistics. (assumes version 1.5.x).

 

These reports will give you some good stats from the perspective of a 
repository manager/administrator.

 

There are a number of user-driven projects around to try and satisfy the demand 
for searchable/per-author statistics by academics. One of the most popular 
packages is one created by Minho University in Portugal, although it only works 
on 1.4.2 and I’d advise you to search for references to “Minho” on the mailing 
list to make sure you want to go down this track. It generates very 
nice-looking statistics, and uses GeoIP to resolve IPs to physical locations. I 
have a few concerns with it, personally (in fact, you can search this list to 
see my thoughts on it in a previous post), but it’s a great effort at filling 
the “end user statistics” gap so I don’t want to sound too negative about it... 
http://wiki.dspace.org/index.php/StatisticsAddOn has doco, downloads and 
screenshots.

 

I’m actually working on something myself at the moment, but it’s not mature 
enough to share yet.

 

This mailing list thread is recommended reading, as well: 
http://www.nabble.com/Week-2:-Statistics-td19143593.html

 

Cheers,

 

Kim

--

Kim Shepherd

IRR Technical Specialist

ITS Systems  Development

The University of Waikato

DDI +64 7 838 4025

 

 

 

From: Mohamad Asmawi Bin Abdul Rahman [mailto:asm...@uniten.edu.my] 
Sent: Wednesday, 4 February 2009 3:11 p.m.
To: Dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] STATISTICS

 

Hai All,

 

I have a question! How we can produce statistics or report from dspace?? Can u 
guide me for this issue.

 

Hope u all can help.

 

Many thanks.

 



This e-mail and the attachments are intended solely for the person to whom it 
has been addressed. It contains privileged and/or confidential information and 
is privileged or otherwise protected from disclosure. If you are not the person 
for whom this e-mail was intended, or the e-mail has reached you by mistake, 
please delete it immediately and
inform us of the error. Our e-mail address is administra...@uniten.edu.my.

All opinions, conclusions and other information in this message that do not 
relate to the official business of Universiti Tenaga Nasional (UNITEN) shall be 
understood as neither given nor endorsed by UNITEN. UNITEN shall not be 
responsible for any activity that may be considered as illegal and/or improper 
use of e-mail and UNITEN further is claims and shall not accept liability for 
any content of this e-mail, or for the consequences of any actions taken on the 
basis of the information provided, unless that information is subsequently 
confirmed in writing.

WARNING
Internet communications cannot be guaranteed to be secured or error-free as 
information could be intercepted, corrupted, lost, arrive late or contain 
viruses. As such, we do not accept liability for any errors or omissions in the 
content of this message which may arise as a result of internet transmission.

UNITEN does not authorize any of its employees to make any defamatory or 
seditious statements or commit any offence which is contrary to the laws of 
Malaysia. Any such communications and/or actions by such employees are outside 
the scope of employment of the said individuals and UNITEN shall not be liable 
for such communications and/or actions.

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Statistics error?

2009-02-03 Thread Zaya Kh
hi, Yin

I understood, this is bug, then How can I change this bug in my system,
Can you help me detials?

Cheers, Zoloo


On 2/4/09, Yin Latt y.l...@auckland.ac.nz wrote:

 Hi Zaya,

 It is bug
 http://sourceforge.net/tracker/index.php?func=detailaid=1931799group_i
 d=19984atid=119984 which have been fixed.


 Regards,
 YinYin


 From: Zaya Kh [mailto:zayak...@gmail.com]
 Sent: Wednesday, 4 February 2009 1:23 a.m.
 To: dspace-tech
 Subject: [Dspace-tech] Statistics error?



 Hello again,
 I have a question? When I start DSpace's statistics this error show me.

 [r...@localhost bin]# ./stat-initial
 Exception in thread main org.postgresql.util.PSQLException: ERROR:
 syntax error at or near FROM
at
 org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu
 torImpl.java:1512)
at
 org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp
 l.java:1297)
at
 org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:
 188)
at
 org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme
 nt.java:430)
at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb
 c2Statement.java:346)
at
 org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2St
 atement.java:250)
at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
 ingPreparedStatement.java:92)
at
 org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(Delegat
 ingPreparedStatement.java:92)
at
 org.dspace.storage.rdbms.DatabaseManager.query(DatabaseManager.java:209)
at
 org.dspace.storage.rdbms.DatabaseManager.querySingle(DatabaseManager.jav
 a:279)
at
 org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1273)
at
 org.dspace.app.statistics.LogAnalyser.getNumItems(LogAnalyser.java:1302)
at
 org.dspace.app.statistics.LogAnalyser.processLogs(LogAnalyser.java:543)
at
 org.dspace.app.statistics.CreateStatReport.statInitial(CreateStatReport.
 java:291)
at
 org.dspace.app.statistics.CreateStatReport.main(CreateStatReport.java:16
 2)
 [r...@localhost bin]#

 Can you advice me?
 Best regard, Zoloo

 -- next part --
 An HTML attachment was scrubbed...

 --


 --
 Create and Deploy Rich Internet Apps outside the browser with
 Adobe(R)AIR(TM)
 software. With Adobe AIR, Ajax developers can use existing skills and code
 to
 build responsive, highly engaging applications that combine the power of
 local
 resources and data with the reach of the web. Download the Adobe AIR SDK
 and
 Ajax docs to start building applications today-
 http://p.sf.net/sfu/adobe-com
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech