Re: [Dspace-tech] running the 15 to 16 script

2010-04-26 Thread Claudia Jürgen

Hello Jose,

no I think this is not necessary.

Claudia


Am 22.04.2010 15:58, schrieb Blanco, Jose:

Thank you. I have not run the command yet, and have been testing, but
have not tested deleting items, collections, or communities, so I
have not had the error you mentioned.  I suppose that after I run
this command I will need to run index-init again.  I know it can't
hurt, but is it necessary?

Thank you for this very clear explanation.

-Jose

-Original Message- From: Claudia Jürgen
[mailto:claudia.juer...@ub.tu-dortmund.de] Sent: Thursday, April 22,
2010 2:19 AM To: dspace-tech@lists.sourceforge.net; Blanco, Jose
Subject: Re: [Dspace-tech] running the 15 to 16 script

Hello Jose,

in that case you got to run:

ALTER TABLE collection2item DROP CONSTRAINT $2; ALTER TABLE
community2community DROP CONSTRAINT $2; ALTER TABLE
community2collection DROP CONSTRAINT $2;

The reason for this is:

In Step 7 Update the database it can happen that not all the commands
in the database_schema_15-16.sql are executed properly.

The commands to drop foreign keys:

ALTER TABLE collection2item DROP CONSTRAINT
collection2item_item_id_fkey;

ALTER TABLE community2community DROP CONSTRAINT
community2community_child_comm_id_fkey;

ALTER TABLE community2collection DROP CONSTRAINT
community2collection_collection_id_fkey;


assume that the keys got default names, whereas depending on the
database version and operating system on which your instance
started, they can have no names and just be counted internally.

If you got no names or other names the script will skip the
commands, with the following notes:

psql:database_schema_15-16.sql:105: ERROR:  constraint
community2collection_collection_id_fkey of relation
community2collection does not exist ALTER TABLE
psql:database_schema_15-16.sql:108: ERROR:  constraint
community2community_child_comm_id_fkey of relation
community2community does not exist ALTER TABLE
psql:database_schema_15-16.sql:111: ERROR:  constraint
collection2item_item_id_fkey of relation collection2item does not
exist

This will lead to errors running DSpace as now 2 contraints exist
and one is unable to delete items, collections etc.


If you run into that error you got to inspect your db and use the
references for the foreign keys: psql [YourDBName] \d [TableName]
will show you the foreign keys, e.g.: \d community2collection

Table public.community2collection Column |  Type   | Modifiers
---+-+--- id| integer | not
null community_id  | integer | collection_id | integer | Indexes:
community2collection_pkey PRIMARY KEY, btree (id)
community2collection_collection_id_idx btree (collection_id)
community2collection_community_id_idx btree (community_id)
Foreign-key constraints: $1 FOREIGN KEY (community_id) REFERENCES
community(community_id) $2 FOREIGN KEY (collection_id) REFERENCES
collection(collection_id)

so the command would be:

ALTER TABLE community2collection DROP CONSTRAINT $2;

A Note will be added to the upgrade step in the DSpace
documentation.

Hope that helps

Claudia Jürgen



Am 19.04.2010 23:00, schrieb Blanco, Jose:

I get the following erro:

psql:database_schema_15-16.sql:105: ERROR:  constraint
community2collection_collection_id_fkey does not exist

This is what I see when I look at the table.  I think I want to
drop $2, but how do I do that?

Thank you! Jose

dspace-dev-16=   \d community2collection Table
public.community2collection Column |  Type   | Modifiers
---+-+--- id| integer | not
null community_id  | integer | collection_id | integer | Indexes:
community2collection_pkey PRIMARY KEY, btree (id)
community2collection_collection_id_idx btree (collection_id)
community2collection_community_id_idx btree (community_id)
Foreign-key constraints: $1 FOREIGN KEY (community_id) REFERENCES
community(community_id) $2 FOREIGN KEY (collection_id) REFERENCES
collection(collection_id) comm2coll_collection_fk FOREIGN KEY
(collection_id) REFERENCES collection(collection_id) DEFERRABLE

--



Download Intel#174; Parallel Studio Eval

Try the new software tools for yourself. Speed compiling, find
bugs proactively, and fine-tune applications for parallel
performance. See why Intel Parallel Studio got high marks during
beta. http://p.sf.net/sfu/intel-sw-dev
___ DSpace-tech mailing
list DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
attachment: Claudia_Juergen.vcf--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] search engine and MS documents

2010-04-26 Thread Fabien COMBERNOUS
Hi,

We are testing dspace 1.6. And the media filter does not look to handle 
some MS document formats. I'm allergic to this kind of format. But in a 
production env, several users will submit them. Does exist a way to add 
a minimalistic index about them ?

Best regards,
-- 
*Fabien COMBERNOUS*
/unix system engineer/
www.kezia.com http://www.kezia.com/
*Tel: +33 (0) 467 992 986*
Kezia Group

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


[Dspace-tech] removing Items from XMLUI pages

2010-04-26 Thread Mark Ehle
Folks -

We are getting very near to going live with our dspace postcard
project, having figured out how to bulk import all 10,000 images.
Thanks to all who helped us in this endeavor!

Now we need to modify the pages of our instance of despace; we need to
remove the browse box and the my account box. We have studied the
structural.xml file and have not found anywhere that can help us.

Our dspace instance can be found at:

http://dspace.willard.lib.mi.us/xmlui/

We also have a cooliris widget at:

http://ns/postcards/lassen_cooliris.php

What are we missing?

Thanks!

LibraryMark

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


[Dspace-tech] CC License page link problems

2010-04-26 Thread Debashree Pati
Hi,

Has anyone encountered these?

I have installed DSpace 1.6 and submitted an item containing CC License.
When I view the CC License page there are some errors:

1. The Legal Code (the full license) link at the bottom of the page
gives the error:

org.apache.cocoon.ResourceNotFoundException: Unable to locate bitstream
map:read type=BitstreamReader -
context:/file:///usr/local/tomcat/webapps/xmlui/sitemap.xmap - 281:70

2. The Use this license for your own work link at bottom of the page
gives error:

HTTP Status 404 - /choose/results-one
type Status report
message /choose/results-one
description The requested resource (/choose/results-one) is not available.

3. The logos for country and Free Cultural Works license at top of page
are missing

4. There are a lot of question marks on the available languages section on
top and after the to Share and to Remix texts.

Will appreciate any insight.

Thanks,
Debashree

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


Re: [Dspace-tech] LDAP with DSpace

2010-04-26 Thread Max McGrath
Hi Stuart -

Here is the code I am looking at:

if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals())) *You want me to
change this to if (true) and then leave everything else the same**???*
 {
 try
 {
 eperson = EPerson.findByEmail(context, ldap.ldapEmail);
 if (eperson!=null)
 {
 log.info(LogManager.getHeader(context,
 type=ldap-login, type=ldap_but_already_email));
 context.setIgnoreAuthorization(true);
 eperson.setNetid(netid.toLowerCase());
 eperson.update();
 context.commit();
 context.setIgnoreAuthorization(false);
 context.setCurrentUser(eperson);
 return SUCCESS;
 }
 else
 {
 if (canSelfRegister(context, request, netid))
 {
 // TEMPORARILY turn off authorisation
 try
 {
 context.setIgnoreAuthorization(true);
 eperson = EPerson.create(context);
 if ((ldap.ldapEmail != null)  (!ldap.ldapEmail.equals()))
 {
 eperson.setEmail(ldap.ldapEmail);
 }
 else
 {
 eperson.setEmail(netid +
ConfigurationManager.getProperty(ldap.netid_email_domain));
 }
 if ((ldap.ldapGivenName!=null)  (!ldap.ldapGivenName.equals()))
 {
 eperson.setFirstName(ldap.ldapGivenName);
 }
 if ((ldap.ldapSurname!=null)  (!ldap.ldapSurname.equals()))
 {
 eperson.setLastName(ldap.ldapSurname);
 }
 if ((ldap.ldapPhone!=null)(!ldap.ldapPhone.equals()))
 {
 eperson.setMetadata(phone, ldap.ldapPhone);
 }
 eperson.setNetid(netid.toLowerCase());
 eperson.setCanLogIn(true);
 AuthenticationManager.initEPerson(context, request, eperson);
 eperson.update();
 context.commit();
 context.setCurrentUser(eperson);
 }
 catch (AuthorizeException e)
 {
 return NO_SUCH_USER;
 }
 finally
 {
 context.setIgnoreAuthorization(false);
 }

log.info(LogManager.getHeader(context, authenticate,
 type=ldap-login, created ePerson));
 return SUCCESS;
 }
 else
 {
 // No auto-registration for valid certs
 log.info(LogManager.getHeader(context,
 failed_login, type=ldap_but_no_record));
 return NO_SUCH_USER;
 }
 }
 }

--
Max McGrath
Asst. Network Admin/Systems Specialist
Carthage College
262-552-5512
mmcgr...@carthage.edu


On Thu, Apr 22, 2010 at 9:28 PM, Stuart Lewis s.le...@auckland.ac.nzwrote:

 Hi Max,

 Yes - looks like there's a bit of a logic flow problem going on there - the
 check for an empty email is being performed twice, and the first is not
 needed. Try looking at
 [dsapce-src]/dspace-api/src/main/java/org/dspace/authenticate/LDAPHierarchicalAuthentication.java
 and find the line:

 if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals()))

 (about line 254) and change it to:

 if (true)

 Rebuild, redeploy etc. If may throw a null pointer exception, if so, add
 just before the if statement:

 if (ldap.ldapEmail == null) ldap.ldapEmail = ;

 If this fixes the problem, we'll look at getting it corrected in the next
 release.

 Thanks,


 Stuart Lewis
 IT Innovations Analyst and Developer
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928



 On 23/04/2010, at 2:19 PM, Max McGrath wrote:

  That could very well be the case as we do not have the e-mail address
 field populated in LDAP.  But I thought the following code would take care
 of that:
 
  # If your LDAP server does not hold an email address for a user, you can
 use
  # the following field to specify your email domain. This value is
 appended
  # to the netid in order to make an email address. E.g. a netid of 'user'
 and
  # ldap.netid_email_domain as '@example.com' would set the email of the
 user
  # to be 'u...@example.com
  ldap.netid_email_domain = @carthage.edu
  --
  Max McGrath
  Asst. Network Admin/Systems Specialist
  Carthage College
  262-552-5512
  mmcgr...@carthage.edu
 
 
  On Thu, Apr 22, 2010 at 9:12 PM, Stuart Lewis s.le...@auckland.ac.nz
 wrote:
  Hi Max,
 
  This code has been stable for a while and is working in a lot of
 installations, so hopefully there is no bug. One possible cause is that the
 email address is not being returned from the LDAP query. If there is no
 email address then an eperson record cannot be created.
 
  Check that the following setting is correctly configured in dspace.cfg:
 
  ldap.email_field = mail
 
  Thanks,
 
 
  Stuart Lewis
  IT Innovations Analyst and Developer
  Te Tumu Herenga The University of Auckland Library
  Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
  Ph: +64 (0)9 373 7599 x81928
 
 
  On 23/04/2010, at 1:48 PM, Max McGrath wrote:
 
   Yes, I do have that set to true and the ePersons are still not being
 created.
   --
   Max McGrath
   Asst. Network Admin/Systems Specialist
   Carthage College
   262-552-5512
   mmcgr...@carthage.edu
  
  
   On Thu, Apr 22, 2010 at 1:33 PM, penning...@rhodes.edu wrote:
   Hi, Max. I'm glad you have LDAP auth working now.
  
   Do you have webui.ldap.autoregister = true in your dspace.cfg?
  
   We don't have webui.ldap.autoregister set to true, currently, and we do
 create all e-person accounts manually for those faculty and staff that need
 to access DSpace to add or edit objects. We were 

[Dspace-tech] Question about thumbnails

2010-04-26 Thread George Stanley Kozak
Hi...

I have a question about the generated thumbnails.  I have items that have 
multiple jpeg bitstreams.  Is there a way of forcing one of the generated 
thumbnails of the item to be the prime thumbnail displayed?

George Kozak
Digital Library Specialist
Division of Library Information Technologies (DLIT)
501 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

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


Re: [Dspace-tech] Question about thumbnails

2010-04-26 Thread Maureen Walsh
Hi George,

To have a particular thumbnail show on browse and search results pages set
the 'parent' jpeg as primary. (We are currently on 1.5.2 JSPUI and this
works for us.) Note: A 1.6 update allows the primary bitstream to be set in
the item importer / exporter.

The link behavior of the thumbnail can be set to either item or bitstream in
dspace.cfg

The following used to be included in the documentation, although I didn't
find it looking quickly through the new documentation:

   - where the primary bitstream is HTML, no thumbnail is shown;
   - where the primary bitstream has a thumbnail, its thumbnail is shown;
   - where the primary bitstream is not set, the first thumbnail found by
   DSpace will be shown;
   - where the user does not have read access to the thumbnail bitstream, no
   thumbnail is shown;
   - currently, for a thumbnail to display, a JPEG thumbnail under the
   current implementation rules must exist (i.e. primary bitstream name with
   .jpg suffix).

Maureen Walsh

Maureen P. Walsh
Metadata Librarian, Assistant Professor
The Ohio State University Libraries
600 Ackerman Road, Columbus, OH 43202
tel: 614-292-3330 / fax: 614-292-2015
walsh@osu.edu



On Mon, Apr 26, 2010 at 1:37 PM, George Stanley Kozak g...@cornell.eduwrote:

  Hi…



 I have a question about the generated thumbnails.  I have items that have
 multiple jpeg bitstreams.  Is there a way of “forcing” one of the generated
 thumbnails of the item to be the “prime” thumbnail displayed?



 George Kozak

 Digital Library Specialist

 Division of Library Information Technologies (DLIT)

 501 Olin Library

 Cornell University

 Ithaca, NY 14853

 607-255-8924




 --

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


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


Re: [Dspace-tech] LC Authority Names - Lookup Feature - names w/o dates

2010-04-26 Thread Poulter, Dale
Mark,

If anyone else is interested,  I have modified the LCNameAuthority.java to also 
display/add dates (birth/death) to the lookup.

-Original Message-
From: Mark Diggory [mailto:mdigg...@atmire.com] 
Sent: Friday, April 23, 2010 6:45 PM
To: Francis, Ronee L
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] LC Authority Names - Lookup Feature - names w/o dates

Yes, its just returning one field of the srw record, not sure if its a
problem, just not a feature. I'd recommend possibly a JIRA ticket on
exploring if xslt can be used to provide users with simple template
option to set what the results should be formated like when turned in
Choices in the Handler.

mx:datafield ind1=1 ind2=  tag=400
mx:subfield code=aLincoln, Abraham,/mx:subfield
mx:subfield code=dca. 1840-1922/mx:subfield
/mx:datafield

On Fri, Apr 23, 2010 at 4:36 PM, Mark Diggory mdigg...@atmire.com wrote:

 Ronee,
 Do you have the link? It did not come through.I am suspect that the 
 SRUHandler is not parsing off the date and appending it in the choices. We 
 may want to revisit what fields should be passed through and included in the 
 choices.
 http://scm.dspace.org/svn/repo/dspace/trunk/dspace-api/src/main/java/org/dspace/content/authority/LCNameAuthority.java
 Mark
 On Fri, Apr 23, 2010 at 11:59 AM, Francis, Ronee L r.fran...@vanderbilt.edu 
 wrote:

 We are having an issue with LC  Authority Names. When using the Lookup 
 feature in 1.6, the results do not include dates.



 Example results looks like this:



 Wilkins, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Bommala-Abraham



 The OCLC search results look like this and include dates. Can someone help 
 to correct this or shed some light on the problem?





 Thanks,



 Ronee









 DiscoverArchive. Be Discovered.

 Website  Twitter  Facebook

 ___



 --

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




 --
 Mark R. Diggory
 Head of U.S. Operations - @mire

 http://www.atmire.com - Institutional Repository Solutions
 http://www.togather.eu - Before getting together, get t...@ther



--
Mark R. Diggory
Head of U.S. Operations - @mire

http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther

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


Re: [Dspace-tech] LC Authority Names - Lookup Feature - names w/o dates

2010-04-26 Thread Mark Diggory
Please attach the file to this JIRA ticket.

http://jira.dspace.org/jira/browse/DS-557

Mark

On Mon, Apr 26, 2010 at 11:47 AM, Poulter,   Dale
dale.poul...@vanderbilt.edu wrote:
 Mark,

 If anyone else is interested,  I have modified the LCNameAuthority.java to 
 also display/add dates (birth/death) to the lookup.

 -Original Message-
 From: Mark Diggory [mailto:mdigg...@atmire.com]
 Sent: Friday, April 23, 2010 6:45 PM
 To: Francis, Ronee L
 Cc: dspace-tech@lists.sourceforge.net
 Subject: Re: [Dspace-tech] LC Authority Names - Lookup Feature - names w/o 
 dates

 Yes, its just returning one field of the srw record, not sure if its a
 problem, just not a feature. I'd recommend possibly a JIRA ticket on
 exploring if xslt can be used to provide users with simple template
 option to set what the results should be formated like when turned in
 Choices in the Handler.

 mx:datafield ind1=1 ind2=  tag=400
 mx:subfield code=aLincoln, Abraham,/mx:subfield
 mx:subfield code=dca. 1840-1922/mx:subfield
 /mx:datafield

 On Fri, Apr 23, 2010 at 4:36 PM, Mark Diggory mdigg...@atmire.com wrote:

 Ronee,
 Do you have the link? It did not come through.I am suspect that the 
 SRUHandler is not parsing off the date and appending it in the choices. We 
 may want to revisit what fields should be passed through and included in the 
 choices.
 http://scm.dspace.org/svn/repo/dspace/trunk/dspace-api/src/main/java/org/dspace/content/authority/LCNameAuthority.java
 Mark
 On Fri, Apr 23, 2010 at 11:59 AM, Francis, Ronee L 
 r.fran...@vanderbilt.edu wrote:

 We are having an issue with LC  Authority Names. When using the Lookup 
 feature in 1.6, the results do not include dates.



 Example results looks like this:



 Wilkins, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Abraham

 Lincoln, Bommala-Abraham



 The OCLC search results look like this and include dates. Can someone help 
 to correct this or shed some light on the problem?





 Thanks,



 Ronee









 DiscoverArchive. Be Discovered.

 Website  Twitter  Facebook

 ___



 --

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




 --
 Mark R. Diggory
 Head of U.S. Operations - @mire

 http://www.atmire.com - Institutional Repository Solutions
 http://www.togather.eu - Before getting together, get t...@ther



 --
 Mark R. Diggory
 Head of U.S. Operations - @mire

 http://www.atmire.com - Institutional Repository Solutions
 http://www.togather.eu - Before getting together, get t...@ther

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




-- 
Mark R. Diggory
Head of U.S. Operations - @mire

http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther

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


[Dspace-tech] Dspace fails to start

2010-04-26 Thread Stackpole, Mark
Hello:
 
We are on Dspace 1.4.1 http://e-archives.library.csum.edu/
 
When I access our main page, we are now getting this error. Looking at
this report, could you give me some tips about why this is happening,
please?
 
Thank you for your time.
 
description The server encountered an internal error () that prevented
it from fulfilling this request.

exception 
org.apache.jasper.JasperException

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:476)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:389)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)

org.dspace.app.webui.util.JSPManager.showInternalError(JSPManager.java:1
06)
org.apache.jsp.index_jsp._jspService(index_jsp.java:98)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause 
java.lang.NullPointerException

org.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.jav
a:487)

org.dspace.core.ConfigurationManager.getProperty(ConfigurationManager.ja
va:113)

org.dspace.app.webui.jsptag.LayoutTag.doStartTag(LayoutTag.java:176)

org.apache.jsp.error.internal_jsp._jspService(internal_jsp.java:88)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.dspace.app.webui.util.JSPManager.showJSP(JSPManager.java:91)

org.dspace.app.webui.util.JSPManager.showInternalError(JSPManager.java:1
06)
org.apache.jsp.index_jsp._jspService(index_jsp.java:98)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:328)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 
 
Mark Stackpole
Library Technologist
California Maritime Academy Library
Vallejo, CA
 

P Please consider whether it is necessary to print this email.

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


Re: [Dspace-tech] LDAP with DSpace

2010-04-26 Thread Stuart Lewis
Hi Max,

Yes - that's right.

Change:

if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals()))


to


if (ldap.ldapEmail == null) ldap.ldapEmail = ;
if (true) 


(I've added an extra line there to hopefully catch another error that could 
occur.)

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928



On 27/04/2010, at 4:15 AM, Max McGrath wrote:

 Hi Stuart -
 
 Here is the code I am looking at:
 
 if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals())) You want me to 
 change this to if (true) and then leave everything else the same???
   {
   try
   {
   eperson = 
 EPerson.findByEmail(context, ldap.ldapEmail);
   if (eperson!=null)
   {
   
 log.info(LogManager.getHeader(context,
   
 type=ldap-login, type=ldap_but_already_email));
   
 context.setIgnoreAuthorization(true);
   
 eperson.setNetid(netid.toLowerCase());
   eperson.update();
   context.commit();
   
 context.setIgnoreAuthorization(false);
   
 context.setCurrentUser(eperson);
   return SUCCESS;
   }
   else
   {
   if 
 (canSelfRegister(context, request, netid))
   {
   // TEMPORARILY 
 turn off authorisation
   try
   {
   
 context.setIgnoreAuthorization(true);
   eperson 
 = EPerson.create(context);
   if 
 ((ldap.ldapEmail != null)  (!ldap.ldapEmail.equals()))
   {
   
 eperson.setEmail(ldap.ldapEmail);
   }
   else
   {
   
 eperson.setEmail(netid + 
 ConfigurationManager.getProperty(ldap.netid_email_domain));
   }
   if 
 ((ldap.ldapGivenName!=null)  (!ldap.ldapGivenName.equals()))
   {
   
 eperson.setFirstName(ldap.ldapGivenName);
   }
   if 
 ((ldap.ldapSurname!=null)  (!ldap.ldapSurname.equals()))
   {
   
 eperson.setLastName(ldap.ldapSurname);
   }
   if 
 ((ldap.ldapPhone!=null)(!ldap.ldapPhone.equals()))
   {
   
 eperson.setMetadata(phone, ldap.ldapPhone);
   }
   
 eperson.setNetid(netid.toLowerCase());
   
 eperson.setCanLogIn(true);
   
 AuthenticationManager.initEPerson(context, request, eperson);
   

Re: [Dspace-tech] LDAP with DSpace

2010-04-26 Thread Max McGrath
Stuart -

I made the change and then restarted Tomcat and it still is not working for
people that do not have their e-mail address in LDAP.

Should I have done more than just restarting Tomcat?

Thanks for all the help!
--
Max McGrath
Asst. Network Admin/Systems Specialist
Carthage College
262-552-5512
mmcgr...@carthage.edu


On Mon, Apr 26, 2010 at 3:46 PM, Stuart Lewis s.le...@auckland.ac.nzwrote:

 Hi Max,

 Yes - that's right.

 Change:

 if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals()))


 to


 if (ldap.ldapEmail == null) ldap.ldapEmail = ;
 if (true)


 (I've added an extra line there to hopefully catch another error that could
 occur.)

 Thanks,


 Stuart Lewis
 IT Innovations Analyst and Developer
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928



 On 27/04/2010, at 4:15 AM, Max McGrath wrote:

  Hi Stuart -
 
  Here is the code I am looking at:
 
  if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals())) You want me to
 change this to if (true) and then leave everything else the same???
{
try
{
eperson =
 EPerson.findByEmail(context, ldap.ldapEmail);
if (eperson!=null)
{
log.info
 (LogManager.getHeader(context,
 
 type=ldap-login, type=ldap_but_already_email));
 
 context.setIgnoreAuthorization(true);
 
 eperson.setNetid(netid.toLowerCase());
eperson.update();
context.commit();
 
 context.setIgnoreAuthorization(false);
 
 context.setCurrentUser(eperson);
return SUCCESS;
}
else
{
if
 (canSelfRegister(context, request, netid))
{
//
 TEMPORARILY turn off authorisation
try
{
 
 context.setIgnoreAuthorization(true);
 
 eperson = EPerson.create(context);
if
 ((ldap.ldapEmail != null)  (!ldap.ldapEmail.equals()))
{
 
 eperson.setEmail(ldap.ldapEmail);
}
 
 else
{
 
 eperson.setEmail(netid +
 ConfigurationManager.getProperty(ldap.netid_email_domain));
}
if
 ((ldap.ldapGivenName!=null)  (!ldap.ldapGivenName.equals()))
{
 
 eperson.setFirstName(ldap.ldapGivenName);
}
if
 ((ldap.ldapSurname!=null)  (!ldap.ldapSurname.equals()))
{
 
 eperson.setLastName(ldap.ldapSurname);
}
if
 ((ldap.ldapPhone!=null)(!ldap.ldapPhone.equals()))
{
 
 eperson.setMetadata(phone, ldap.ldapPhone);
}
 
 eperson.setNetid(netid.toLowerCase());
 
 eperson.setCanLogIn(true);
 
 AuthenticationManager.initEPerson(context, request, eperson);
 
 eperson.update();
 
 context.commit();
 
 context.setCurrentUser(eperson);
}
catch
 (AuthorizeException e)
{
 
 return NO_SUCH_USER;
}
finally
{
 
 context.setIgnoreAuthorization(false);
}
 
   

Re: [Dspace-tech] LDAP with DSpace

2010-04-26 Thread Stuart Lewis
Hi Max,

After making the change you need to re-build tomcat, and redeploy it. You can 
do this by following steps 7, 8, and 9 in the installation guide:

 - http://www.dspace.org/1_6_0Documentation/ch03.html#N108B6

But at step 8, as this is not a new installation, you need to run 'ant update' 
instead of 'ant fresh_install'.

Thanks,


Stuart Lewis
IT Innovations Analyst and Developer
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


On 27/04/2010, at 8:57 AM, Max McGrath wrote:

 Stuart -
 
 I made the change and then restarted Tomcat and it still is not working for 
 people that do not have their e-mail address in LDAP.
 
 Should I have done more than just restarting Tomcat?
 
 Thanks for all the help!
 --
 Max McGrath
 Asst. Network Admin/Systems Specialist
 Carthage College
 262-552-5512
 mmcgr...@carthage.edu
 
 
 On Mon, Apr 26, 2010 at 3:46 PM, Stuart Lewis s.le...@auckland.ac.nz wrote:
 Hi Max,
 
 Yes - that's right.
 
 Change:
 
 if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals()))
 
 
 to
 
 
 if (ldap.ldapEmail == null) ldap.ldapEmail = ;
 if (true)
 
 
 (I've added an extra line there to hopefully catch another error that could 
 occur.)
 
 Thanks,
 
 
 Stuart Lewis
 IT Innovations Analyst and Developer
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928
 
 
 
 On 27/04/2010, at 4:15 AM, Max McGrath wrote:
 
  Hi Stuart -
 
  Here is the code I am looking at:
 
  if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals())) You want me to 
  change this to if (true) and then leave everything else the same???
{
try
{
eperson = 
  EPerson.findByEmail(context, ldap.ldapEmail);
if (eperson!=null)
{

  log.info(LogManager.getHeader(context,

  type=ldap-login, type=ldap_but_already_email));

  context.setIgnoreAuthorization(true);

  eperson.setNetid(netid.toLowerCase());
eperson.update();
context.commit();

  context.setIgnoreAuthorization(false);

  context.setCurrentUser(eperson);
return SUCCESS;
}
else
{
if 
  (canSelfRegister(context, request, netid))
{
// 
  TEMPORARILY turn off authorisation
try
{

  context.setIgnoreAuthorization(true);

  eperson = EPerson.create(context);
if 
  ((ldap.ldapEmail != null)  (!ldap.ldapEmail.equals()))
{
  
eperson.setEmail(ldap.ldapEmail);
}
else
{
  
eperson.setEmail(netid + 
  ConfigurationManager.getProperty(ldap.netid_email_domain));
}
if 
  ((ldap.ldapGivenName!=null)  (!ldap.ldapGivenName.equals()))
{
  
eperson.setFirstName(ldap.ldapGivenName);
}
if 
  ((ldap.ldapSurname!=null)  

Re: [Dspace-tech] LDAP with DSpace

2010-04-26 Thread Max McGrath
Hi Stuart -

Thanks for clarifying the rebuild and redeploy.

Unfortunately, still no luck.

I think I'll just start working on populating the e-mail field in LDAP.

Thanks for all your help!  I really appreciate it!

Max
--
Max McGrath
Asst. Network Admin/Systems Specialist
Carthage College
262-552-5512
mmcgr...@carthage.edu


On Mon, Apr 26, 2010 at 4:02 PM, Stuart Lewis s.le...@auckland.ac.nzwrote:

 Hi Max,

 After making the change you need to re-build tomcat, and redeploy it. You
 can do this by following steps 7, 8, and 9 in the installation guide:

  - http://www.dspace.org/1_6_0Documentation/ch03.html#N108B6

 But at step 8, as this is not a new installation, you need to run 'ant
 update' instead of 'ant fresh_install'.

 Thanks,


 Stuart Lewis
 IT Innovations Analyst and Developer
 Te Tumu Herenga The University of Auckland Library
 Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
 Ph: +64 (0)9 373 7599 x81928


 On 27/04/2010, at 8:57 AM, Max McGrath wrote:

  Stuart -
 
  I made the change and then restarted Tomcat and it still is not working
 for people that do not have their e-mail address in LDAP.
 
  Should I have done more than just restarting Tomcat?
 
  Thanks for all the help!
  --
  Max McGrath
  Asst. Network Admin/Systems Specialist
  Carthage College
  262-552-5512
  mmcgr...@carthage.edu
 
 
  On Mon, Apr 26, 2010 at 3:46 PM, Stuart Lewis s.le...@auckland.ac.nz
 wrote:
  Hi Max,
 
  Yes - that's right.
 
  Change:
 
  if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals()))
 
 
  to
 
 
  if (ldap.ldapEmail == null) ldap.ldapEmail = ;
  if (true)
 
 
  (I've added an extra line there to hopefully catch another error that
 could occur.)
 
  Thanks,
 
 
  Stuart Lewis
  IT Innovations Analyst and Developer
  Te Tumu Herenga The University of Auckland Library
  Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
  Ph: +64 (0)9 373 7599 x81928
 
 
 
  On 27/04/2010, at 4:15 AM, Max McGrath wrote:
 
   Hi Stuart -
  
   Here is the code I am looking at:
  
   if ((ldap.ldapEmail!=null)(!ldap.ldapEmail.equals())) You want me
 to change this to if (true) and then leave everything else the same???
 {
 try
 {
 eperson =
 EPerson.findByEmail(context, ldap.ldapEmail);
 if (eperson!=null)
 {
 log.info
 (LogManager.getHeader(context,
  
 type=ldap-login, type=ldap_but_already_email));
  
 context.setIgnoreAuthorization(true);
  
 eperson.setNetid(netid.toLowerCase());
 eperson.update();
 context.commit();
  
 context.setIgnoreAuthorization(false);
  
 context.setCurrentUser(eperson);
 return SUCCESS;
 }
 else
 {
 if
 (canSelfRegister(context, request, netid))
 {
 //
 TEMPORARILY turn off authorisation
 try
 {
  
 context.setIgnoreAuthorization(true);
  
 eperson = EPerson.create(context);
  
 if ((ldap.ldapEmail != null)  (!ldap.ldapEmail.equals()))
 {
  
   eperson.setEmail(ldap.ldapEmail);
 }
  
 else
 {
  
   eperson.setEmail(netid +
 ConfigurationManager.getProperty(ldap.netid_email_domain));
 }
  
 if ((ldap.ldapGivenName!=null)  (!ldap.ldapGivenName.equals()))
 {
  
   eperson.setFirstName(ldap.ldapGivenName);
 }
  
 if ((ldap.ldapSurname!=null)  (!ldap.ldapSurname.equals()))
 {
  
   eperson.setLastName(ldap.ldapSurname);
 }
  
 if ((ldap.ldapPhone!=null)(!ldap.ldapPhone.equals()))
 {
  
   eperson.setMetadata(phone, ldap.ldapPhone);
 

Re: [Dspace-tech] PDF viever

2010-04-26 Thread Jason Fowler
Mark,

Not exactly. I am suggesting embedding one viewer within the 
item-summary-view-DIM, a viewer that shows up specifically for the PDF mime 
type. It would be great to do it for those other for formats, but as you point 
out, it's against Google's terms of service. 

For what it's worth, I think you guys at @mire have a much, much better 
solution. For institutions that cannot afford it, the DIY Google viewer 
solution I suggested might be helpful. 

I have you to thank for suggesting that approach to embedding objects, by the 
way. I think you mentioned before that embedding videos using the HTML5 video 
tag could be achieved in XMLUI using stylesheet transformations. It was a great 
idea. There are all sorts of mime-type specific things that can be embedded 
using stylesheets.

Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
Vice President, ALABI


From: mdigg...@gmail.com [mdigg...@gmail.com] On Behalf Of Mark Diggory 
[mdigg...@atmire.com]
Sent: Friday, April 23, 2010 3:45 PM
To: Jason Fowler
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] PDF viever

On Fri, Apr 23, 2010 at 6:20 AM, Jason Fowler 
jfow...@sbts.edumailto:jfow...@sbts.edu wrote:
That should be pretty easy in XMLUI using something like Google's viewer, 
especially if you have no collections that need to be authenticated. You should 
be able to simply make changes to your theme.xsl file to enable it (and perhaps 
messages.xml). No java coding would be necessary using this method.

I'm pondering googles terms of service here:

http://docs.google.com/viewer/TOS?hl=en

http://docs.google.com/viewer/TOS?hl=enSpecifically... You may not use the 
Service to develop a visual document search and preview application which 
embeds multiple uses of the Google Docs Viewer in a single webpage for DOC, 
DOCX, or PPTX filetypes.

Sounds somewhat like what is being proposed.

regards,
Mark

p.s. Please excuse a shameless but on topic plug...
We do provide an affordable option for document streaming / Page turning on 
XMLUI ( http://atmire.com/docstreaming.php ).  Our latest version works within 
DSpace, creating individual pages for the viewer and storing them internally.

--
Mark R. Diggory
Head of U.S. Operations - @mire

http://www.atmire.com - Institutional Repository Solutions
http://www.togather.eu - Before getting together, get t...@ther

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