Re: [Dspace-tech] What are the options for restricting the display of the login box for embargoed files

2013-05-23 Thread helix84
On Thu, May 23, 2013 at 5:03 PM, Evans, Kev  wrote:
> Dspace Version. 1.8.2
> Theme: xmlui

I'll assume the default Mirage theme.

The process normally looks like this:

1) click on an embargoed bitstream, get the following prompt:
The file is restricted
The file you are attempting to access is a restricted file and
requires credentials to view. Please login below to access the file.
Sign in to DSpace

2) sign in to dspace as a non-administrative user

3) get the following message:
This bitstream is restricted
You do not have the credentials to access the restricted bitstream

This seems pretty straight-forward to me. I'm not sure how you'd like
to make it clearer.

Anyway, I added a new feature that appears in DSpace 3 that shows a
lock icon for bitstreams that have restricted access (missing
Anonymous READ). Since you're on 1.8, you have 2 options if you want
this feature:
1) upgrade to DSpace 3
2) apply my patch from this Jira ticket (it's compatible with 1.8):
https://jira.duraspace.org/browse/DS-1193

There's a screenshot attached to that ticket showing what it looks like.


If I misunderstood and you wanted something else, please explain.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Displaying specific bundles

2013-05-23 Thread helix84
You're doing some weird things here. I made a patch for you instead.

I think you got confused by the complicated structure of the already
existing theme. Next time, try to gut the stuff you don't need and
rewrite what you need in a simpler way - you'll save time and learn
something along the way.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


item-view_preservation.diff
Description: Binary data
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] iRODS support in DSpace

2013-05-23 Thread helix84
On Thu, May 23, 2013 at 11:28 PM, Harish Maringanti  wrote:
> Has anyone used registration option in DSpace -
> https://wiki.duraspace.org/display/DSPACE/DspaceSrbIntegration ? Am just
> wondering how dependent that is on the specific protocol (srb, irods ?).

I can confirm that registration works with local filesystem storage,
but I don't have any experience with SRB.

For relevant code you may want to look here:
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/storage/bitstore/BitstreamStorageManager.java#L442


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] iRODS support in DSpace

2013-05-23 Thread Harish Maringanti
Thank you for your response. The steps you outlined are beneficial for us
and will contribute the code back, if we decide to pursue the development
route.

Has anyone used registration option in DSpace -
https://wiki.duraspace.org/display/DSPACE/DspaceSrbIntegration ? Am just
wondering how dependent that is on the specific protocol (srb, irods ?).
 I'll can contact David Little about this but wanted to poll the group on
the feasibility of this option.

-Harish




On Wed, May 22, 2013 at 5:33 PM, helix84  wrote:

> You may also want to get in touch with Lucas Gilbert who developed the
> iRODS code for DSpace. Optionally to help with forward-porting it,
> definitely to help testing it once it's forward-ported.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Displaying specific bundles

2013-05-23 Thread Peter Dietz
Hi Walker,

I had a project a while back that we had a CurationTask do some funny
business to our Bitstreams, moving a PDF from ORIGINAL to PRESERVATION, and
then making a "watermarked" bitstream that got stuffed in a bundle called
DISPLAY.

We had to modify the item-view XSL code to display anything in ORIGINAL or
DISPLAY.

Take a look at:
https://github.com/osulibraries/DSpace/blob/osukb/dspace-xmlui/dspace-xmlui-webapp/src/main/webapp/themes/snazy/snazy.xsl#L32






This is based off of dri2xhtml, not the dri2xhtml-alt (Mirage).




To possibly actually answer your question, the bundle is also declared on
line 45.
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt/aspect/artifactbrowser/item-view.xsl#L45




Peter Dietz


On Thu, May 23, 2013 at 2:33 PM, Walker Sampson
wrote:

> Hello all,
>
> I've been working with
> [dspace]/webapps/xmlui/themes/my-theme/.../item-view.xsl to have it
> display specific bundles for an item with an appropriate header. The
> intention is to clearly display for the user the different parts of an
> item.
>
> This code works fine, for example, for one bundle:
>
> 
>
>
> xmlui.dri2xhtml.METS-1.0.item-files-head-preservation
> select="../mets:fileGrp[@USE='PRESERVATION']/mets:file">
>  
>
> 
>
> However, when applying the same template to the ORIGINAL bundle
> (changing PRESERVATION to ORIGINAL), the item view does not render any
> files in ORIGINAL.
>
> A second, related question: Even when removing this ORIGINAL call
> completely, PRESERVATION files are rendered twice; where in
> item-view.xsl are item files being called again? I have removed the
> "" condition at:
>
>
> https://github.com/DSpace/DSpace/blob/a0714564b78134d7b1dc2e32105aea3e38ffdbb3/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L376
>
>
> ...as I only want specifically called bundles to display.
>
> Any suggestions are appreciated.
>
> Many thanks,
> Walker
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Displaying specific bundles

2013-05-23 Thread Walker Sampson
Hello all,

I've been working with 
[dspace]/webapps/xmlui/themes/my-theme/.../item-view.xsl to have it 
display specific bundles for an item with an appropriate header. The 
intention is to clearly display for the user the different parts of an item.

This code works fine, for example, for one bundle:


 
xmlui.dri2xhtml.METS-1.0.item-files-head-preservation
   
 
   


However, when applying the same template to the ORIGINAL bundle 
(changing PRESERVATION to ORIGINAL), the item view does not render any 
files in ORIGINAL.

A second, related question: Even when removing this ORIGINAL call 
completely, PRESERVATION files are rendered twice; where in 
item-view.xsl are item files being called again? I have removed the 
"" condition at:

https://github.com/DSpace/DSpace/blob/a0714564b78134d7b1dc2e32105aea3e38ffdbb3/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L376
 


...as I only want specifically called bundles to display.

Any suggestions are appreciated.

Many thanks,
Walker

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] Position Announcement: Systems Librarian

2013-05-23 Thread Jeffrey A Trimble

SYSTEMS LIBRARIAN

Youngstown State University, Youngstown Ohio

The William F. Maag, Jr. Library at Youngstown State University seeks a 
creative and enthusiastic professional for the position of Systems Librarian.

The Systems Librarian is responsible for the library’s major computer based 
systems that support library functions, provide library services, and/or store 
and provide access to information content.  Administers computer servers, 
manages library applications on those servers, and designs and administers 
databases that define the functionality of those systems.

Reports to the Library Executive Director.  Serves with the Executive Director 
and the Electronic Services Librarian as a member of the Technology Group, and 
supports other library technical applications and equipment as needed.

For more details, required qualifications, and how to apply visit:
 http://jobs.ysu.edu/applicants/Central?quickFind=50701


Jeffrey Trimble
Associate Director &
Head of Information Services
William F.  Maag Library
Youngstown State University
330.941.2483 (Office)
jatrim...@ysu.edu
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
"For he is the Kwisatz Haderach..."

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] OAI harvester client

2013-05-23 Thread Lighton Phiri
Hello,

Use the OAI-PMH 'ListSets' verb to get associated 'setSpec' name for
collection in question and then selectively harvest [1] based on that
setSpec. See example below.

http://opensaldru.uct.ac.za/oai/request?verb=ListSets
http://opensaldru.uct.ac.za/oai/request?verb=ListRecords&set=hdl_11090_5&metadataPrefix=oai_dc

[1] 
http://www.openarchives.org/OAI/openarchivesprotocol.html#SelectiveHarvesting

Lighton Phiri
http://lightonphiri.org


On 23 May 2013 17:39, Calloni, Rodrigo  wrote:
> Hello
>
> I wonder if there is any way to have a Windows OAI harvester client that I 
> install to harvest a DSpace collection.
>
> Thanks in advance
> Rodrigo
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] OAI harvester client

2013-05-23 Thread Calloni, Rodrigo
Hello

I wonder if there is any way to have a Windows OAI harvester client that I 
install to harvest a DSpace collection.

Thanks in advance
Rodrigo

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] What are the options for restricting the display of the login box for embargoed files

2013-05-23 Thread Evans, Kev
Hi Helix

Dspace Version. 1.8.2

Theme: xmlui

Kevin

-Original Message-
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 23 May 2013 15:05
To: Evans, Kev
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] What are the options for restricting the display of 
the login box for embargoed files

On Thu, May 23, 2013 at 3:59 PM, Evans, Kev  wrote:
> What are the options for restricting the display of the login box for 
> embargoed files. We have altered the messages but users are still 
> trying to login to restricted files. Where can this be changed? i.e. in 
> template.xsl.

Hi Kev,

which DSpace version and theme?


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette 
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] What are the options for restricting the display of the login box for embargoed files

2013-05-23 Thread helix84
On Thu, May 23, 2013 at 3:59 PM, Evans, Kev  wrote:
> What are the options for restricting the display of the login box for
> embargoed files. We have altered the messages but users are still trying to
> login to restricted files. Where can this be changed? i.e. in template.xsl.

Hi Kev,

which DSpace version and theme?


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] What are the options for restricting the display of the login box for embargoed files

2013-05-23 Thread Evans, Kev
Hi,

What are the options for restricting the display of the login box for embargoed 
files. We have altered the messages but users are still trying to login to 
restricted files. Where can this be changed? i.e. in template.xsl.

Kind Regards

Kev

Kevin Evans
Systems Developer,
Research & Collaborative Systems,
Enterprise Applications,
Room 911, 9th Floor, Laver Building,
University of Exeter,
Exeter,
Devon,
EX4 4QE
01392 725573
07775027574
https://my.exeter.ac.uk

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Bug item-view.xsl (DSpace 3.1) - Empty contributors

2013-05-23 Thread RUIZ MORENO, ROBERT
Ok, done.

https://jira.duraspace.org/browse/DS-1559

Thanks,
Robert


2013/5/23 Bram Luyten 

> Hi Robert,
>
> nice catch. Adding spans around this may create problems in internet
> explorer (cfr https://jira.duraspace.org/browse/DS-809)
> A cleaner solution is to add a non breaking space (  or  ) in
> xsl
>
> For the abstract field, the XSL already contains a nice test:
>
> https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L239
>
> Other fields are still suffering from this as well.
> For example this METS element has empty descriptions:
>
> http://www.massageresearchonline.com:8080/xmlui/metadata/handle/123456789/11/mets.xml
>
> and now look what it does to the menu:
> http://www.massageresearchonline.com:8080/xmlui/handle/123456789/44
>
> I don't think there is currently an active JIRA issue for this. Do you
> want to create one?
>
> On a broader scale, it might be nice to have a curation task that detects
> these empty metadata values and removes them, they serve no purpose, right?
>
> rgds
>
> Bram Luyten
>
>
>
> --
> [image: logo]
> *Bram Luyten* *@mire*
> *2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
> *Esperantolaan 4, Heverlee 3001, Belgium*
> www.atmire.com
>
>
> On Thu, May 23, 2013 at 12:47 PM, RUIZ MORENO, ROBERT  > wrote:
>
>> Hi,
>>
>> I think I discover a bug in item-view.xsl (DSpace v3.1)
>>
>> If in an Item you add one of these metadata:
>>
>> dc.creator
>> dc.contributor
>> dc.contributor.advisor
>> dc.contributor.editor
>> dc.contributor.illustrator
>> dc.contributor.other
>>
>> *with an empty value*, and then save and return to simple-view page, the
>> page structure is dismount.
>>
>> This bug not happens if the empty metadata is dc.contributor.author.
>>
>> Seeing item-view.xsl code, the part of  which
>> manage dc.creator and dc.contributor.* metadata, needs*   *tags 
>> like appears in dc.contributor.author, just for this cases.
>>
>> I think code should be like this:
>>
>>   
>>   
>> 
>> 
>> > test="dim:field[@element='contributor'][@qualifier='author']">
>> > select="dim:field[@element='contributor'][@qualifier='author']">
>> 
>>   
>> > name="class">ds-dc_contributor_author-authority
>>   
>> 
>> 
>> > test="count(following-sibling::dim:field[@element='contributor'][@qualifier='author'])
>> != 0">
>> ; 
>> 
>> 
>> 
>> 
>> > select="dim:field[@element='creator']">
>> **
>> 
>> > test="count(following-sibling::dim:field[@element='creator']) != 0">
>> ; 
>> 
>> **
>> 
>> 
>> > test="dim:field[@element='contributor']">
>> > select="dim:field[@element='contributor']">
>>  **
>> 
>> > test="count(following-sibling::dim:field[@element='contributor']) != 0">
>> ; 
>> 
>> **
>> 
>> 
>> 
>>
>>  xmlui.dri2xhtml.METS-1.0.no-author
>> 
>> 
>> 
>>   
>> 
>> 
>>   
>>   
>>
>>
>>
>> Well, that's all.
>>
>> Thanks,
>> Robert Ruiz
>>
>>
>>
>> --
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt!
>> http://p.sf.net/sfu/newrelic_d2d_may
>> ___
>> DSpace-tech mailing list
>> DSpace-tech@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>> List Etiquette:
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
-

Re: [Dspace-tech] To restrict usage of submitted items

2013-05-23 Thread helix84
On Thu, May 23, 2013 at 1:25 PM, SanjibKumarDeka  wrote:
> Sorry for this confusing post. Yes, I'm talking about access restrictions
> features like, printing/ copying of any format documents.

In that case, this has nothing to do with DSpace, but with the
document authoring software (e.g. Adobe Acrobat or another PDF
printer) of those specific formats. DSpace has only the responsibility
to deliver or not to deliver you the whole bitstream. It has no effect
on any more granular restrictions afterwards.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Bug item-view.xsl (DSpace 3.1) - Empty contributors

2013-05-23 Thread Bram Luyten
Hi Robert,

nice catch. Adding spans around this may create problems in internet
explorer (cfr https://jira.duraspace.org/browse/DS-809)
A cleaner solution is to add a non breaking space (  or  ) in xsl

For the abstract field, the XSL already contains a nice test:
https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/aspect/artifactbrowser/item-view.xsl#L239

Other fields are still suffering from this as well.
For example this METS element has empty descriptions:
http://www.massageresearchonline.com:8080/xmlui/metadata/handle/123456789/11/mets.xml

and now look what it does to the menu:
http://www.massageresearchonline.com:8080/xmlui/handle/123456789/44

I don't think there is currently an active JIRA issue for this. Do you want
to create one?

On a broader scale, it might be nice to have a curation task that detects
these empty metadata values and removes them, they serve no purpose, right?

rgds

Bram Luyten



-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com


On Thu, May 23, 2013 at 12:47 PM, RUIZ MORENO, ROBERT
wrote:

> Hi,
>
> I think I discover a bug in item-view.xsl (DSpace v3.1)
>
> If in an Item you add one of these metadata:
>
> dc.creator
> dc.contributor
> dc.contributor.advisor
> dc.contributor.editor
> dc.contributor.illustrator
> dc.contributor.other
>
> *with an empty value*, and then save and return to simple-view page, the
> page structure is dismount.
>
> This bug not happens if the empty metadata is dc.contributor.author.
>
> Seeing item-view.xsl code, the part of  which manage
> dc.creator and dc.contributor.* metadata, needs*   * tags
> like appears in dc.contributor.author, just for this cases.
>
> I think code should be like this:
>
>   
>   
> 
> 
>  test="dim:field[@element='contributor'][@qualifier='author']">
>  select="dim:field[@element='contributor'][@qualifier='author']">
> 
>   
>  name="class">ds-dc_contributor_author-authority
>   
> 
> 
>  test="count(following-sibling::dim:field[@element='contributor'][@qualifier='author'])
> != 0">
> ; 
> 
> 
> 
> 
>  select="dim:field[@element='creator']">
> **
> 
>  test="count(following-sibling::dim:field[@element='creator']) != 0">
> ; 
> 
> **
> 
> 
> 
>  select="dim:field[@element='contributor']">
>  **
> 
>  test="count(following-sibling::dim:field[@element='contributor']) != 0">
> ; 
> 
> **
> 
> 
> 
>
>  xmlui.dri2xhtml.METS-1.0.no-author
> 
> 
> 
>   
> 
> 
>   
>   
>
>
>
> Well, that's all.
>
> Thanks,
> Robert Ruiz
>
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Li

[Dspace-tech] First request to XMLUI fails

2013-05-23 Thread Alumno Etsii
Hi there!

I'm having a strange issue with XMLUI; basically, each first request to
/xmlui of the day fails with a NULL pointer exception. After that, if I
reload the page it works perfectly. It happens just once a day and it
happens every day.

There's no activity on DSpace at night because that's just a preproduction
machine, so it's even odder.

The only thing I think can have something to do with this is the night
dspace user's crontab:

# Send out subscription e-mails at 01:00 every day
0 1 * * *  /opt/www/dspace/bin/dspace sub-daily
# Run the media filter at 02:00 every day
0 2 * * *  /opt/www/dspace/bin/dspace filter-media
# Run the checksum checker at 03:00
0 3 * * *  /opt/www/dspace/bin/dspace checker -lp

The exception output can be seen here: http://pastebin.ca/2380489

Any ideas with this?

Thanks so much!
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] To restrict usage of submitted items

2013-05-23 Thread SanjibKumarDeka
HI,

Sorry for this confusing post. Yes, I'm talking about access restrictions
features like, printing/ copying of any format documents.

With regards,
sanjib kumar deka


On Thu, May 23, 2013 at 3:45 PM, helix84  wrote:

> Hello Sanjib,
>
> I'm sorry, but your question is very confusing. It's unclear what
> you're actually asking. It seems you're confusing items and
> bitstreams. Do you want to
> a) restrict access to items (the page with item metadata)
> b) or to bitstreams (so that dspace asks for username and password
> when you try to access a bitstream)
> c) or are you talking about access restrictions fetures of the PDF
> format (disallow printing/copying)?
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Bug item-view.xsl (DSpace 3.1) - Empty contributors

2013-05-23 Thread RUIZ MORENO, ROBERT
Hi,

I think I discover a bug in item-view.xsl (DSpace v3.1)

If in an Item you add one of these metadata:

dc.creator
dc.contributor
dc.contributor.advisor
dc.contributor.editor
dc.contributor.illustrator
dc.contributor.other

*with an empty value*, and then save and return to simple-view page, the
page structure is dismount.

This bug not happens if the empty metadata is dc.contributor.author.

Seeing item-view.xsl code, the part of  which manage
dc.creator and dc.contributor.* metadata, needs*   * tags like
appears in dc.contributor.author, just for this cases.

I think code should be like this:

  
  





  
ds-dc_contributor_author-authority
  



; 





**


; 

**




 **


; 

**




 xmlui.dri2xhtml.METS-1.0.no-author



  


  
  



Well, that's all.

Thanks,
Robert Ruiz
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] view item only shows collection name

2013-05-23 Thread helix84
Hi Onkar,

please, do not post your questions to existing threads. Start your own
thread for your question.

What is the *exact* message displayed? I tried looking but there is
not message that says literally "index not created".


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How to Add more than 3 Workflow Steps?

2013-05-23 Thread onkar rai
Hi Experts,


 I am using Dspace3.1 . Supporting softwares are

1.PostgreSql 9.2
2. Tomcat 7
3. JDK
4. Ant 1.9
5. Maven 3.0.5

OS: Windows XP

I installed Dspace sucessfuly but there is a problem . When I submit a file
in a particular Collection then index is not created and *Item Mapper* field
remains empty.

Kindly help me to overcome this problem

Thankds in Advance.

Regards,
Onkar Rai


On Thu, May 23, 2013 at 3:23 AM, LifeH2O  wrote:

> Tried the same procedure again with DSpace 3.2 snaphsot, it has the same
> issue.
>
>
>
> --
> View this message in context:
> http://dspace.2283337.n4.nabble.com/How-to-Add-more-than-3-Workflow-Steps-tp4663012p4664168.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] How to Add more than 3 Workflow Steps?

2013-05-23 Thread LifeH2O
Tried the same procedure again with DSpace 3.2 snaphsot, it has the same
issue.



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/How-to-Add-more-than-3-Workflow-Steps-tp4663012p4664168.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] To restrict usage of submitted items

2013-05-23 Thread helix84
Hello Sanjib,

I'm sorry, but your question is very confusing. It's unclear what
you're actually asking. It seems you're confusing items and
bitstreams. Do you want to
a) restrict access to items (the page with item metadata)
b) or to bitstreams (so that dspace asks for username and password
when you try to access a bitstream)
c) or are you talking about access restrictions fetures of the PDF
format (disallow printing/copying)?


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Error generated after clicking on feedback

2013-05-23 Thread helix84
On Thu, May 23, 2013 at 12:05 PM, Henry Agbodza
 wrote:
> Error sending email:
>  - Error: javax.mail.MessagingException: Could not connect to SMTP host:
> awdflibrary.org, port: 25;
>   nested exception is:
> java.net.ConnectException: Connection refused

That means your mail.server is wrong, there's no SMTP daemon listening
on port 25 of awdflibrary.org. Contact your local mail server
administrator and ask for your SMTP hostname, port, authentication
method and credentials.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] Error generated after clicking on feedback

2013-05-23 Thread Henry Agbodza
Running this command  :   /usr/local/dspace/bin/dspace test-email
gives me what is below
 INFO [main] (DSpaceKernelInit.java:52) - Created new kernel: 
DSpaceKernel:org.dspace:name=a72545a6-24b6-49e9-8d14-bc78a16ed0c0,type=DSpaceKernel:lastLoad=null:loadTime=0:running=false:kernel=null
 INFO [main] (ConfigurationManager.java:1224) - Loading from classloader: 
file:/usr/local/dspace/config/dspace.cfg
 INFO [main] (ConfigurationManager.java:1224) - Using dspace provided log 
configuration (log.init.config)
 INFO [main] (ConfigurationManager.java:1224) - Loading: 
/usr/local/dspace/config/log4j.properties

About to send test email:
 - To: i...@awdflibrary.org
 - Subject: DSpace test email
 - Server: awdflibrary.org

Error sending email:
 - Error: javax.mail.MessagingException: Could not connect to SMTP host: 
awdflibrary.org, port: 25;
  nested exception is:
java.net.ConnectException: Connection refused

Please see the DSpace documentation for assistance.

On Wed, 05/22/2013 11:05 AM, helix84  wrote:
> On Wed, May 22, 2013 at 12:33 PM, Henry Agbodza
> " target="_blank"> wrote:
> > I had this error after clicking on the Feedback link.
> > I'm using Dspace 3.1 and the mirage theme.
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 
> That means you don't have mail.allowed.referrers set correctly in dspace.cfg.
> 
> We're aware that the error message should be more helpful and have
> filed it as a bug.
> https://jira.duraspace.org/browse/DS-1467
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> --
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Error generated after clicking on feedback

2013-05-23 Thread Henry Agbodza
Hi Helix, below is my mail mail.allowed.referrers settings.

mail.allowed.referrers = awdflibrary.org


On Wed, 05/22/2013 11:05 AM, helix84  wrote:
> On Wed, May 22, 2013 at 12:33 PM, Henry Agbodza
> " target="_blank"> wrote:
> > I had this error after clicking on the Feedback link.
> > I'm using Dspace 3.1 and the mirage theme.
> > java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> 
> That means you don't have mail.allowed.referrers set correctly in dspace.cfg.
> 
> We're aware that the error message should be more helpful and have
> filed it as a bug.
> https://jira.duraspace.org/browse/DS-1467
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> --
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] To restrict usage of submitted items

2013-05-23 Thread SanjibKumarDeka
Hi,

We are using DSpace 3.1 with xmlui interface. I have successfully submitted
some password encrypted pdf items in the collections to restrict copy/
print of the items.  But when I view the items, the password encryption got
disable.

Is it possible in DSpace to allow anonymous users only to view an item or
restrict to make print/copy an item ?

With regards
sanjib kumar deka
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread Alan Orth
Helix,

Correct; if I comment out the mail.server.username and 
mail.server.password in the generated / "final" dspace.cfg sending email 
works.  Also, I was mistaken before regarding `dspace test-email`, it 
behaves the same way as the emails from the "Forgot Password" etc; I had 
previously stated that these were working regardless, but I was wrong.

This is probably a corner case for people using un-authenticated SMTP I 
guess... Ironically, I've been yelling at our ISP to enable 
authentication for years ;)

Alan

On 05/23/2013 12:34 PM, helix84 wrote:
> OK, here's how I understood it: if you comment out
> mail.server.username and mail.server.password, it works, but if you
> leave them empty, it doesn't work (presumably because it sends empty
> values).
>
> On Thu, May 23, 2013 at 11:20 AM, Alan Orth  wrote:
>> If I comment out the mail.* settings in my production.properties file I get
>> an error about circular definitions:
> Yes, unfortunately, this is a known limitation of the Maven filtering
> process as documented here:
> https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile
>
>
> I guess the the only solution we can provide in DSpace is not to send
> username and password if they're both empty.
>
>
> The relevant code is here:
> https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/core/Email.java#L265
>
> It seems to me the code should behave the same (username == null)
> regardless of whether mail.server.username is commented out or has an
> empty value. But I would need to verify this.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread helix84
OK, here's how I understood it: if you comment out
mail.server.username and mail.server.password, it works, but if you
leave them empty, it doesn't work (presumably because it sends empty
values).

On Thu, May 23, 2013 at 11:20 AM, Alan Orth  wrote:
> If I comment out the mail.* settings in my production.properties file I get
> an error about circular definitions:

Yes, unfortunately, this is a known limitation of the Maven filtering
process as documented here:
https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile


I guess the the only solution we can provide in DSpace is not to send
username and password if they're both empty.


The relevant code is here:
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/core/Email.java#L265

It seems to me the code should behave the same (username == null)
regardless of whether mail.server.username is commented out or has an
empty value. But I would need to verify this.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread Alan Orth

Ok,

I've done some more tests...

When I specify my mail settings in a custom config -- 
[dspace-src]/dspace/config/production.cfg -- and then install with `ant 
update -Dconfig=../../config/production.cfg`, sending mail via DSpace 
works fine.  The [dspace]/config/dspace.cfg generated by the build/ant 
process has these SMTP settings:


   # SMTP mail server
   mail.server = my.smtp.com

   # SMTP mail server authentication username and password (if required)
   # mail.server.username =
   # mail.server.password =

   # SMTP mail server alternate port (defaults to 25)
   # mail.server.port =

When I use a stock DSpace config -- 
[dspace-src]/dspace/config/dspace.cfg -- with a custom build.properties 
-- [dspace-src]/production.properties -- and then build with 
-Denv=production and install with `ant update`, sending mail via DSpace 
errors with javax.mail.AuthenticationFailedException.  The 
[dspace]/config/dspace.cfg generated by the build/ant process has these 
SMTP settings:


   # SMTP mail server
   mail.server = smtp.serv.cgnet.com

   # SMTP mail server authentication username and password (if required)
   mail.server.username =
   mail.server.password =

   # SMTP mail server alternate port (defaults to 25)
   mail.server.port = 25

If I comment out the mail.* settings in my production.properties file I 
get an error about circular definitions:


   BUILD FAILED
   /home/aorth/src/git/DSpace/dspace/target/dspace-3.1-build/build.xml:88:
   Property mail.server.password was circularly defined.

I think the build.properties way of doing things is a step forward, as 
it allows for management of multiple DSpace instances from one code 
base, but it's a bit confusing!  Also, we're using unauthenticated SMTP, 
so these username/password settings are really not useful to us.


Thanks,

Alan

On 05/21/2013 04:45 PM, Alan Orth wrote:

Ok,

I've just reverted to our "all in one" dspace.cfg and emails work 
fine.  Sounds like there are some issues with my build.properties 
(dev.properties and production.properties)...


Alan

On 05/21/2013 03:32 PM, helix84 wrote:

On Tue, May 21, 2013 at 2:08 PM, Alan Orth  wrote:

Here's the full stack trace, including the "Caused by":
https://gist.github.com/alanorth/4e942aa252764a3d87aa/raw/2c4a9ad30f537386cc3bb1c9a885204e949038e2/gistfile1.txt 


OK, in this case that didn't tell me anything new.



My mail.* properties from dspace.cfg:

Looks good.



 mail.allowed.referrers = cgspace.cgiar.org

I have localhost here, so try this:
mail.allowed.referrers = localhost, cgspace.cgiar.org

But I don't think this is the issue (the error would be different).



We did switch to using build.properties (one for
dev and production) with a common dspace.cfg, though... I will try to
use our old config file maybe...

This sounds like a likely culprit to me. Make sure you didn't comment
out any properties present in the default build.properties. You have
to leave the value empty instead of commenting it out.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




--
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my wish 
has come true because I can no longer figure out how to use my telephone." -Bjarne 
Stroustrup, inventor of C++

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette