[Dspace-tech] setting metadata fields during install time

2014-06-27 Thread Daniel Scharon
Hi all,

I am trying to define the metadata field set already during install
time.

The tables metadataschemaregistry and metadatafieldregistry are only
created but not filled by the SQL script provided by dspace
(dspace/etc/postgres/database_schema.sql) to initialize the database.

At which point during build  install are these two tables filled with
the default schemas (DC  DCTERMS)? Is this done during 'ant
fresh_install'? How can I influence the set of schemas that is
installed?

Best,
Daniel


-- 
Daniel Scharon
Communication, Information, Media Centre (KIM)
Content Services Department 
Room B 703
University of Konstanz
78457 Konstanz, Germany

Tel: +49 7531 88-2951
XMPP: daniel.scha...@uni-konstanz.de
Web: http://www.kim.uni-konstanz.de


smime.p7s
Description: S/MIME cryptographic signature
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
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] customizing /xmlui/browse?type=subject

2014-05-30 Thread Daniel Scharon
Hello everyone,

I would like to edit the way that browse results are displayed when
using /xmlui/browse?type=subject. 
Which part of Mirage theme do I have to modify in order to achieve this?
As far as I can see, neither itemSummaryList-DIM nor
collectionSummaryList-DIM seem to be the right places.

Can anyone point me to the right direction?

Best regards,
Daniel

-- 
Daniel Scharon
Communication, Information, Media Centre (KIM)
Content Services Department 
Room B 703
University of Konstanz
78457 Konstanz, Germany

Tel: +49 7531 88-2951
XMPP: daniel.scha...@uni-konstanz.de
Web: http://www.kim.uni-konstanz.de


smime.p7s
Description: S/MIME cryptographic signature
--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
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] customizing /xmlui/browse?type=subject

2014-05-30 Thread Daniel Scharon
Am Freitag, den 30.05.2014, 10:25 +0200 schrieb Daniel Scharon:
 Hello everyone,
 
 I would like to edit the way that browse results are displayed when
 using /xmlui/browse?type=subject. 
 Which part of Mirage theme do I have to modify in order to achieve
 this?
 As far as I can see, neither itemSummaryList-DIM nor
 collectionSummaryList-DIM seem to be the right places.
 
 Can anyone point me to the right direction?

I'll try to answer it by myself:

I added the following to my theme:

xsl:template
match=dri:div[@id='aspect.artifactbrowser.ConfigurableBrowse.div.browse-by-subject-results']/dri:table/dri:row/dri:cell/dri:xref/text()
...
do something
...
/xsl:template


Best,
Daniel



-- 
Daniel Scharon
Communication, Information, Media Centre (KIM)
Content Services Department 
Room B 703
University of Konstanz
78457 Konstanz, Germany

Tel: +49 7531 88-2951
XMPP: daniel.scha...@uni-konstanz.de
Web: http://www.kim.uni-konstanz.de


smime.p7s
Description: S/MIME cryptographic signature
--
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet___
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] LDAPAuthentication: email always overwritten with netid

2014-04-09 Thread Daniel Scharon
Hi all,

just as a reference to better understand what I meant, this already had
been reported:
http://dspace.2283337.n4.nabble.com/DSpace-LDAP-authentication-problem-td4665853.html#a4668861

Attached is a patch to solve this issue.

Best regards,
Daniel



-- 
Daniel Scharon
KIM, Room B 705
University of Konstanz
78457 Konstanz, Germany

Tel: +49 7531 88-2951
XMPP/E-Mail: daniel.scha...@uni-konstanz.de
Web: http://www.kim.uni-konstanz.de
--- a/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java	Fri Mar 28 17:05:18 2014 +0100
+++ b/dspace-api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java	Fri Mar 28 17:12:24 2014 +0100
@@ -253,14 +253,16 @@
 // If there is no email and the email domain is set, add it to the netid
 String email = ldap.ldapEmail;
 
-if ((StringUtils.isEmpty(email)) 
-(StringUtils.isNotEmpty(ConfigurationManager.getProperty(authentication-ldap, netid_email_domain
+if (StringUtils.isEmpty(email))
 {
-email = netid + ConfigurationManager.getProperty(authentication-ldap, netid_email_domain);
-}
-else
-{
-email = netid;
+if((StringUtils.isNotEmpty(ConfigurationManager.getProperty(authentication-ldap, netid_email_domain
+{
+email = netid + ConfigurationManager.getProperty(authentication-ldap, netid_email_domain);
+}
+else
+{
+email = netid;
+}
 }
 
 if (StringUtils.isNotEmpty(email))


smime.p7s
Description: S/MIME cryptographic signature
--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees___
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] LDAPAuthentication: email always overwritten with netid when netid_email_domain is not set

2014-03-28 Thread Daniel Scharon
Hi all,

with LDAPAuthentication one can get the mail attribute filled from LDAP.
If the LDAP server offers that attribute you don't have to set
netid_email_domain in authentication-ldap.cfg. 

But the following happens with DSpace 4.1: the email address received by
the LDAP server is always overwritten with the netid if
netid_email_domain is not set. It looks like this behavior was
introduced with the following commit:
https://github.com/DSpace/DSpace/commit/0a4ec51717e2f50b0c4e5005ca29b5083283f790#diff-41dc81f7e3e794a7e1eee66a27805c9c
(lines 261 to 264 ).
Deleting those lines fixes this and the email is attribute is correctly
filled with the value received from LDAP.

Is there anything I am missing here or is it really a bug?

Best regards,
Daniel


-- 
Daniel Scharon
KIM, Room B 705
University of Konstanz
78457 Konstanz, Germany

Tel: +49 7531 88-2951
XMPP/E-Mail: daniel.scha...@uni-konstanz.de
Web: http://www.kim.uni-konstanz.de


smime.p7s
Description: S/MIME cryptographic signature
--
___
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