Re: [Dspace-tech] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi Helix

The following excerpt is taken from the authentication-ldap.cfg file

# LDAP users group #

# If required, a group name can be given here, and all users who log in
# to LDAP will automatically become members of this group. This is useful
# if you want a group made up of all internal authenticated users.
login.specialgroup = all-authenticated

# Added By Clive Gould on 31/07/13 to allow for special groups

login.groupmap.1 = ou=StaffUsers:all-staff
login.groupmap.2 = ou=StudentUsers:all-students

The all-staff and all-students groups are the original group names I
already use successfully on our production server with DSpace 1.8.1 custom
authentication.

If as an example I run ldapsearch on AD with a colleagues cn I get the
following response:

[root@standbyvle openldap]# ldapsearch -x -v -D "bromldap@bromley.local" -W
-L "cn=Philip Mann" | less
version: 1

#
# LDAPv3
# base <> with scope subtree
# filter: cn=Philip Mann
# requesting: ALL
#

# Philip Mann, School of ICT, Curriculum&Partnerships, RookeryLane,
StaffUser
 s, staff.bromley.local
dn: CN=Philip Mann,OU=School of
ICT,OU=Curriculum&Partnerships,OU=RookeryLane,
 OU=StaffUsers,DC=staff,DC=bromley,DC=local

But if Philip logs into DSpace and I view his ePerson group membership he
has not been allocated to either the all-staff or the all-authenticated
group

Any ideas at all where I might be going wrong?

Thanks very much

Clive







On Wed, Jul 31, 2013 at 2:36 PM, helix84  wrote:

> On Wed, Jul 31, 2013 at 2:48 PM, Clive Gould  wrote:
> > We used to use custom code to differentiate between staff and student
> login
> > and assign them to appropriate dynamic special groups
>
> Hi Clive,
>
> where does your custom code take the group information from? Full DN
> or attributes?
>
> > I have tried using the new DSpace 3.0 login.groupmap directive within
> > authentication-ldap.cfg
>
> The source of information for this mapping is the LDAP DN.
>
> > Users are successfully authenticated against AD but apparently not being
> > assigned to the special groups
>
> Send an example of your login.groupmap.*.
>
> In my opinion, the most likely problem might be misunderstanding the
> left-hand side of the mapping, e.g.:
> login.groupmap.1 = ou=Students:ALL_STUDENTS
>
> Notice "ou=Students". So if I log in as
> "cn=helix84,ou=Students,dc=example,dc=com", this will put me to the
> DSpace ALL_STUDENTS group.
>
> If your LDAP contains group information not in the DN, but in
> attributes, DSpace 3 doesn't currently support that. But we're
> currently discussing that functionality here:
>
> http://dspace.2283337.n4.nabble.com/DSpace-LDAP-authentication-problem-td4665853.html
>
> Second likely problem is that you haven't created the ALL_STUDENTS
> group in DSpace. This is not created automatically, only the user is
> assigned to that group dynamically upon login!
>
> > Is there a table in the database that allows the membership of the
> > dynamically allocated special groups to be viewed?
> >
> > Once I find out the solution I'll log the entire upgrade process on my
> blog
> > at http://dspacebromley.blogspot.co.uk/
>
> There is no such table. Your page already contains the explanation:
>
> "This means that users are not added to it as such, but are transient
> members of it during the period that they are logged in. Therefore you
> will not see anyone listed in that group, however such users should
> inherit the permissions of belonging to that group." Stuart Lewis
>
> The only easy way to check is to log in as the user and check
> currently active groups on user's profile page.
>
> Please check those two problems and report back. Let us know if
> something is still unclear. Hope this helps.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] LDAP and Special Groups Code

2013-08-02 Thread helix84
The only thing that comes to mind right away is case sensitivity. It
shouldn't matter, but let's check. Try

login.groupmap.1 = OU=StaffUsers:all-staff
login.groupmap.2 = OU=StudentUsers:all-students


Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] java.lang.NullPointerException when exporting metadata

2013-08-02 Thread Evans, Kevin
Hi Helix,

Thanks We are using Dspace 1.8.2.

Does the code occur in the package you mention?

It is an export of a community, containing several collections/items. It has 
had its name changed recently. 

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



-Original Message-
From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 01 August 2013 19:21
To: Evans, Kevin
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] java.lang.NullPointerException when exporting 
metadata

Assuming you're running DSpace 3, here's the offending line:

https://github.com/DSpace/DSpace/blob/dspace-3.2/dspace-xmlui/src/main/java/org/dspace/app/xmlui/cocoon/MetadataExportReader.java#L187

There are several things that could possibly be null: out, csv and
csv.toString() and csv.toString().getBytes("UTF-8"). Is it possible you're 
exporting something that results in an empty CSV?

BTW index-update doesn't do anything related to CSV export. It updates metadata 
in the Lucene index from database. CSV export exports metadata from database.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette 
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] LDAP and Special Groups Code

2013-08-02 Thread helix84
On Fri, Aug 2, 2013 at 10:24 AM, helix84  wrote:
> The only thing that comes to mind right away is case sensitivity. It
> shouldn't matter, but let's check. Try

You can still check, but this shouldn't be the tproblem, because we're using
if (StringUtils.containsIgnoreCase(dn, ldapSearchString))

Did you also check dspace.log for any error messages during login? A couple
of exceptions can be reported there:
"Group defined in authentication-ldap.login.groupmap." + i + " does not
exist :: " + dspaceGroupName
"assignGroupsBasedOnLdapDn could not authorize addition to group",
dspaceGroupName
"assignGroupsBasedOnLdapDn could not find group", dspaceGroupName


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi Helix

I've made the change you recommended to
/home/dspace/dspace-3.0-src-release/dspace/config/modules/authentication-ldap.cfg

Restarted Tomcat and also Apache but it still doesn't work

Is there any logging within DSpace that I can enable to see what's
happening with LDAP auth?

Thanks

Clive


On Fri, Aug 2, 2013 at 9:24 AM, helix84  wrote:

> The only thing that comes to mind right away is case sensitivity. It
> shouldn't matter, but let's check. Try
>
> login.groupmap.1 = OU=StaffUsers:all-staff
> login.groupmap.2 = OU=StudentUsers:all-students
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] QDC Crosswalk and OAI 2.0

2013-08-02 Thread Muilwijk, M. (Marina)
Dimitrios,

you can get any output you want by editing (or adding) an .xsl file. To get the 
same output as the old QDC crosswalk, you can look at qdc.xsl. It's not really 
a simple way, but if you have some experience with XSLT, it's not difficult.

More on the metadata formats can be found at 
https://wiki.duraspace.org/display/DSDOC3x/OAI+2.0+Server#OAI2.0Server-AdvancedConfiguration
and an example of the QDC you can get "out of the box" is at 
http://demo.dspace.org/oai/request?verb=ListRecords&metadataPrefix=qdc


Regards,
Marina Muilwijk



Op 1 aug. 2013, om 17:06 heeft kotsomit het volgende geschreven:

> 
> [reposted at dspace-tech which might be more appropriate]
> 
> I understand that with the new OAI 2.0 in DSpace 3.x the crosswalk plugins
> are no longer used for OAI output, e.g. enabling the QDC crosswalk and
> modifying the qdc.properties file has no effect. Instead, there is a series
> of .xsl files that allow transformation and export of metadata in virtually
> any format. 
> However, what is the basis schema for this metadata? As far as I have seen
> it is a proprietary schema by Lyncode called “xoai”. More importantly, is
> there any simple way (or any way at all) to configure this xoai output? A
> good reason for this would be to enable proper output of dc qualifiers,
> language tags as attributes instead of nested elements and so on? 
> If not, is it possible to still use the existing crosswalks for OAI output? 
> 
> Best regards, 
> 
> Dimitrios 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://dspace.2283337.n4.nabble.com/QDC-Crosswalk-and-OAI-2-0-tp4666172.html
> Sent from the DSpace - Tech mailing list archive at Nabble.com.
> 
> --
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent 
> caught up. So what steps can you take to put your SQL databases under 
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> ___
> 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


--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] java.lang.NullPointerException when exporting metadata

2013-08-02 Thread helix84
On Fri, Aug 2, 2013 at 10:29 AM, Evans, Kevin  wrote:
> Thanks We are using Dspace 1.8.2.
>
> Does the code occur in the package you mention?

Yes, it hasn't changed:
https://github.com/DSpace/DSpace/blob/dspace-1.8.2/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/cocoon/MetadataExportReader.java#L187

> It is an export of a community, containing several collections/items. It has 
> had its name changed recently

That shouldn't matter.

Let's try to find out whether the problem is in the CSV exporter or in
Cocoon. Call the CSV exporter from the command line like this (replace
123456789/123 with the handle of your community):

[dspace]/bin/dspace metadata-export -f export.csv -i 123456789/123


Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] After upgrading to 3.2 Alert emails have started to fail

2013-08-02 Thread Jason Cooper
Hi,
  After upgrading to version 3.2 of DSpace I have noticed in the logs that 
errors that try to send an email alert fail with the following error:

2013-08-02 10:02:51,325 WARN  org.dspace.app.webui.util.UIUtil @ Unable to send 
email alert
javax.mail.internet.AddressException: Illegal address in string ``''
at javax.mail.internet.InternetAddress.(InternetAddress.java:94)
at org.dspace.core.Email.send(Email.java:302)
at org.dspace.app.webui.util.UIUtil.sendAlert(UIUtil.java:419)
at 
org.dspace.app.webui.servlet.InternalErrorServlet.doGet(InternalErrorServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:364)
at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:213)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:724)

  Has anyone seen this error before and if so what was the cause and what did 
you have to do to fix it?

Regards,
  Jason Cooper.
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] LDAP and Special Groups Code

2013-08-02 Thread Clive Gould
Hi

I need to increase the dspace.log level to debug

The wiki says

You can control the verbosity of this by editing the *
[dspace-source]/config/templates/log4j.properties* file and then running "*ant
init_configs*".


I've edited
/home/dspace/dspace-3.0-src-release/dspace/config/log4j.properties

Can anyone advise me what directory to run ant init_configs from with
DSpace 3.0 ?

Thanks

Clive


On Fri, Aug 2, 2013 at 9:43 AM, Clive Gould  wrote:

> Hi Helix
>
> I've made the change you recommended to
> /home/dspace/dspace-3.0-src-release/dspace/config/modules/authentication-ldap.cfg
>
> Restarted Tomcat and also Apache but it still doesn't work
>
> Is there any logging within DSpace that I can enable to see what's
> happening with LDAP auth?
>
> Thanks
>
> Clive
>
>
> On Fri, Aug 2, 2013 at 9:24 AM, helix84  wrote:
>
>> The only thing that comes to mind right away is case sensitivity. It
>> shouldn't matter, but let's check. Try
>>
>> login.groupmap.1 = OU=StaffUsers:all-staff
>> login.groupmap.2 = OU=StudentUsers:all-students
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>
>
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] After upgrading to 3.2 Alert emails have started to fail

2013-08-02 Thread helix84
What's your value of the mail.admin configuration property in
dspace.cfg? Seems like you have an empty string there.


Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] DSPACE Upgrade...

2013-08-02 Thread helix84
On Thu, Aug 1, 2013 at 4:39 PM, Joseph Sayah  wrote:
> Currently we have DSPACE version 1.6.0 and we are planning to upgrade to
> the latest version, my question is the following: is it possible to upgrade
> directly form version 1.6.0 to the latest version, and can you provide me
> with the necessary documents of the upgrade…

Hi Joseph,

you don't have to do each individual step, but you do have to go
through all the single-version updates and take note of any particular
steps that are specific for that version. Especially do not forget to
do the database schema upgrades. You don't have to actually start
DSpace after each single-version update.

The upgrade between all versions are documented here:
https://wiki.duraspace.org/display/DSDOC3x/Upgrading+a+DSpace+Installation

I strongly recommend you to start with a clean DSpace 3 configuration
directory and add in only your customizations. You can find them out
by doing a diff between the clean DSpace 1.6 dspace.cfg and your
customized DSpace 1.6 dspace.cfg. Then simply transfer them by hand to
the clean DSpace 3 configuration.

I also strongly recommend you to start with a fresh DSpace 3
installation on a new machine with up-to-date OS, Java, etc., copy the
database and assetstore over, import the 1.6 database and do the
database upgrade steps on the new machine.

Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] LDAP and Special Groups Code

2013-08-02 Thread helix84
You're right, you do need to raise the log level to get those messages
I listed, sorry I didn't notice it.

On Fri, Aug 2, 2013 at 11:30 AM, Clive Gould  wrote:
> I've edited /home/dspace/dspace-3.0-src-release/dspace/config/log4j.properties
>
> Can anyone advise me what directory to run ant init_configs from with DSpace 
> 3.0 ?

Simply edit [dspace]/config/log4j.properties (not the one in
[dspace-source]) and restart DSpace, you don't need to go through the
whole ant round - you don't even want to keep log4j.properties with
log level debug in [dspace-source].


Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] After upgrading to 3.2 Alert emails have started to fail

2013-08-02 Thread Jason Cooper
Hi,
  mail.admin had my email address in it, but alert.recipient didn't have an 
email address.  I have now put my email address in for that one as well (in 
double quotes).  Now I just need to get an error that would send an alert to 
test that I get the email.

Regards,
  Jason.

> -Original Message-
> From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of
> helix84
> Sent: 02 August 2013 10:31
> To: Jason Cooper
> Cc: dspace-tech@lists.sourceforge.net
> Subject: Re: [Dspace-tech] After upgrading to 3.2 Alert emails have started to
> fail
> 
> What's your value of the mail.admin configuration property in dspace.cfg?
> Seems like you have an empty string there.
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] DSpace 3.1 - Adding Static Pages

2013-08-02 Thread helix84
On Thu, Aug 1, 2013 at 6:07 PM, Guillermo Esteban Murillo Goussen
 wrote:
> First I found one of the Mirage.xsl files (there are like seven) at
> dspace-3.1-src-release/dspace/modules/xmlui/target/war/work/org.dspace/dspace-xmlui/themes/Mirage/Mirage.xsl.
> I guess it is the one to modify.

No, that's not the right one. Never modify anything in any "target"
directory. That is just an intermediate step - it's created by "mvn
package" from [dspace-source] and the files from
[dspace-source]/whatever/target are copied to [dspace] during the "ant
update" phase.

When you're developing and testing your modifications, it's easiest to
simply modify the XSL in
[dspace]/webapps/xmlui/themes/Mirage/Mirage.xsl, the changes will be
visible upon page reload (if not, see [1]). That's also where your
template overriding dri:body should go.

(The official recommendation is to do all changes in [dspace-source],
because during mvn package/ant update, the webapps in [dspace] are
replaced by those from [dspace-source]. But fear not, the old ones are
kept in [dspace]/webapps.bak-[date_and_time_of_ant_update].)


[1] 
https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache


Regards,
~~helix84

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

--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
___
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] After upgrading to 3.2 Alert emails have started to fail

2013-08-02 Thread helix84
Don't use quotes. This is what that section should look like:

mail.from.address = dspace-nore...@dspace.lboro.ac.uk

# Currently limited to one recipient!
feedback.recipient = j.l.coo...@lboro.ac.uk

# General site administration (Webmaster) e-mail
mail.admin = j.l.coo...@lboro.ac.uk

# Recipient for server errors and alerts
alert.recipient = j.l.coo...@lboro.ac.uk

# Recipient for new user registration emails
registration.notify = j.l.coo...@lboro.ac.uk

mail.from.address doesn't have to exist, but it has to be filled in (this
is probably what's causing the problem). And you probably want to leave
registration.notify empty.

Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] After upgrading to 3.2 Alert emails have started to fail

2013-08-02 Thread Jason Cooper
Hi,
  Thanks for the help.  I have removed the double quotes now from the config 
and will see if I get any errors/emails appear.

Regards,
  Jason.

From: ivan.ma...@gmail.com [mailto:ivan.ma...@gmail.com] On Behalf Of helix84
Sent: 02 August 2013 10:55
To: Jason Cooper
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] After upgrading to 3.2 Alert emails have started to 
fail

Don't use quotes. This is what that section should look like:

mail.from.address = 
dspace-nore...@dspace.lboro.ac.uk

# Currently limited to one recipient!
feedback.recipient = j.l.coo...@lboro.ac.uk

# General site administration (Webmaster) e-mail
mail.admin = j.l.coo...@lboro.ac.uk

# Recipient for server errors and alerts
alert.recipient = j.l.coo...@lboro.ac.uk

# Recipient for new user registration emails
registration.notify = j.l.coo...@lboro.ac.uk
mail.from.address doesn't have to exist, but it has to be filled in (this is 
probably what's causing the problem). And you probably want to leave 
registration.notify empty.

Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] QDC Crosswalk and OAI 2.0

2013-08-02 Thread helix84
On Thu, Aug 1, 2013 at 5:06 PM, kotsomit 
wrote:
> However, what is the basis schema for this metadata? As far as I have seen
> it is a proprietary schema by Lyncode called “xoai”.

Hi Dimitrios,
"xoai| is just an internal format. You can see any record in this format,
though, if you use metadataPrefix=xoai in your OAI URL.


> More importantly, is
> there any simple way (or any way at all) to configure this xoai output? A
> good reason for this would be to enable proper output of dc qualifiers,
> language tags as attributes instead of nested elements and so on?

It's quite simple, really. Here's the file you would change (if you need,
but you most likely don't):
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace/config/crosswalks/oai/metadataFormats/qdc.xsl

For example, in the old QDC.properties you had:
dc.language.iso  = 


In the new mapping file, you have this:


http://purl.org/dc/elements/1.1/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://purl.org/dc/terms/
http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd
http://purl.org/dc/elements/1.1/
http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd";>





It may look scary at first, but the only two things that matter here are
doc:metadata/doc:element[@name='dc']/doc:element[@name='language']/doc:element/doc:element/doc:field[@name='value']
and


You don't need to touch the rest, just copy it. You should see the pattern
here.


> If not, is it possible to still use the existing crosswalks for OAI
output?

No, those are not used anymore and have been removed.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk___
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] Add expand / collapse for the Front Page and Community-List.

2013-08-02 Thread Nemiz, Elvi
Hi Brian,

Please see this link:
https://wiki.duraspace.org/display/DSPACE/Manakin+theme+tutorial.
Customizations should be made inside the modules directory, AFAIK, not in
[dspace-src]\dspace-xmlui. With regards to the treeview functionality,
please check if you have the correct path in your sitemap.xmap (e.g.
value="lib/*js*/jquery.treeview.js" should be
"lib/*treeview*/jquery.treeview.js").
We sometimes tend to overlook small details like this. Here's a snippet of
sitemap.xmap of our live repository:










Just check if we have the same set of files that were needed for the
treeview functionality. It can also help by looking at our site's page
source.

Regarding the counter beside communities and collections, in your
dspace.cfg, look for # Settings for content count/strength information
 and then set the values for 'webui.strengths.show' and
'webui.strengths.cache' = true. You should also set up a cron job/sheduled
task to run [dspace]/bin/itemcounter periodically to update the count.

I am always willing to help in any that I can, so no problem at all, ;-)

Cheers and regards,

On Fri, Aug 2, 2013 at 5:16 PM, Brian Aljer B. Coballes <
bcobal...@ateneo.edu> wrote:
>
> Hi Elvi,
>
> I am building my customization in [dspace-src]\dspace-xmlui. I noticed
that my [dspace]\WEB-INF\classes\aspects\ArtifactBrowser is not updating so
I deleted everything inside [dspace] except assetstore/.
>
> Regarding the treeview functionality, I've done what you suggested but I
got the javascript error Uncaught TypeError: Object function (a,b){return
new e.fn.init(a,b,h)} has no method 'cookie' in jquery.treeview.js. I
thought that it lacked a javascript plugin so I tried importing
jquery.cookie.js but the same error appears. BTW, the counter beside the
communities (e.g. ) is also missing. I think I am almost done with this.
Please bear a little bit more. Thanks for your time and patience.
>
>
> On Thu, Aug 1, 2013 at 4:20 PM, Nemiz, Elvi 
wrote:
>>
>> Hi Brian,
>>
>> Did you copy the whole text including the  tags? If you created
an external javascript, you don't need to include the