Re: [Dspace-tech] Messages.Properties

2008-06-30 Thread Robert Roggenbuck
You can copy it from [dspace-source]/... to [dspace]/... . But it is 
better to say 'ant init_configs' in 
[dspace-source]/dspace/target/dspace-[version-no.]-build.dir/.
This applies to all changes in the config-directory. After this You 
should restart You web-application server (like Tomcat).

Greetings

Robert


Zaya Kh schrieb:
 Hi all,
 
 In 1.5, what process do I use to update Messages.properties?
 
 Or do I need to copy changes manually from my source?
 
 Thanks
 
 
 
 
 
 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 
 
 
 
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

-- 

===
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Alte Muenze 16
D-49074 Osnabrueck
Germany
Tel ++49/541/969-4344  Fax -4482
[EMAIL PROTECTED]

Postbox:
Postfach 4496
D-49034 Osnabrueck
===

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] encoding in introductory text (xmlui)

2008-06-30 Thread Xaquin Lores
Hi,

yes, and the result was the same.

I forgive to explain I use dspace 1.4.2 and manakin 1.1a
Someone have used html entities within forms with this configuration?

Xaquín Lores


On Fri, Jun 27, 2008 at 4:03 PM, Dorothea Salo [EMAIL PROTECTED]
wrote:

 On Fri, Jun 27, 2008 at 7:46 AM, Xaquin Lores [EMAIL PROTECTED] wrote:
  Hi
 
  I'm having troubles with encodings when writing introductory text (html)
 of
  communities with Manakin.

 Encodings are headache-inducing!

 Have you tried hol#233;?

 Dorothea

 --
 Dorothea Salo [EMAIL PROTECTED]
 Digital Repository Librarian AIM: mindsatuw
 University of Wisconsin
 Rm 218, Memorial Library
 (608) 262-5493

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Borked sequence in author browse

2008-06-30 Thread Graham Triggs
Steve Thomas wrote:
 Hi.
 
 We're running 1.4.2.
 
 Our Author browse is producing an odd sequence of authors, e.g.
 
 Brown, Alfred Leonard
 Brown, Alice
 Brown, A. M.
 Brown, A. R.
 Brown-Augsburger, P.
 
 -- it looks very much like the sequence is ignoring punctuation (good) 
 AND ignoring spaces (b. BAD).
 
 Has anyone else experienced this?
 
 Is there a fix?

Hi,

I'm not particularly familiar with this situation. But if you want to 
alter the way the sorting occurs, the best approach would be to apply 
this patch:

http://sourceforge.net/tracker/index.php?func=detailaid=1672065group_id=19984atid=319984

it is [almost] the same code that is part of the 1.5 release, and allows 
you to define your own normalisation characteristics that will be used 
for the sorting.

Regards,
G
This email has been scanned by Postini.
For more information please visit http://www.postini.com


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Messages.Properties

2008-06-30 Thread Robert Roggenbuck
To be more precise:

You can copy it from [dspace-source]/dspace/config/ to [dspace]/config/.
But it is better to say 'ant init_configs' in
[dspace-source]/dspace/target/dspace-[version-no.]-build.dir/.

No other directories are to be touched, if You Web-server is configured
to use the DSpace-webapp-directory directly (e.g. by configuring
server.xml of Tomcat).
Else, the following should work - but I did not work this way, so I am
not quite sure about it: Invoke 'ant update_webapps' (in
[dspace-source]/dspace/target/dspace-[version-no.]-build.dir/) or say
something like 'cp -r /opt/dspace/webapps/jspui
/usr/share/tomcat5/webapps/' (depending on the paths of Your installation).

General things about internationalisation You will find in the Wiki:
http://wiki.dspace.org/index.php/I18nSupport

Greetings

Robert


--


Zaya Kh schrieb:
 hello, thanks for reply
 
 I translated Messages.Properties in our language. But I can not update this
 Messages.Properties.
 How and where  to change my Messages.Properties on [Dspace-source] or
 [dspace]?
 
 I can put Messages.Properties in
 [dspace-source]/dspace/target/dspace-1.5.0-build.tar/webapps/jspui/WEB-INF/classes/
 directory
 But it does not complete.
 
 After I put Messages.Properties in [Dspace]/webapps/jspui/WEB-INF/classes/
 directory.  It  does not complete
 
 
 How to change?
 
 On Mon, Jun 30, 2008 at 4:18 PM, Robert Roggenbuck 
 [EMAIL PROTECTED] wrote:
 
 You can copy it from [dspace-source]/... to [dspace]/... . But it is better
 to say 'ant init_configs' in
 [dspace-source]/dspace/target/dspace-[version-no.]-build.dir/.
 This applies to all changes in the config-directory. After this You should
 restart You web-application server (like Tomcat).

 Greetings

 Robert


 Zaya Kh schrieb:

 Hi all,

 In 1.5, what process do I use to update Messages.properties?

 Or do I need to copy changes manually from my source?

 Thanks



 

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php


 

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

 --

 ===
 Robert Roggenbuck
 Universitaetsbibliothek Osnabrueck
 Alte Muenze 16
 D-49074 Osnabrueck
 Germany
 Tel ++49/541/969-4344  Fax -4482
 [EMAIL PROTECTED]

 Postbox:
 Postfach 4496
 D-49034 Osnabrueck
 ===

 

-- 

===
Robert Roggenbuck
Universitaetsbibliothek Osnabrueck
Alte Muenze 16
D-49074 Osnabrueck
Germany
Tel ++49/541/969-4344  Fax -4482
[EMAIL PROTECTED]

Postbox:
Postfach 4496
D-49034 Osnabrueck
===


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] LDAP bind

2008-06-30 Thread Rafa Carreres

Hi,

I'm testing LDAP authentication in DSpace 1.4 and everything works OK. 
However I only need binding, not searching into LDAP because I don't 
want users to autoregister. Is it necessary for DSpace to make LDAP 
searches to authenticate users?


Thanks in advance





begin:vcard
fn:Rafael Carreres Paredes
n:Carreres Paredes;Rafael
org;quoted-printable:Universidad de Alicante;Administraci=C3=B3n de Sistemas - Servicio de Inform=C3=A1tica
adr:;;Ctra. San Vicente s/n;San Vicente del Raspeig;Alicante;03690;Spain
email;internet:[EMAIL PROTECTED]
title:Programador
tel;work:+34 96 590 34 00 Ext. 1174
x-mozilla-html:TRUE
version:2.1
end:vcard

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Output from DSpace/Fedora mtg June 10

2008-06-30 Thread Michele Kimpton
Dear members of the community,

On June 10th, a small group from both the Fedora commons community and  
DSpace community met for a one day workshop/brainstorm on potential  
projects to work in collaboration.  A full transcript of the meeting,  
including the list of ideas that resulted from the discussion are  
posted on the wiki at 
http://wiki.dspace.org/index.php/DSpace_Fedora_Collaboration 
.

DSpace Foundation and Fedora commons hopes to pick select projects  
over the next few months to work on with the input, support, and  
assistance from both our communities.  This summer we will work on  
collecting broader input and feedback from both communities to help  
identify the most worthwhile projects that best serve both communities.

We encourage and look forward to your input!  Please feel free to  
email or post your comments on the wiki page noted above. We will keep  
you informed as we advance this process.

Michele Kimpton
DSpace Foundation Executive Director

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] developers needed for one code fest in DC, July 25

2008-06-30 Thread Michele Kimpton
Last chance to sign yourself up to be part of the RepoCamp on July  
25th DC.  You will get to code, share and innovate with other  
developers in the open repository space- including folks from Fedora  
and eprints.  We need more DSpace developers, travel and lodging will  
be paid, please let me know if you would like to attend.

You can see how is going and find out more info at:
https://barcamp.pbwiki.com/RepoCamp


Thanks, Michele

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] encoding in introductory text (xmlui)

2008-06-30 Thread Valerio Minetti
Hi,
I had a similar problem with news-xmlui.xml. Our file contains
accented vowels like è, ì etc.
we solved this isssue specifying ISO-8859-1 (latin-1) as charset
directly into the file.

Valerio.

On Fri, Jun 27, 2008 at 2:46 PM, Xaquin Lores [EMAIL PROTECTED] wrote:
 Hi

 I'm having troubles with encodings when writing introductory text (html) of
 communities with Manakin.
 I write:

 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=content-type content=text/html;
 charset=utf-8 /
 /head
 body

 holá

 /body
 /html

 and the result is hol?
 If I write holaacute; the result is holaacute; , I've also tried text
 with only p and results were the same
 but if I don't write html tags, simply text like holá the result is holá

 With the same database jspui is working ok

 I have checked /tomcat/webapps/manakin/WEB-INF/web.xml and the configuration
 is:

   init-param
   param-namecontainer-encoding/param-name
   param-valueISO-8859-1/param-value
 /init-param

 init-param
   param-nameform-encoding/param-name
  param-valueUTF-8/param-value
 /init-param


 Any ideas?

 Xaquín Lores


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech





-- 
---

Valerio Minetti

Cpm - Centro produzione Multimediale,
Università degli Studi Milano Bicocca

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Susan Teague Rector
Hello all,

I thought I understood the workflow  authorizations in Dspace, but I'm 
beginning to think I may not -

Here's the scenario
1 - User uploads an item.
2 - Collection admin logs into the 'My Account' page and sees the 
submission.
3 - Collection admin 'Takes the Task' and then 'Accepts the Task'.
4 - On the 'Perform Task' page, collection admin sees a summary of the 
metadata, file name and description and license as well as opens to 
'Approve', 'Reject' etc.

I thought at this point, the admin would be able to open the file to 
look at it; however, there is no link for the file.

Maybe a silly questions, but is there an authorization that I can set to 
allow the collection admin to be able to open the file while it's still 
in an unapproved state?

I have given the collection admin the following authorizations:

default_item_read
default_bitstream_read
collection_admin

Thanks for your help,

Susan


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Dorothea Salo
 I thought at this point, the admin would be able to open the file to
 look at it; however, there is no link for the file.

Is there a link for the file on the previous screens (accept and
perform task)? I suspect this may be a usability wart rather than a
permissions error.

Dorothea

-- 
Dorothea Salo [EMAIL PROTECTED]
Digital Repository Librarian AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Susan Teague Rector
No - I thought for sure I had seen a link before - Tis not there...
There is a link for the license...
Thanks,
Susan

Dorothea Salo wrote:
 I thought at this point, the admin would be able to open the file to
 look at it; however, there is no link for the file.
 

 Is there a link for the file on the previous screens (accept and
 perform task)? I suspect this may be a usability wart rather than a
 permissions error.

 Dorothea

   


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Dorothea Salo
On Mon, Jun 30, 2008 at 12:47 PM, Susan Teague Rector [EMAIL PROTECTED] wrote:
 No - I thought for sure I had seen a link before - Tis not there...
 There is a link for the license...

That's strange. If you edit the collection, which of the three steps
(Accept/Reject, Accept/Reject/Edit Metadata, Edit Metadata) actually
has people/groups attached to it?

Dorothea

-- 
Dorothea Salo [EMAIL PROTECTED]
Digital Repository Librarian AIM: mindsatuw
University of Wisconsin
Rm 218, Memorial Library
(608) 262-5493

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Susan Teague Rector
Hi Dorothea,

Thanks for your help!

All steps have 4 people assigned (including the collection administrator 
and the administrator of the system).

Don't know if this matters, but I'm still using Dspace 1.4.2 and have 
Tim's configurable submission system in place.

susan


Dorothea Salo wrote:
 On Mon, Jun 30, 2008 at 12:47 PM, Susan Teague Rector [EMAIL PROTECTED] 
 wrote:
   
 No - I thought for sure I had seen a link before - Tis not there...
 There is a link for the license...
 

 That's strange. If you edit the collection, which of the three steps
 (Accept/Reject, Accept/Reject/Edit Metadata, Edit Metadata) actually
 has people/groups attached to it?

 Dorothea

   

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Field Missing from Altered Submission Forms

2008-06-30 Thread pennington
I could use some help on a DSpace mystery. We are on 1.4.2 and just created a 
custom submission input form process for DSpace for a particular collection, 
primary using the instructions from 
http://wiki.dspace.org/index.php/Alter_submission_input_forms and it works just 
fine, except for one problem. One of the fields just doesn't show up at all 
(dc.publisher).

Interestingly, this field is a really simple one, and it is a basically 
unchanged from the default Publisher field value in the input-forms.xml file. 
It looks like this in the file:

field
 dc-schemadc/dc-schema
 dc-elementpublisher/dc-element
 dc-qualifier/dc-qualifier
 repeatablefalse/repeatable
 labelPublisher/label
 input-typeonebox/input-type
 hintEnter the publisher of the collection./hint
 required/required
/field

I've tried moving it to a different place in the submission workflow, but it 
still doesn't show up. All of the other custom fields show up and write the 
correct DC metadata for submitted item of this particular collection, but the 
Publisher field doesn't show up at all.

Has anyone seen this before? Is there a limit on the number of submission 
fields of a particular page? Any ideas?

Thanks in advance for any help!

--
Stacy Pennington
Associate Database Analyst
Rhodes College
[EMAIL PROTECTED]
901-843-3968

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DatabaseManager question

2008-06-30 Thread Gary McGath
Gary McGath wrote:
 Sigh ... Implemnting embargo on the Manakin side of DSpace 1.5 is 
 proving to be the bane of my life. I appreciate the suggestions I've 
 received, but most of them require waiting, and that isn't an option.
 
 Anyway, I've been trying to implement a variant of Embargo v2 
 (http://wiki.dspace.org/index.php/Embargo_on_Bitstream_v2_%28JSP%29), 
 and making some progress. It comes down to a modification to 
 dspace-api/src/main/java/org/dspace/content/InstallItem.java , where I 
 add the following code to installItem:

I've found the problem, or at least a major part of it. In the Wiki, I'd 
provided Oracle code to set the primary key with a trigger, since the 
DEFAULT clause isn't legal under Oracle. But this was conflicting with 
DSpace's wrapper classes, with the result that the primary key was 
apparently being set twice. This meant that the UPDATE statement 
generated by DatabaseManager.java used a primary key value that didn't 
belong to the row it was trying to update.

I altered my database to remove the trigger, and now at least rows are 
appearing in the UMRESTRICTED table which have actual data. I'm 
wondering if the DEFAULT clause should be there at all, even for 
Postgresql. I'm far from an SQL expert, so my conclusions should be 
treated with caution.

I've updated the wiki page 
(http://wiki.dspace.org/index.php/Embargo_on_Bitstream_v2_%28JSP%29#Create_Database_Tables)
 
to delete the offending trigger, so that now the Oracle code looks just 
like the old SQL except for the absence of a DEFAULT clause.

If there are further issues with this, I'll post again to the list.


-- 
Gary McGath
Digital Library Software Engineer
Harvard University Library Office for Information Systems
http://hul.harvard.edu/~gary/index.html


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Understanding Workflow Authorizations

2008-06-30 Thread Susan Teague Rector
Does anyone know
Could this have to do with permissions at the server directory level?
Once I approve the item, the file is accessible - it's just in the 
approval process, I can't access it at all
thanks


Susan Teague Rector wrote:
 Hi Dorothea,

 Thanks for your help!

 All steps have 4 people assigned (including the collection administrator 
 and the administrator of the system).

 Don't know if this matters, but I'm still using Dspace 1.4.2 and have 
 Tim's configurable submission system in place.

 susan


 Dorothea Salo wrote:
   
 On Mon, Jun 30, 2008 at 12:47 PM, Susan Teague Rector [EMAIL PROTECTED] 
 wrote:
   
 
 No - I thought for sure I had seen a link before - Tis not there...
 There is a link for the license...
 
   
 That's strange. If you edit the collection, which of the three steps
 (Accept/Reject, Accept/Reject/Edit Metadata, Edit Metadata) actually
 has people/groups attached to it?

 Dorothea

   
 

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
   

-- 
Susan Teague Rector
Web Applications Manager
VCU Libraries
804.827.3554
[EMAIL PROTECTED]


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DatabaseManager question

2008-06-30 Thread Reuben Pasquini
Hi Gary,

I implemented a simple embargo as follows:

*. Setup the ingest workflow to specify an
embargo period in the 'dc:date available'
field.

*. Modify the dspace-api code so that
 AuthorizeManager::authorize()
   calls out to a checkEmbargo() method
   to verify that an object does not have
   an outstanding embargo.
   Currently hard-coded to only check the
   embargo for anonymous readers.
 
This seems to work in the test environment I have,
but we haven't rolled anything out for patron use.
I like the solution because:

*. It's implemented at the API level -
  not at the Manakin UI level
*. Does not require changes to the
 database schema
*. Simple implementation - just change one .java file
and rebuild dspace-api.jar.
Can be generalized to enforce the embargo
for different groups of users/whatever.

Anyway - just FYI.  I was planning to send an e-mail
to the dev-list once I had the code out in use
on a real production server to see if there is
any interest in it, but that may not happen for
several months yet, so there's a listing of the
code I've been playing with below.

Good luck!
Reuben


$  hg diff -r  1 input-forms.xml
...
+   /field
+   field
+dc-schemadc/dc-schema
+ dc-elementdate/dc-element
+ dc-qualifieravailable/dc-qualifier
+ repeatablefalse/repeatable
+ labelEmbargo/label
+ input-type
value-pairs-name=etd_embargodropdown/input-type
+ hintThesis embargo must be justified by reason of pending
patent,
+security restriction, or other similar constraint on
public access.
+/hint
+ required/required
+   /field
+
+ /page
+   /form
...+value-pairs value-pairs-name=etd_embargo
dc-term=date.available
+pair
+displayed-valueImmediate access to full description and
thesis/displayed-value
+stored-valueNO_RESTRICTION/stored-value
+/pair
+pair
+displayed-valueAccess to full description and thesis in 6
months/displayed-value
+stored-valueMONTHS_WITHHELD:6/stored-value
+/pair
+pair
+displayed-valueAccess to full description and thesis in 1
+year/displayed-value
+stored-valueMONTHS_WITHHELD:12/stored-value
+/pair
+pair
+displayed-valueAccess to full description and thesis in 2
+years/displayed-value
+stored-valueMONTHS_WITHHELD:24/stored-value
+/pair
+/value-pairs

-
$ svn diff
===
---
dspace-api/src/main/java/org/dspace/authorize/AuthorizeManager.java 
(revision
2942)
+++
dspace-api/src/main/java/org/dspace/authorize/AuthorizeManager.java (working
copy)
@@ -40,11 +40,19 @@
 package org.dspace.authorize;
 
 import java.sql.SQLException;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
 import java.util.ArrayList;
+import java.util.Date;
 import java.util.Iterator;
 import java.util.List;
 
+import org.apache.log4j.Logger;
+import org.dspace.content.Bitstream;
+import org.dspace.content.Bundle;
+import org.dspace.content.DCValue;
 import org.dspace.content.DSpaceObject;
+import org.dspace.content.Item;
 import org.dspace.core.Constants;
 import org.dspace.core.Context;
 import org.dspace.eperson.EPerson;
@@ -70,6 +78,7 @@
  */
 public class AuthorizeManager
 {
+private static final Logger log =
Logger.getLogger(AuthorizeManager.class);
 /**
  * Utility method, checks that the current user of the given
context can
  * perform all of the specified actions on the given object. An
@@ -237,6 +246,99 @@
 }
 
 /**
+ * Return true if an embargo is in effect on the given thing.
+ * Application policy determines which users must respect an
embargo.
+ * Embargo is only checked for BitStream objects by crawling
+ * up to the Item level and checking for date.available
+ * metadata specifying MONTHS_WITHHELD:#
+ * TODO: make this method configurable via a config file
+ *and plugin mechanism.
+ *
+ * @param thing to test for embargo
+ * @return true if an embargo needs enforced, false otherwise
+ */
+public static boolean checkEmbargo ( DSpaceObject thing ) throws
SQLException {
+if ( Constants.BITSTREAM != thing.getType () ) {
+return false;
+}
+boolean b_embargo_metadata = false;
+log.info( checking embargo on bitstream id:  + thing.getID
() );
+
+// Check for an embargo on the owning item - ugh!
+for ( Bundle bundle : ((Bitstream) thing).getBundles () ) {
+for ( Item item : bundle.getItems () ) {
+for ( DCValue dc_embargo : item.getMetadata( dc,
date, available, Item.ANY ) ) {
+b_embargo_metadata = true;
+if ( dc_embargo.value.startsWith(
MONTHS_WITHHELD: ) ) {
+DateFormat formatter = new
SimpleDateFormat(-MM-dd);
+Date   t_now = new Date ();
+int

Re: [Dspace-tech] Field Missing from Altered Submission Forms

2008-06-30 Thread Conal Tuohy
On Mon, 2008-06-30 at 13:54 -0500, [EMAIL PROTECTED] wrote:
 I could use some help on a DSpace mystery. We are on 1.4.2 and just
 created a custom submission input form process for DSpace for a
 particular collection, primary using the instructions from
 http://wiki.dspace.org/index.php/Alter_submission_input_forms and it
 works just fine, except for one problem. One of the fields just
 doesn't show up at all (dc.publisher).
 
 Interestingly, this field is a really simple one, and it is a
 basically unchanged from the default Publisher field value in the
 input-forms.xml file. It looks like this in the file:
 
 field
  dc-schemadc/dc-schema
  dc-elementpublisher/dc-element
  dc-qualifier/dc-qualifier
  repeatablefalse/repeatable
  labelPublisher/label
  input-typeonebox/input-type
  hintEnter the publisher of the collection./hint
  required/required
 /field
 
 I've tried moving it to a different place in the submission workflow,
 but it still doesn't show up. All of the other custom fields show up
 and write the correct DC metadata for submitted item of this
 particular collection, but the Publisher field doesn't show up at all.
 
 Has anyone seen this before? Is there a limit on the number of
 submission fields of a particular page? Any ideas?

I think I know what this is about.

There is a strange (to my mind) feature in the metadata editing system,
which is that the dc.publisher field, dc.date.issued,
dc.title.alternative, and dc.identifier.citation fields are
automatically removed from the input forms at runtime, depending on the
value of responses to the initial questions in the submission
process. 

If, when submitting an item, you say that an item has not been published
before, then the dc.publisher field disappears from your form, wherever
it may be.

The Java code responsible is in org.dspace.app.util.DCInputSet
http://projects.dspace.org/dspace/xref/org/dspace/app/util/DCInputSet.html#185

Hope that helps!

Con

-- 
Conal Tuohy
New Zealand Electronic Text Centre
www.nzetc.org


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] can not Dspace update

2008-06-30 Thread Gary Browne
Hi Zayakh
 
After making your updates in:
 
[dspace-source]/dspace/config/dspace.cfg
 
then from the [dspace-source]/dspace directory, run:
 
mvn package
 
then from [dspace-source]/dspace/target/dspace-1.5.x-build.dir/, run:
 
ant init_configs
 
Hope this helps.

Regards
Gary
 
 
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zaya Kh
Sent: Thursday, 26 June 2008 5:45 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] can not Dspace update


I installed dspace 1.5 on fedora, 

How to update my dspace.cfg file?

Help me?
 Thanks,Zayakh


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Messages.properties

2008-06-30 Thread Gary Browne
Hi Zaya
 
Make your changes in the source code:
 
[dspace-source]/dspace/module/jspui/src/main/resources/Messages.properti
es
 
Then run mvn package from [dspace-source]/dspace.
 
Then run 'ant update' from
[dspace-source]/dspace/target/dspace-1.5.x-build.dir.
 
Regards
Gary
 
 
Gary Browne
Development Programmer
Library IT Services
University of Sydney
ph: 9351-5946
 




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zaya Kh
Sent: Saturday, 28 June 2008 4:44 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Messages.Properties


Hi all,



In 1.5, what process do I use to update Messages.properties? 

Or do I need to copy changes manually from my source? 

Thanks 

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Importing postgers data from old dspace server to new dspace server

2008-06-30 Thread Nitin Bhadauria
Dear All


First of all i must admit that i am very new to Dspace.

I have to repository of movies and document on Dspace-1.3.2 from 2005.

Now we brought a new server for the dspace and I install the dspace
reffing the dspace manual It work's well but when i import data from old
server it kept saying

Internal System Error

I refer these documents for migrating my data from old server to new server.

http://www.thesesalive.ac.uk/archive/ERAInstallation-1.9.pdf

http://www.ub.uib.no/bora/tekndok/DSpace%20Installation%20v4.0.pdf


Please tell me if i am on the right track or if it is possible to migrate
data from old dspace version..

Thanks
Nitin





-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech