[Dspace-tech] Moving item back into workflow

2008-12-08 Thread Mathias Hjelt
Hello

Suppose we have two collections, A and B. For collection B, there's a
submission workflow set up including an Edit Metadata step. 

Next, suppose we want to let a collection administrator move existing items
from item A into collection B - this can be done using the standard Move
Item functionality in DSpace 1.5.1. However, we'd like to have the item pass
through the workflow defined for collection B during the move.

This doesn't seem to be possible in a standard DSpace installation, so I
guess we'd need to do some custom coding here. I would appreciate any
comments on:

- whether this is technically feasible with a *reasonable* programming
effort?
- which classes to start looking at?

Best regards,

Mathias Hjelt
Hanken




--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Move item requires Administrator privileges

2008-12-08 Thread Mathias Hjelt
Hello

Is there any technical reason for why the new Move Item feature in Dspace
1.5.1 requires the user to belong to the omnipotent Adminstrators group?
Wouldn't it suffice that the user belongs to the collection admin groups for
both the source and target collections?

We want content administrators to be able to move items around, but we don't
really want to give them all full admin access to the entire DSpace system..

Best regards

Mathias Hjelt
Hanken
 


--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] plugins and custom classes in 1.5.x

2008-10-03 Thread Mathias Hjelt
I have a question here -- suppose that only the jspui webapp needs the
class, wouldn't it then be "cleaner" to put it in the overlay folder (i.e
[dspace-src]/dspace/modules/jspui/ under which you create
java//), rather than putting it under the
dspace-jspui directory which I suppose is what you suggested?

thanks,
Mathias Hjelt
DHanken 

-Original Message-
From: Diggory Mark [mailto:[EMAIL PROTECTED] 
Sent: den 2 oktober 2008 05:30
To: Jason Stirnaman
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] plugins and custom classes in 1.5.x

Yes, this is a safe place to put such a customization if you want it to be
part of more than one of your webapplications (if it is just one
webapplication that will be using it,  just place it in that webapplications
src/main/java directory).  You will do the following:

1.) Create an "api" directory
2.) create a "api/pom.xml" that has a artifactId, groupId and version that
is the same as your current dspace version.
3.) make sure it is also dependent on org.dspace:dspace-api:

4.) put you code in api/src/main/java
5.) add the api directory to the modules/pom.xml as both a module and a
dependency

when you now build, the api will be included into the modules list for
modules being built and the dependency will make sure it shows up in you
WEB-INF/lib of your compiled webapplications.

Finally, if you want your project to show up in the [dspace.dir]/lib, you'll
want to also add the dependency to the dspace/pom.xml

Don't hesitate to ask any questions if you get hung up on any of this.

Cheers,
Mark

On Oct 1, 2008, at 2:44 PM, Jason Stirnaman wrote:

> Follow up to my question:
> Is
> [dspace-source]/dspace/modules/api/src/main/java/org/dspace/
> authenticate
> the correct place to put a custom authentication method?
>
> ***
> Can anyone point to good documentation about where to place plugins 
> and custom class files in 1.5.x?  It's not clear from the 1.5.1 
> manual.
> Specifically, in what directory would I place a custom authentication 
> method like the MIT-Special-Groups in 1.4.x?
> Thanks,
> Jason
> --
>
> Jason Stirnaman
> Digital Projects Librarian/School of Medicine Support A.R. Dykes 
> Library, University of Kansas Medical Center [EMAIL PROTECTED]
> 913-588-7319
>
>
> --
> --- This SF.Net email is sponsored by the Moblin Your Move Developer's 
> challenge Build the coolest Linux based applications with Moblin SDK & 
> win great prizes Grand prize is a trip for two to an Open Source event 
> anywhere in the world 
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ___
> 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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes Grand prize is a trip for two to an Open Source event anywhere in the
world http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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 Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
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

2008-04-28 Thread Mathias Hjelt
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,

I’ve 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 didn’t 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 I’ve 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 I’ve 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 I’ve
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 one’s local installation needs a few hacks in an existing Servlet
class. To accomplish this in prior versions, I’ve 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] Creating database problem

2008-04-23 Thread Mathias Hjelt
This is how I've done it:

su postgres
createuser -U postgres -d -A -P dspace
exit
su dspace
createdb --password -E UNICODE dspace

-mathias

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hossein
Hamam
Sent: 23. huhtikuuta 2008 14:42
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Creating database problem

Dear All, 

Can someone explain the -A in createuser? 
And using which user should I issue these commands:

createuser -U postgres -d -A -P dspace
createdb -U dspace -E UNICODE dspace

When I su as postgres user, I am able to apply the first command but when I
issue the 2nd command, it gives me the below error:
createdb: could not connect to database postgres: FATAL:  Ident
authentication failed for user "dspace"

However, if I su as dspace, I am not able to issue the first command, but am
able to issue the 2nd command.

After some research I found that I should edit the file pg_ident.conf.
But what should I edit? Did anyone face a similar problem?

Thank you, 


-
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/javao
ne
___
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


[Dspace-tech] Creating add-ons or modifications in 1.5

2008-04-22 Thread Mathias Hjelt
Hello,

 

I've 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 didn't 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 I've 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 I've 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 I've
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 one's local installation needs a few hacks in an existing Servlet
class. To accomplish this in prior versions, I've 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] Direct a user's submission to a collection based onmetadata

2008-03-25 Thread Mathias Hjelt
Hi Gary

 

I don't know if it's possible to do exactly what you want to do, but
maybe you can set up a workaround similar to what we are doing. In our
DSpace repository, all doctoral theses are submitted to one single
collection. In the submission form, the submitting user picks the
correct department / subject from a dropdown menu. This value ends up in
a metadata tag. A scheduled script then automatically maps items from
this common collection to the individual collections of the various
departments based on the metadata value. So the end result is that all
theses are owned by one common collection, but also appear under the
various department's collections as mapped items.

 

I suspect the script we use could be modified to actually change the
owning collection rather simply adding mapped collections, but I don't
know what implications that might have on the submission process etc.

 

best regards

 

Mathias Hjelt

http://dhanken.shh.fi/

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gary
Browne
Sent: 25. maaliskuuta 2008 0:40
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Direct a user's submission to a collection based
onmetadata

 

Hi all

 

Is it possible to have a submitter enter metadata indicating a
university dept and then have the item submitted to a specific
collection based on this metadata, rather than the user having to choose
a particular collection beforehand?

 

Thanks

Gary

 

 

Gary Browne
Development Programmer
Library IT Services
University of Sydney

ph: 9351-5946

 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Moving DSpace & handle server to new server

2008-03-13 Thread Mathias Hjelt
Whether we'll carry over the hostname to the new server or not depends
on what's most feasible, considering all dependencies. Still trying to
figure out what dependencies were facing.

Can you or anyone confirm that a mere IP address change (i.e. hostname
remains the same but IP changes) does not affect handle configs, while a
change in hostname needs the Handle server to be reconfigured and a new
sitebundle needs to be sent to CNRI?

thanks,

-mathias


-Original Message-
From: Mark Diggory [mailto:[EMAIL PROTECTED] 
Sent: 13. maaliskuuta 2008 19:57
To: [EMAIL PROTECTED]
Cc: Mathias Hjelt; dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Moving DSpace & handle server to new server

It really depends on if your changing the hostname/domain as well.  
Are you going to carry the hostname along to the new server as a  
virtualhost?

-Mark

On Mar 13, 2008, at 2:30 AM, Robin Taylor wrote:

> Unfortunately I believe that moving to a new hostname/IP does  
> require you to
> notify CNRI. Although when we did it they were very helpful and  
> made the
> change exactly when requested. There are also some references in at  
> least
> one of the files in the handle-server directory to the IP addess
> (config.dct). I suspect I just edited this manually.
>
> One other wee thing, do you need to move the source files ? They  
> are not
> used by the running web application so you could just stick them  
> somewhere
> else for reference eg CVS or SVN.
>
> Cheers, Robin.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of  
> Mathias
> Hjelt
> Sent: 13 March 2008 08:55
> To: dspace-tech@lists.sourceforge.net
> Subject: [Dspace-tech] Moving DSpace & handle server to new server
>
> We're planning to move our DSpace production environment to a new  
> server.
> (This may or may not involve upgrading from 1.4.2 to 1.5 at the  
> same time,
> but that's a different story altogether.)
>
> As far as I can see, the easiest way to migrate DSpace from one  
> server to
> another is simply copying the dspace source and install directories  
> from the
> old server to matching locations on the new server, and populate  
> Postgres on
> the new server with the contents of a pg_dump from the old server.  
> Right?
>
> Now, my main concern is the Handle server, mainly because setting  
> it up was
> a bit hairy (docs didn't really align well with the real-world
> process) and my personal installation notes are quite vague (stupid  
> of me --
> everything else is documented down to the last bit.)
>
> So, will the Handle server migrate just as easily as the rest of  
> DSpace?
> What if the host name and/or IP address of the instance changes --  
> will I
> need to reconfigure the Handle server somehow, and/or send  
> configuration
> updates to CNRI? (After two years of DSpace administration, I must  
> admit I
> still have no clue about how the Handle server communicates with  
> DSpace and
> CNRI... missing the big picture
> *and* the hairy details.)
>
> Any suggestions are welcome!
>
> best regards
>
> Mathias Hjelt
> DHANKEN
>
>
> --

> ---
> This SF.net email is sponsored by: Microsoft Defy all challenges.
> Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>
>
>
> --

> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Forcing HTTP for everything except login

2008-03-13 Thread Mathias Hjelt
Jayan,

 

I can't see how HTTPS would affect OAI-PMH as long as your Tomcat is
configured with both HTTP and HTTPS connectors. You'll get problems only
if you disable the plain HTTP connector altogether (OAI-PMH needs to run
over plain HTTP as far as I know)

 

-mathias

 

 

From: Jayan Chirayath Kurian [mailto:[EMAIL PROTECTED] 
Sent: 11. maaliskuuta 2008 12:49
To: Mathias Hjelt; dspace-tech@lists.sourceforge.net
Subject: RE: [Dspace-tech] Forcing HTTP for everything except login

 

Hello,

I too had experienced the same redirection issue. Have not started using
HTTPS since I am not sure whether this will have an impact on using
OAI-PMH. Please comment. 

 



From: [EMAIL PROTECTED] on behalf of Mathias
Hjelt
Sent: Tue 3/11/2008 6:43 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Forcing HTTP for everything except login

Hello

Using DSpace 1.4.2 and Tomcat5, I enabled HTTPS for the password-related
pages/servlets by following the instructions at
http://wiki.dspace.org/index.php/ServletSecurity. This works fairly
well, i.e. the user is automatically redirected to HTTPS while logging
in, and after successful authentication he somehow gets redirected back
to plain HTTP.

However, in some situations the user gets "stuck" on the https site
(which causes an unnecessary burden on the server). E.g. if an
authenticated user clicks on Edit Profile (/profile) servlet, he's
redirected to HTTPS and never gets back to HTTP.

Does anyone have a neat and easy solution to this? Or an explanation of
how the redirecting-back-to-http-after-logging-in is implemented?

(I know that this issue could be avoided by doing the entire SSL thing
in Apache running a mod_jk connector as a front-end for Tomcat, but I'd
like to keep the setup nice and clean -- which means leaving Apache out
of the game.)

Best regards

Mathias Hjelt




-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Moving DSpace & handle server to new server

2008-03-13 Thread Mathias Hjelt
We're planning to move our DSpace production environment to a new
server. (This may or may not involve upgrading from 1.4.2 to 1.5 at the
same time, but that's a different story altogether.) 

As far as I can see, the easiest way to migrate DSpace from one server
to another is simply copying the dspace source and install directories
from the old server to matching locations on the new server, and
populate Postgres on the new server with the contents of a pg_dump from
the old server. Right? 

Now, my main concern is the Handle server, mainly because setting it up
was a bit hairy (docs didn't really align well with the real-world
process) and my personal installation notes are quite vague (stupid of
me -- everything else is documented down to the last bit.)

So, will the Handle server migrate just as easily as the rest of DSpace?
What if the host name and/or IP address of the instance changes -- will
I need to reconfigure the Handle server somehow, and/or send
configuration updates to CNRI? (After two years of DSpace
administration, I must admit I still have no clue about how the Handle
server communicates with DSpace and CNRI... missing the big picture
*and* the hairy details.)

Any suggestions are welcome!

best regards

Mathias Hjelt
DHANKEN


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Forcing HTTP for everything except login

2008-03-11 Thread Mathias Hjelt
Hello

Using DSpace 1.4.2 and Tomcat5, I enabled HTTPS for the password-related
pages/servlets by following the instructions at
http://wiki.dspace.org/index.php/ServletSecurity. This works fairly
well, i.e. the user is automatically redirected to HTTPS while logging
in, and after successful authentication he somehow gets redirected back
to plain HTTP.

However, in some situations the user gets "stuck" on the https site
(which causes an unnecessary burden on the server). E.g. if an
authenticated user clicks on Edit Profile (/profile) servlet, he's
redirected to HTTPS and never gets back to HTTP. 

Does anyone have a neat and easy solution to this? Or an explanation of
how the redirecting-back-to-http-after-logging-in is implemented?

(I know that this issue could be avoided by doing the entire SSL thing
in Apache running a mod_jk connector as a front-end for Tomcat, but I'd
like to keep the setup nice and clean -- which means leaving Apache out
of the game.)

Best regards

Mathias Hjelt



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Accidently drop table in postgres

2008-02-28 Thread Mathias Hjelt
I assume you’re asking this because you don’t have a backup of the database, so 
I won’t suggest using that to restore.. :)

 

First of all, make sure you DON’T run postgres’ vacuum on the database, second, 
make a copy of the pgdata folder just in case. I believe that deleted database 
items are not physically erased from postgres’ internal data storage (typically 
the pgdata folder) until you do a vacuum. Some eight years ago I accidentally 
deleted a large amount of data from a postgres database but was able to recover 
it somehow, but I just can’t remember how. Try a google search..

 

I believe you can’t recreate the database contents from the assetstore, as the 
assetstore only contains bitstreams and not metadata.

 

good luck,

 

Mathias Hjelt

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ROHAZNA BINTI 
WAHAB
Sent: 28. helmikuuta 2008 10:33
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Accidently drop table in postgres

 

Hi ..

Can someone help me?.. I accidently drop / deleted dspace databased .. I need 
an advised on:

1. Is there any way to recover the data?
2. I still have physical files in assetstore folder. How to use that file back?

i'm using dspace version 1.4.2. Tq in advanced


Regards,

Rohazna Wahab
Pegawai Teknologi Maklumat
Pusat Teknologi Maklumat & Komunikasi
Universiti Malaysia Perlis

Tel : 049798280
Fax : 049798227


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.unimap.edu.my/> , and is 
believed to be clean. 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DC metadata dilemma

2008-02-06 Thread Mathias Hjelt
We faced the same problem (for journal articles with multiple authors
with different affiliations), but did not find any good solution to it.
One crude solution I was thinking about was to add numbered metadata
fields, one for each author, e.g:

dc.contributor.author1 = Smith, John
dc.contributor.author2 = Doe, Joe
dc.contributor.affiliation1 = Smithsonian 
dc.contributor.affiliation2 = Doe's University

That could work decently within dspace, but it would be quite a headache
to have this kind of metadata exported over OAI in a sensible way..
 
So, essentially, we ignored the requirement to record this information
for now.. Please let me know if you invent some brilliant solution to
this :)

regards,

Mathias Hjelt
HANKEN



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mika
Stenberg
Sent: den 6 februari 2008 10:32
To: 'dspace-tech@lists.sourceforge.net'
Subject: [Dspace-tech] DC metadata dilemma

Articles Im hoping to store in DSpace, may contain multiple authors from
different faculties / institutions. We're hoping to maintain the
author-faculty connection within the metadata. In other words; one
reading the metadata the should be able to tell which author comes from
which institution. What would be the smartest way to implement this? Has
anyone encountered / implemented such schema?

Thanks,
Mika


-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] QDC crosswalk config

2008-02-05 Thread Mathias Hjelt
Hello,

I recently started looking into enabling qualified dublin core (qdc) for
the OAI interface. It seems as if DSpace 1.4.2 already includes all the
functionality needed, but what bothers me is that the header in
config/crosswalks/QDC.properties states that the file contains
*preliminary* mapping ..

Why preliminary? Is there a definite, de facto recommended mapping
scheme available somewhere, which would include all (or most) metadata
fields used by a standard DSpace installation?

If not, I'd hope that those of you who do use the QDC crosswalk would
share your mappings here on the list, or mail them to me personally. 

best regards

Mathias Hjelt
HANKEN


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Illegal argument exception

2008-01-24 Thread Mathias Hjelt
>> In the last few days I've been getting errors like this:
>> 
>> -- URL Was: http://deepblue.lib.umich.edu/dspace/handle/2027.42/31692
>>[..]
>> Exception:
>> java.lang.IllegalArgumentException: 2 Dec 2007 03:08:59 GMT at
>>
org.apache.catalina.connector.HttpRequestBase.getDateHeader(HttpRequestB
>> ase.java:860)
>
> My guess (and it is only a guess!) is that the date format being sent
by
> the crawler is incorrect, so Tomcat burps and spits it out.

We've also seen these since a few days back. HandleServlet.java does
this when the exception strikes:

long modSince = request.getDateHeader("If-Modified-Since");

So what happens is that the crawler is using an invalid
if-modified-since parameter in the http request. 

Now, our Tomcat doesn't seem to be creating any access logs (shouldn't
it?) so I can't check the source IP of this request. 

One odd thing is that the "URL Was:" section in the error mail I get is
missing the port number. I.e it shows
http://hostname/dspace/handle/xxx/yyy rather than
http://hostname:port/dspace/handle/xxx/yyy which is the only way our
DSpace can be acccessed since it's not listening to port 80. Probably
just a small bug in request.getRequestURL().toString() used by
storeOriginalURL but that's not very comforting..

best regards

Mathias Hjelt



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] DSpace LDAP jungle

2008-01-16 Thread Mathias Hjelt
Hi all,

I'm trying to get a grasp of how LDAP is working in DSpace 1.4.2, with
or without patches.

DSpace docs and some earlier posts suggest that LDAP authentication in
1.4.x is enabled by setting:

ldap.enable = true
plugin.sequence.org.dspace.eperson.AuthenticationMethod = \
org.dspace.eperson.LDAPAuthentication

However, sporadic posts and some stuff on SourceForge suggests that
ldap.enable is "unnecessary". There's also stuff on SourceForge
suggesting that stackable authentication is "broken". And there's a mail
by Christophe Dupriez (18 Nov 2007) suggesting that the
LDAPAuthentication class is an "untested embryon", while other posts
suggest that LDAPServlet is obsolete (even though it seems to be the
class doing the hard work!)

All this is rather contradictory, as it seems that both the
"unnecessary" ldap.enable AND the "untested embryon" LDAPAuthentication
are needed in order to have LDAP enabled and working in an unpatched,
off-the-shelf DSpace 1.4.2. In fact, this combination of "unnecessary"
and "untested" LDAP stuff works fine. It gives me exactly the end user
experience that I want: a logon screen prompting for username OR email,
and accepts either. The only thing it doesn't give me is support for
hierarchical LDAP, which I badly need (users reside in several different
OU's.)

Now, there is this patch #1597831 on SourceForge which eliminates the
"unnecessary" ldap.enable, "fixes" the apparently broken stackable
authentication, and introduces support for hierarchical LDAP (yay!). It
seems to work (except for when browsing deeper in Active Directory), but
there are some odd things about it. First off, when clicking on My
Dspace, I get a page where I have to choose authentication method.
Cumbersome. What's more, REGARDLESS of which method I choose (and get
redirected to ldap-login or password-login respectively), I can use
either an LDAP username or a dspace account to log in! Why prompt the
user for which method to use, if both "methods" accept both types of
credentials? Also, if invalid credentials (neither valid LDAP nor valid
dspace eperson) are supplied at ldap-login, the "try again" page is
served by password-login. Very, very confusing for the end user and for
the admin/developer..

So, what I'm wondering is: if I need to change the LDAP code somewhat in
order to get LDAP working against multi-OU Active Directory, should I
hack the original DSpace 1.4.2 code (which is confusing with its
LDAPServlet vs LDAPAuthentication split), or should I carry on working
with the 1597831 patch (which is confusing in terms of user experience)?
Or should I sit tight and wait for 1.5 and hope that this jungle has
been sorted out by someone else? 

best regards,

Mathias Hjelt


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Best practices for scripted metadata modifications

2007-09-10 Thread Mathias Hjelt
We have a few metadata maintenance related tasks (e.g. scan through the
metadata of items changed since last run and make sure the metadata
complies to certain rules) that we want to automate with scheduled
tasks. As I see it we have the following options:

- shell / perl scripts that use psql and finish by running index-all
- standalone java applications that use jdbc to modify database contents
- java applications based on the DSpace API

I guess using the API would be the "safest" way to access the metadata,
but I'm wondering if it's overkill for operations that could easily be
carried out with a small number of relatively simple SQL statements in a
script. On the other hand, bypassing the API and tweaking database
contents manually carries the risk of screwing stuff up unintentionally,
unless one's 100% sure about the scripts.. Any thoughts about this?

Some sample code for how to use the API would also come in handy, if
someone happens to have something they want to share. 

Best regards

Mathias Hjelt


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Any definitive guide to setting up handle server?(Dan Scott)

2007-09-09 Thread Mathias Hjelt
Thank you all for your Handle server setup tips. I think I got it all
set up now (just waiting for the firewall to be configured properly). I
created a new site bundle file and sent it to the Handle admin staff.
However: I'm still uncertain about whether the preferred way would've
been to opt for no encryption at all ("Would you like to encrypt your
private key?(y/n): n"), or to go for encryption BUT with an empty
passphrase. Any insights on this?

The problems didn't end there, however. When the Handle server started,
it bound itself only to IPv6 ports, not to "regular" IPv4 so in effect
it was still not reachable. The Handle staff quickly posted me a
solution to this, which was to modify start-handle-server and add
-Djava.net.preferIPv4Stack=true to the command line. That could also be
in the docs, even though IPv6 isn't very commonplace..

Best regards

Mathias Hjelt



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clive
Gould
Sent: 7. syyskuuta 2007 22:14
To: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Any definitive guide to setting up handle
server?(Dan Scott)

Hi

Have a look at http://www.linuxtraining.org.uk/blogger.html

For my experiences getting the handle server working.

Good luck

Clive



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] about itemImport tool

2007-09-09 Thread Mathias Hjelt
I have to disagree with Christian because an item's item_id in the
database is NOT the same as an item's Handle. An item's Handle (in
Dspace terminology) is something like 123456789/123, while the item_id
is a single number (e.g 75) which does not have to be the same as the
postfix part of the Handle (i.e. an item in your repository may have
item_id 75 in the database while it's Handle is 123456789/123.)

The ItemImport tool automatically determines whether you've passed it a
Handle or an id:

// is the ID a handle?
if (collections[i].indexOf('/') != -1)
{
// string has a / so it must be a handle - try and
resolve
[]
}
// not a handle, try and treat it as an integer
collection
// database ID

In other words, if the passed argument contains a slash character, it's
treated as a handle, otherwise as a database ID.

Best regards

Mathias Hjelt



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Christian Voelker
Sent: 9. syyskuuta 2007 11:06
To: wang jiahui
Cc: dspace-tech
Subject: Re: [Dspace-tech] about itemImport tool

Hello,

Am 09.09.2007 um 09:46 schrieb wang jiahui:

> I read that the there is an option named *-c* in ItemImport tool.
> The source file says that it means *destination collection(s)  
> Handle or database ID*.
> But I am confused that if we input a number, how does it know that  
> this is a handle
> or a database ID (collection ID)?

I guess it is just the same. When a handle gets
created, simply put, this is the row number in
the database. It is just a different perspective.
If you look at the URL, you will call this number
the handle, if you are the backend guy, you look
at the db and say it is the collection ID.

Bye, Christian



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Any definitive guide to setting up handle server?

2007-09-07 Thread Mathias Hjelt
Does anyone have an up-to-date and complete step-by-step guide on how to
set up the Handle server with DSpace 1.4.2? If such a guide exists,
would't it be a good idea to include it in the DSpace documentation or
put it on the Wiki? 

I'm currently in the process of trying to get this set up and I'm mildly
annoyed by the lacking documentation in
[dspace-source]/docs/install.html.

The first problem I ran into was that "make-handle-config" gives me
"Warning: data not encrypted" -> a quick Google on that led me to
http://www.thesesalive.ac.uk/archive/ERAInstallation-1.9.html#_Toc824950
72 which suggested running "dsrun net.handle.server.SimpleSetup"
instead, which is also mentioned in DSpace's install.html. However, any
documentation I've seen so far fails to mention that you should NOT put
a passphrase on your keys -> I did it, and now the handle server won't
start. A quick Google on "Invalid passphrase" -> found a thread
suggesting that "yes it's in the documentation if you read the
make-handle-config script".. Helpful indeed, in retrospect.

Furthermore, docs/install.html isn't very clear on how to proceed once
the above obstacles are out of the way. More Googling -> found
http://sunsite.utk.edu/diglib/dspace/#handle which makes the important
point that one should ignore the official Handle documentation
altogether (e.g that about "homing" your prefix etc). It also gives some
useful step-by-step instructions which, in my opinion, could be
integrated into docs/install.html. (Install.html implies you should
start the Handle server prior to even applying for a prefix, and fails
to explain how to put the obtained prefix into the Handle server's
config..)

So, now that I'm waiting for a reply from CNRI on how to proceed with
the passphrase issue (I did not find any solution for removing the
passphrase OR for making the handle server startup prompt for it), I'm
still not certain that I've got everything else right. Hence my
question, does anyone have a complete and up-to-date guide on how to do
this properly, without taking the trial-and-error path?

Best regards

Mathias Hjelt


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Submission forms

2007-08-24 Thread Mathias Hjelt
With the Configurable Submission system it's possible to define what
happens at which stage, so I assume you could do what you are asking
for. However, I recall that I ran into some weird problems by skipping
the initial questions. (Could have been related to the fact that if you
have a dc.publisher in your Item Template, you MUST check the "Has been
published before" on the first page, and if there's no first page, you
can't do that.. Also, it's not possible to have dc.title.alternative
show on your input form unless you have ticked "Has more than one title"
in the first stage, so again if you hide the first stage, there's no way
to have more than one title.. sigh)

regards,
-mathias


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mika
Stenberg
Sent: den 24 augusti 2007 12:23
To: 'dspace-tech@lists.sourceforge.net'
Subject: [Dspace-tech] Submission forms

Is there a way to get rid of the "initial questions" page on
submissions? I would also like to include the "upload file" dialog on
the first page, is this currently possible?

Thanks,
Mika


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Editing detailed metadata of an item during workflow

2007-08-19 Thread Mathias Hjelt
Hi,
 
Due to limitations of what you can do simply by modifying
input-forms.xml, we'll need to have someone make slight modifications to
the metadata of each submitted item after the regular submission process
is completed. Such modifications include editing the language code of
certain metadata fields etc.

Now, once an item has been accepted and made publicly available these
edits can easily be done via the Edit Item page
(http://.../dspace/tools/edit-item). However, to my surprise it does not
seem possible to edit meta data at this detailed level while the
submitted item is still in the workflow pipeline!

Even if there's an "edit metadata" workflow step defined for the
collection, this only allows the editing user to change metadata through
the means of the regular input form, NOT in the required low-level
fashion of the Edit Item page. Is there any easy workaround to this,
allowing an editor to touch up the metadata before accepting an item for
public access?

best regards

Mathias Hjelt
Swedish School of Economics and Business Administration

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Affiliation per author

2007-08-13 Thread Mathias Hjelt
Hello,
 
Does anyone have an elegant solution for allowing submitting users to
specify the affiliation of each author of, say, a journal article? I'm
sure this must be a rather common requirement for DSpace
implementations, yet I have not found a straight-forward way of
implementing this.
 
One solution I'm thinking about is putting the authors and their
affiliations in numbered metadata fields instead of repeating the
dc.contributor.author field. E.g something like this:
 
dc.contributor.author1 = Author, Albert
dc.contributor.author2 = Researcher, Roger
dc.contributor.affiliation1 = Universal University 
dc.contributor.affiliation2 = Specific School

Then I'd put in non-repeated fields for these in the input form, and
have them all indexed as Author. I guess this would be functional but
not very elegant. Especially since it grows very hairy if one wants to
allow for a larger number of authors per item, say five..

Any other suggestions?

Thanks in advance,

Mathias Hjelt
Swedish School of Economics and Business Administration

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Default publisher in item template causes warning at submission stage

2007-06-11 Thread Mathias Hjelt
Is there any workaround to this problem: if a default dc.publisher has
been defined in a the item template of a collection, DSpace throws this
warning at the submitting user unless he checks "has been published
before" checkbox at the first submission stage:


Submit: Caution

The changes you've made to the first "Describe Your Item" page will
affect your submission:

You've indicated that your submission has not been published or publicly
distributed before, but you've already entered an issue date, publisher
and/or citation. If you proceed, this information will be removed, and
DSpace will assign an issue date.

Are you sure you want to proceed with the changes?
---

Any way turn off this overly smart check?

Best regards,

Mathias Hjelt
HANKEN

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Language flags not used from item template

2007-06-11 Thread Mathias Hjelt
I have discovered something that I believe is a bug, or then there's
something I simply don't get: language flags assigned to metadata fields
in an item template seem to be ignored completely.

How to reproduce (tested this with dspace 1.4.2):
 
1) Create an item template for a collection
2) In the template, assign a default value to Title for example, and set
the language for this field to something else than your default language
3) Start submitting to the new collection: the default Title from the
template shows up, all is well so far.. 
4) Review the metadata of the submitted entry. Your default Title is
still there, but the language flag is now set to whatever you have
defined in dspace.cfg/default.language! If default.language is not set,
the Title field will not have any language definition at all.

So to me it appears that the default.language parameter overrides the
item template languages, even when default.language is undefined.

Any thoughts on this? Bug or feature? Any workaround?

best regards

Mathias Hjelt
HANKEN

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Input forms - how to support multiple languages for one field

2007-06-11 Thread Mathias Hjelt
I have a question regarding customization of the submission input forms.
Our requirement is that the submitting user should be able to enter the
title of a document in two languages of his own choice, say English and
German.
 
How do I accomplish this? Is it possible to add a Language dropdown next
to specific fields in the submission form? Or is there some other simple
solution to this? (I'm familiar with input-forms.xml but I haven't found
a way to add a language qualifier to arbitrary fields..)
 
Thanks in advance,
 
Mathias Hjelt
Swedish School of Economics and Business Administration
 
 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech