Re: [dspace-tech] Updating XMLUI's translation files

2016-12-22 Thread Sidoroff, Ilja
Thanks, these look useful.

Ilja

> On 23 Dec 2016, at 02:05, helix84  wrote:
> 
> Here's a specialized one:
> 
> https://wiki.duraspace.org/pages/viewpage.action?pageId=19006307#InternationalizationSupport(I18nSupport)-Pythonscripttocheckformissing/extrastrings
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> 
> 
> On Thu, Dec 22, 2016 at 6:16 PM, Sidoroff, Ilja  
> wrote:
> Hello all,
> 
> Related to a upgrade, I'm trying to update messages.xml -files. Is there any 
> tool that can be used to compare two versions of the message files? For 
> instance, I could use a tool that lists missing keys between two files and 
> merge translation files. Quick googling didn't turn up anything, but I would 
> be surprised, if there isn't anything readymade for such a common task.
> 
> br,
> 
> Ilja Sidoroff
> Information Systems Specialist
> Helsinki University Library
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread David Brian Holt
This is probably a really stupid question, but is this problem due to me 
having "localhost" in my dspace.cfg settings?  Also, from where does the 
system pull the URL for the "URI" entry?

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Updating XMLUI's translation files

2016-12-22 Thread helix84
Here's a specialized one:

https://wiki.duraspace.org/pages/viewpage.action?pageId=19006307#InternationalizationSupport(I18nSupport)-Pythonscripttocheckformissing/extrastrings


Regards,
~~helix84

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


On Thu, Dec 22, 2016 at 6:16 PM, Sidoroff, Ilja 
wrote:

> Hello all,
>
> Related to a upgrade, I'm trying to update messages.xml -files. Is there
> any tool that can be used to compare two versions of the message files? For
> instance, I could use a tool that lists missing keys between two files and
> merge translation files. Quick googling didn't turn up anything, but I
> would be surprised, if there isn't anything readymade for such a common
> task.
>
> br,
>
> Ilja Sidoroff
> Information Systems Specialist
> Helsinki University Library
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread David Brian Holt
Wow!  So much help and so quickly!  Thank you both!

The trailing slash seems to have resolved that recursion problem.  For some 
reason though, some of the styling is being stripped out.

Here is my site:

http://35.166.62.251:8080/xmlui/

Here is my domain:

http://lgbtqbib.org/

BTW, do either of you shop at Amazon (or someplace similar)?  I'd love to 
send you a gift card as a token of thanks for all this.  :)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread Tom Desair
You have to put a trailing slash after xmlui, thus "ProxyPass /
http://localhost:8080/xmlui/";

You should then visit your website without "xmlui" UI since Apache HTTPD
will append that for you. You can consider this as "running under root", so
just http://35.166.163.205/ (or whatever hostname you are using).


[image: logo] Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


2016-12-22 23:39 GMT+01:00 David Brian Holt :

> Thank you so much for responding!
>
> I'm getting a 404 error when I try that:
>
> Problem accessing /xmluixmlui/. Reason:
>
> Not Found
>
>
> Here is what I entered into the 000-default.conf file:
>
>
>  # The ServerName directive sets the request scheme,
> hostname and port that # the server uses to identify itself. This is used
> when creating # redirection URLs. In the context of virtual hosts, the
> ServerName # specifies what hostname must appear in the request's Host:
> header to # match this virtual host. For the default virtual host (this
> file) this # value is not decisive as it is used as a last resort host
> regardless. # However, you must set it for any further virtual host
> explicitly. #ServerName www.example.com ServerAdmin webmaster@localhost
> DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1,
> debug, info, notice, warn, # error, crit, alert, emerg. # It is also
> possible to configure the loglevel for particular # modules, e.g. #LogLevel
> info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog
> ${APACHE_LOG_DIR}/access.log combined # For most configuration files from
> conf-available/, which are # enabled or disabled at a global level, it is
> possible to # include a line for only one particular virtual host. For
> example the # following line enables the CGI configuration for this host
> only # after it has been globally disabled with "a2disconf". #Include
> conf-available/serve-cgi-bin.conf ProxyPreserveHost On # Servers to proxy
> the connection, or; # List of application servers: # Usage: # ProxyPass /
> http://[IP Addr.]:[port]/ # ProxyPassReverse / http://[IP Addr.]:[port]/
> # Example: ProxyPass / http://localhost:8080/xmlui ProxyPassReverse /
> http://localhost:8080/xmlui ServerName localhost
> 
>
>
> Also, I noticed that libapache2-mod-proxy-html no longer exists on Ubuntu 
> 16.04.  According to this page, it is now included in apache2-bin:
>
>
> http://stackoverflow.com/questions/40263153/couldnt-find-package-libapache2-mod-proxy-html-ubuntu-16-04
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Re: Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread Phil Redmon
You should be able to fix that recursion with something like:

RedirectMatch 301 (xmlui){2,}/(.*) http://localhost:8080/xmlui/$2

On Thu, Dec 22, 2016 at 4:39 PM David Brian Holt  wrote:

> Thank you so much for responding!
>
> I'm getting a 404 error when I try that:
>
> Problem accessing /xmluixmlui/. Reason:
>
> Not Found
>
>
> Here is what I entered into the 000-default.conf file:
>
>
>  # The ServerName directive sets the request scheme,
> hostname and port that # the server uses to identify itself. This is used
> when creating # redirection URLs. In the context of virtual hosts, the
> ServerName # specifies what hostname must appear in the request's Host:
> header to # match this virtual host. For the default virtual host (this
> file) this # value is not decisive as it is used as a last resort host
> regardless. # However, you must set it for any further virtual host
> explicitly. #ServerName www.example.com ServerAdmin webmaster@localhost
> DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1,
> debug, info, notice, warn, # error, crit, alert, emerg. # It is also
> possible to configure the loglevel for particular # modules, e.g. #LogLevel
> info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog
> ${APACHE_LOG_DIR}/access.log combined # For most configuration files from
> conf-available/, which are # enabled or disabled at a global level, it is
> possible to # include a line for only one particular virtual host. For
> example the # following line enables the CGI configuration for this host
> only # after it has been globally disabled with "a2disconf". #Include
> conf-available/serve-cgi-bin.conf ProxyPreserveHost On # Servers to proxy
> the connection, or; # List of application servers: # Usage: # ProxyPass /
> http://[IP Addr.]:[port]/ # ProxyPassReverse / http://[IP Addr.]:[port]/
> # Example: ProxyPass / http://localhost:8080/xmlui ProxyPassReverse /
> http://localhost:8080/xmlui ServerName localhost
> 
>
>
> Also, I noticed that libapache2-mod-proxy-html no longer exists on Ubuntu 
> 16.04.  According to this page, it is now included in apache2-bin:
>
>
> http://stackoverflow.com/questions/40263153/couldnt-find-package-libapache2-mod-proxy-html-ubuntu-16-04
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re: Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread David Brian Holt
Thank you so much for responding!  

I'm getting a 404 error when I try that:

Problem accessing /xmluixmlui/. Reason:

Not Found


Here is what I entered into the 000-default.conf file:


 # The ServerName directive sets the request scheme, 
hostname and port that # the server uses to identify itself. This is used 
when creating # redirection URLs. In the context of virtual hosts, the 
ServerName # specifies what hostname must appear in the request's Host: 
header to # match this virtual host. For the default virtual host (this 
file) this # value is not decisive as it is used as a last resort host 
regardless. # However, you must set it for any further virtual host 
explicitly. #ServerName www.example.com ServerAdmin webmaster@localhost 
DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, 
debug, info, notice, warn, # error, crit, alert, emerg. # It is also 
possible to configure the loglevel for particular # modules, e.g. #LogLevel 
info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog 
${APACHE_LOG_DIR}/access.log combined # For most configuration files from 
conf-available/, which are # enabled or disabled at a global level, it is 
possible to # include a line for only one particular virtual host. For 
example the # following line enables the CGI configuration for this host 
only # after it has been globally disabled with "a2disconf". #Include 
conf-available/serve-cgi-bin.conf ProxyPreserveHost On # Servers to proxy 
the connection, or; # List of application servers: # Usage: # ProxyPass / 
http://[IP Addr.]:[port]/ # ProxyPassReverse / http://[IP Addr.]:[port]/ # 
Example: ProxyPass / http://localhost:8080/xmlui ProxyPassReverse / 
http://localhost:8080/xmlui ServerName localhost 



Also, I noticed that libapache2-mod-proxy-html no longer exists on Ubuntu 
16.04.  According to this page, it is now included in apache2-bin:


http://stackoverflow.com/questions/40263153/couldnt-find-package-libapache2-mod-proxy-html-ubuntu-16-04

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread Tom Desair
I would recommend you to not run Jetty on port 80, but to install Apache
HTTPD as a reverse proxy:
https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension

You can ignore the part on load-balancing. Your proxy rules should look
like:
ProxyPass / http://localhost:8080/xmlui/
ProxyPassReverse / http://localhost:8080/xmlui/

The advantage of using HTTPD is that you can easily add support for HTTPS,
or block access to certain webapps (e.g. SOLR):
ProxyPass /solr !

If you want to support Shibboleth, you also need HTTPD.

Best regards,
Tom


[image: logo] Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


2016-12-22 22:31 GMT+01:00 David Brian Holt :

> OK, I'm finished with one Dspace project and now working on another.  I
> have Dspace 6 successfully running on Ubuntu 16.04 on Amazon's AWS:
>
> http://35.166.163.205:8080/xmlui/
>
> I previously had an Omeka-based site here but thought that Dspace is more
> suited for what I needed to get done.  The last thing I need to do is to
> setup the DNS records accurately.  I've looking through the documentation
> for Jetty9 and it's a little confusing on how to run Jetty on port 80.  I
> know I can uncomment the line in /etc/default/jetty9 to authbind (needed to
> run on ports lower than 1023):
>
> # If you run Jetty on port numbers that are all higher than 1023, then you
> # do not need authbind. It is used for binding Jetty to lower port numbers.
> # (yes/no, default: no)
> AUTHBIND=yes
>
> And change the port setting in /etc/jetty9/start.ini:
>
> # HTTP port to listen on
> # Enable authbind in /etc/default/jetty9 to use a port lower than 1024
> jetty.port=80
>
> But that doesn't work alone, I think because I'm running Jetty as a
> non-root user (i.e., Dspace).
>
> So I really want to accomplish two things (to get my DNS records to work):
>
> 1.  Run Jetty under TCP 80.
>
> 2.  Change the root directory to point to /xmlui.
>
> I found this section in the Jetty9 documentation but I don't know which
> option to use: http://www.eclipse.org/jetty/documentation/current/
> setting-port80-access.html
>
> Any advice/ideas?
>
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Final steps in setting up DNS and changing ports and root directory on Jetty

2016-12-22 Thread David Brian Holt
OK, I'm finished with one Dspace project and now working on another.  I 
have Dspace 6 successfully running on Ubuntu 16.04 on Amazon's AWS:

http://35.166.163.205:8080/xmlui/

I previously had an Omeka-based site here but thought that Dspace is more 
suited for what I needed to get done.  The last thing I need to do is to 
setup the DNS records accurately.  I've looking through the documentation 
for Jetty9 and it's a little confusing on how to run Jetty on port 80.  I 
know I can uncomment the line in /etc/default/jetty9 to authbind (needed to 
run on ports lower than 1023):

# If you run Jetty on port numbers that are all higher than 1023, then you
# do not need authbind. It is used for binding Jetty to lower port numbers.
# (yes/no, default: no)
AUTHBIND=yes

And change the port setting in /etc/jetty9/start.ini:

# HTTP port to listen on
# Enable authbind in /etc/default/jetty9 to use a port lower than 1024
jetty.port=80

But that doesn't work alone, I think because I'm running Jetty as a 
non-root user (i.e., Dspace).

So I really want to accomplish two things (to get my DNS records to work):

1.  Run Jetty under TCP 80.

2.  Change the root directory to point to /xmlui.

I found this section in the Jetty9 documentation but I don't know which 
option to 
use: 
http://www.eclipse.org/jetty/documentation/current/setting-port80-access.html 

Any advice/ideas?

David

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] Re-build discovery index does not change facets

2016-12-22 Thread Hui Zhang
Hi, all:

We are running a DSpace3.0 IR with discovery enabled. There are a few items 
in the repository with "dc.date.issued" in wrong format (e.g., '1935/2/8' 
instead of 1935-02-08) and that causes mistakes in the year range at "Date 
Issued" facet. We find these items and correct the issued data using the 
administrator UI and re-build discovery index using 'update-discovery-index 
-b', the re-build is successful but the discovery facet does not change at 
all. Did we miss any step to update the discovery facet?

Thanks
--
Hui

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] When i went for ant fresh_install problem, i got these error messages:

2016-12-22 Thread Creel, James Silas
Dear Haimanot,

The first things to check is your dspace.cfg.  If the community list is not 
showing, this is a sure sign that the database does not contain those 
communities – no solr indexing is required for the hierarchy to show.  So get 
your db admin to check the database at the address of the db.url parameter and 
see that the communities are in the community table.  Otherwise, you might be 
using the wrong database instance or have problems with a migration.

Once you are pointing DSpace to the right database, if the community/collection 
hierarchy and the items appear but the bitstreams are not downloadable, that 
means that the database contains the data you intended but the assetstore is 
missing the files that the database is pointing to.  For this, check the 
assetstore.dir parameter in dspace.cfg and navigate there on the filesystem to 
see that the assets are indeed present.  If not, you’ll need to make a symlink 
or change the parameter.

All my best, and please follow up if you have any more specific concerns.  I 
would also mention that it is good to expand the stack traces when you get 
those error pages to provide more detail.

James


From: mailto:dspace-tech@googlegroups.com>> on 
behalf of Haimanot Birhanu 
mailto:haimanoti...@gmail.com>>
Date: Tuesday, December 20, 2016 at 203
To: Luiz dos Santos mailto:luiz...@gmail.com>>
Cc: DSpace Technical Support 
mailto:dspace-tech@googlegroups.com>>
Subject: Re: [dspace-tech] When i went for ant fresh_install problem, i got 
these error messages:

Dear All,

I'm trying to move dspace to another server and i installed the same version of 
dspace on the new machine and try to copy dspace backup files but it seems the 
data migration is ok but the community lists are not there and the items are 
not down loadable. for more I have attached the screen-shots.

Any help is appreciated,

On Wed, Oct 5, 2016 at 12:17 PM, Luiz dos Santos 
mailto:luiz...@gmail.com>> wrote:
You should create the database, use the command below.

createuser --username=postgres --no-superuser --pwprompt dspace


crê eatedb --username=postgres --owner=dspace --encoding=UNICODE dspace

 Wednesday, October 5, 2016, Haimanot Birhanu 
mailto:haimanoti...@gmail.com>> wrote:
 Error:
 [java]  - org.postgresql.util.PSQLException: FATAL: database "dspace" does 
not exist



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.


--
Luiz Claudio Santos
http://luizclaudiosantos.me/



--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to 
dspace-tech@googlegroups.com.
Visit this group at 
https://groups.google.com/group/dspace-tech.
For more options, visit 
https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.co

Re: [dspace-tech] Is this a possible kind of search?

2016-12-22 Thread Evgeni Dimitrov
Hi Terry,

Thank you for the information. I will see will it be possible to introduce 
a new kind of facet.
To have a bean of the new kind for the "relation" facet.
And to add some Java code to make a request to SOLR and get results. I have 
now some time to try.

Best regards
Evgeni

On Thursday, December 22, 2016 at 7:28:18 PM UTC+2, Terry Brady wrote:
>
> Evgeni,
>
> The default behavior of the facets and filters will not accomplish your 
> goal.
>
> There is a feature called a Hierarchical Sidebar Facet that might help.  I 
> have not used this feature, so I do not know if it will help with your 
> issue.
>
>
> https://wiki.duraspace.org/display/DSDOC5x/Discovery#Discovery-Hierarchical(taxonomiesbased)sidebarfacets
>
> I believe we attempted something like what you are trying to accomplish.  
> We settled for what we could achieve with the default facet options.
>
> In our repository, we have a community of MOOC courses.  It is faceted by 
> course name.  Each course lives in a separate collection.  (Since each 
> course it distinct, it made sense to place each one in its own collection.)
>
> https://repository.library.georgetown.edu/handle/10822/710899
>
> If you navigate to a collection, the collection content is faceted by week 
> of the course.
>
> https://repository.library.georgetown.edu/handle/10822/712963
>
> Unfortunately, if you follow the course facet, you do not see the week 
> facet because you are still at the community level.
>
>
> https://repository.library.georgetown.edu/handle/10822/710899/discover?filtertype=gu-course&filter_relational_operator=equals&filter=Genomic+Medicine+Gets+Personal-GeorgetownX-MEDX202-01
>
> Terry
>
> On Thu, Dec 22, 2016 at 1:47 AM, Evgeni Dimitrov  > wrote:
>
>> Thank you Terry,
>>
>> I want a facet, a sidebar facet. But it is a "parameterized" facet.
>> It makes sense only together with a search filter "relation" 
>> (dc.relation.*).
>>
>> There is an item A with dc.identifier=123.
>> The end-user makes search and adds the filter "relation = 123".
>> Because the end-user wants all items with some relation to item A.
>>
>> Only in this context the facet makes sense and it may be produced by
>>
>> &facet.query=relation.isbasedon:123
>> &facet.query=relation.isformatof:123
>> &facet.query=relation.isreferencedby:123
>>
>> The value of the search (123) is the parameter of the facet.
>>
>> I mean - we make search for all items with any kind of relation to item A 
>> (123). And we get a facet with the breakdown by the kind of relation to 
>> item A. The facet makes sense and is possible only in pair with the search 
>> filter "relation".
>>
>> Best regards
>> Evgeni
>>
>>
>> On Thursday, December 22, 2016 at 12:28:30 AM UTC+2, Terry Brady wrote:
>>>
>>> Are you attempting to create a query or to create a facet?
>>>
>>> If you are building a query, who will run the query?  Does it need to be 
>>> run through the DSpace UI, or can it be run in the background?
>>>
>>> Reading your initial note, it sounds like you would like to define a 
>>> facet.  Your initial plan to add a bean to discovery.xml should accomplish 
>>> what you need.
>>>
>>> Assuming you want to create a facet, here are some suggestions.
>>>
>>>- If you wish to create a sidebar facet, add your new bean to the 
>>>list of filters and to the list of sidebar facets.
>>>- After you deploy your updated discovery.xml file, you must 
>>>re-index your repository for the filter/facet to take effect
>>>
>>> The following gist file illustrates a number of custom facets and 
>>> filters that we have defined in our repository: 
>>> https://gist.github.com/terrywbrady/d31fc1bcb9567204470f
>>>
>>> Terry
>>>
>>> On Wed, Dec 21, 2016 at 1:26 AM, Evgeni Dimitrov  
>>> wrote:
>>>
 Hi helix84,

 My thoughts are rather in this direction:

 To add somewhere? some code? so that only when the search filter 
 "relation" is applied (with value XXX), to have:
 - a new temporary field relation_kind added - with value isformatof - 
 for every record with (relation.isformatof XXX)
 - a new temporary field relation_kind added - with value isreferencedby 
 - for every record with (relation.isreferencedby XXX)

 And to have a facet over relation_kind.

 Anyway, if you think that this is not a viable option, could you please 
 elaborate on your initial suggestion. Where and how to use this query. And 
 where is this notation described. I have not seen anything similar. Thank 
 you again.

 Best regards
 Evgeni


 On Tuesday, December 20, 2016 at 6:23:04 PM UTC+2, helix84 wrote:
>
> The query you want is:
>
> (relation.isbasedon:[* TO *] OR relation.isformatof:[* TO *] OR
>  relation.isreferencedby:[* TO *]) AND your_identifier:123
>
> Then use faceting as usual.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/d

Re: [dspace-tech] ItemUpdate doesn't allow diacritics

2016-12-22 Thread Terry Brady
Could you please create a JIRA issue with these details?
https://jira.duraspace.org/projects/DS/issues

To help others who may investigate this issue, I have an additional
suggestion.  Rather than attaching a screen shot, I recommend that you copy
and paste the text you see on Linux and Windows.  The sample screen shot
you have displayed from windows does not show the output from the executing
command.

Thank you for taking time to report the issue.




On Thu, Dec 22, 2016 at 10:23 AM, Hernán Lagos 
wrote:

> Thanks for your answer
>
> I'm using version 5.5.
>
> Output from linux ssh:
>
>
> 
>
> Output from Windows Putty:
>
>
> 
>
> Is the same command executed,
>
>
> Thanks
>
>
> El jueves, 22 de diciembre de 2016, 14:49:36 (UTC-3), Terry Brady escribió:
>>
>> This sounds like an issue that should be captured as a bug report in
>> Jira: https://jira.duraspace.org/projects/DS/issues
>>
>> It would be useful to know the version of DSpace that you are running.
>>
>> Also, could you copy & paste the terminal output that you see on Windows
>> and on Linux.
>>
>> Terry
>>
>> On Thu, Dec 22, 2016 at 5:26 AM, Hernán Lagos  wrote:
>>
>>> Dear
>>>
>>> I've been trying to update an item with the command *./dspace
>>> ItemUpdate -A -e test...@gmail.com -verbose -s ~/Desktop/item_49/ -t*
>>> Works perfectly from windows with putty, if i connect from linux command
>>> line doesn't accept diacritics in filenames, does not recognize files from
>>> contents.
>>> When importing an item this does not happen.
>>>
>>> Thanks in advance
>>> Hernán
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "DSpace Technical Support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to dspace-tech...@googlegroups.com.
>>> To post to this group, send email to dspac...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Terry Brady
>> Applications Programmer Analyst
>> Georgetown University Library Information Technology
>> http://georgetown-university-libraries.github.io/
>> 
>> 425-298-5498 <(425)%20298-5498> (Seattle, WA)
>>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/

425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] ItemUpdate doesn't allow diacritics

2016-12-22 Thread Hernán Lagos
Thanks for your answer

I'm using version 5.5.

Output from linux ssh:



Output from Windows Putty:



Is the same command executed, 


Thanks


El jueves, 22 de diciembre de 2016, 14:49:36 (UTC-3), Terry Brady escribió:
>
> This sounds like an issue that should be captured as a bug report in Jira: 
> https://jira.duraspace.org/projects/DS/issues
>
> It would be useful to know the version of DSpace that you are running.
>
> Also, could you copy & paste the terminal output that you see on Windows 
> and on Linux.
>
> Terry
>
> On Thu, Dec 22, 2016 at 5:26 AM, Hernán Lagos  > wrote:
>
>> Dear
>>
>> I've been trying to update an item with the command *./dspace ItemUpdate 
>> -A -e test...@gmail.com  -verbose -s ~/Desktop/item_49/ -t*
>> Works perfectly from windows with putty, if i connect from linux command 
>> line doesn't accept diacritics in filenames, does not recognize files from 
>> contents.
>> When importing an item this does not happen.
>>
>> Thanks in advance
>> Hernán
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com .
>> To post to this group, send email to dspac...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> http://georgetown-university-libraries.github.io/ 
> 
> 425-298-5498 (Seattle, WA)
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Community list page

2016-12-22 Thread Terry Brady
I suspect that you will need to modify the following file to make this
change.  Note the difference between the default path and the
community-list path.

https://github.com/DSpace/DSpace/blob/master/dspace-xmlui/src/main/resources/aspects/BrowseArtifacts/sitemap.xmap#L47-L60



On Wed, Dec 21, 2016 at 11:10 PM, Sisay Webshet  wrote:

> Hello.
> I'm using DSpace 5.5-Mirage2. I want to bring the Community list page to
> the front page like this (https://archive.nyu.edu/).
>
> Any help is greatly appreciated.
>
> Thank you.
> Sisay,W
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/

425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] ItemUpdate doesn't allow diacritics

2016-12-22 Thread Terry Brady
This sounds like an issue that should be captured as a bug report in Jira:
https://jira.duraspace.org/projects/DS/issues

It would be useful to know the version of DSpace that you are running.

Also, could you copy & paste the terminal output that you see on Windows
and on Linux.

Terry

On Thu, Dec 22, 2016 at 5:26 AM, Hernán Lagos  wrote:

> Dear
>
> I've been trying to update an item with the command *./dspace ItemUpdate
> -A -e testu...@gmail.com  -verbose -s
> ~/Desktop/item_49/ -t*
> Works perfectly from windows with putty, if i connect from linux command
> line doesn't accept diacritics in filenames, does not recognize files from
> contents.
> When importing an item this does not happen.
>
> Thanks in advance
> Hernán
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
http://georgetown-university-libraries.github.io/

425-298-5498 (Seattle, WA)

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Updating XMLUI's translation files

2016-12-22 Thread Phil Redmon
You could use diff on linux, winmerge on windows, or git on anything for
comparing files.

On Thu, Dec 22, 2016 at 11:16 AM Sidoroff, Ilja 
wrote:

> Hello all,
>
> Related to a upgrade, I'm trying to update messages.xml -files. Is there
> any tool that can be used to compare two versions of the message files? For
> instance, I could use a tool that lists missing keys between two files and
> merge translation files. Quick googling didn't turn up anything, but I
> would be surprised, if there isn't anything readymade for such a common
> task.
>
> br,
>
> Ilja Sidoroff
> Information Systems Specialist
> Helsinki University Library
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Is this a possible kind of search?

2016-12-22 Thread Terry Brady
Evgeni,

The default behavior of the facets and filters will not accomplish your
goal.

There is a feature called a Hierarchical Sidebar Facet that might help.  I
have not used this feature, so I do not know if it will help with your
issue.

https://wiki.duraspace.org/display/DSDOC5x/Discovery#Discovery-Hierarchical(taxonomiesbased)sidebarfacets

I believe we attempted something like what you are trying to accomplish.
We settled for what we could achieve with the default facet options.

In our repository, we have a community of MOOC courses.  It is faceted by
course name.  Each course lives in a separate collection.  (Since each
course it distinct, it made sense to place each one in its own collection.)

https://repository.library.georgetown.edu/handle/10822/710899

If you navigate to a collection, the collection content is faceted by week
of the course.

https://repository.library.georgetown.edu/handle/10822/712963

Unfortunately, if you follow the course facet, you do not see the week
facet because you are still at the community level.

https://repository.library.georgetown.edu/handle/10822/710899/discover?filtertype=gu-course&filter_relational_operator=equals&filter=Genomic+Medicine+Gets+Personal-GeorgetownX-MEDX202-01

Terry

On Thu, Dec 22, 2016 at 1:47 AM, Evgeni Dimitrov 
wrote:

> Thank you Terry,
>
> I want a facet, a sidebar facet. But it is a "parameterized" facet.
> It makes sense only together with a search filter "relation"
> (dc.relation.*).
>
> There is an item A with dc.identifier=123.
> The end-user makes search and adds the filter "relation = 123".
> Because the end-user wants all items with some relation to item A.
>
> Only in this context the facet makes sense and it may be produced by
>
> &facet.query=relation.isbasedon:123
> &facet.query=relation.isformatof:123
> &facet.query=relation.isreferencedby:123
>
> The value of the search (123) is the parameter of the facet.
>
> I mean - we make search for all items with any kind of relation to item A
> (123). And we get a facet with the breakdown by the kind of relation to
> item A. The facet makes sense and is possible only in pair with the search
> filter "relation".
>
> Best regards
> Evgeni
>
>
> On Thursday, December 22, 2016 at 12:28:30 AM UTC+2, Terry Brady wrote:
>>
>> Are you attempting to create a query or to create a facet?
>>
>> If you are building a query, who will run the query?  Does it need to be
>> run through the DSpace UI, or can it be run in the background?
>>
>> Reading your initial note, it sounds like you would like to define a
>> facet.  Your initial plan to add a bean to discovery.xml should accomplish
>> what you need.
>>
>> Assuming you want to create a facet, here are some suggestions.
>>
>>- If you wish to create a sidebar facet, add your new bean to the
>>list of filters and to the list of sidebar facets.
>>- After you deploy your updated discovery.xml file, you must re-index
>>your repository for the filter/facet to take effect
>>
>> The following gist file illustrates a number of custom facets and filters
>> that we have defined in our repository: https://gist.githu
>> b.com/terrywbrady/d31fc1bcb9567204470f
>>
>> Terry
>>
>> On Wed, Dec 21, 2016 at 1:26 AM, Evgeni Dimitrov 
>> wrote:
>>
>>> Hi helix84,
>>>
>>> My thoughts are rather in this direction:
>>>
>>> To add somewhere? some code? so that only when the search filter
>>> "relation" is applied (with value XXX), to have:
>>> - a new temporary field relation_kind added - with value isformatof -
>>> for every record with (relation.isformatof XXX)
>>> - a new temporary field relation_kind added - with value isreferencedby
>>> - for every record with (relation.isreferencedby XXX)
>>>
>>> And to have a facet over relation_kind.
>>>
>>> Anyway, if you think that this is not a viable option, could you please
>>> elaborate on your initial suggestion. Where and how to use this query. And
>>> where is this notation described. I have not seen anything similar. Thank
>>> you again.
>>>
>>> Best regards
>>> Evgeni
>>>
>>>
>>> On Tuesday, December 20, 2016 at 6:23:04 PM UTC+2, helix84 wrote:

 The query you want is:

 (relation.isbasedon:[* TO *] OR relation.isformatof:[* TO *] OR
  relation.isreferencedby:[* TO *]) AND your_identifier:123

 Then use faceting as usual.


 Regards,
 ~~helix84

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


 On Tue, Dec 20, 2016 at 3:29 PM, Evgeni Dimitrov 
 wrote:

> I am wondering - is it possible to have a search like this:
>
> - to find all items, which have in any of
> relation.isbasedon, relation.isformatof, relation.isreferencedby etc.
>
> certain value (the identifier of certain item);
>
> - then to have a facet "relation" with values
> isbasedon (1)
> isformatof (1)
> isreferencedby (3)
>
> I mean - is it possible to

[dspace-tech] Updating XMLUI's translation files

2016-12-22 Thread Sidoroff, Ilja
Hello all,

Related to a upgrade, I'm trying to update messages.xml -files. Is there any 
tool that can be used to compare two versions of the message files? For 
instance, I could use a tool that lists missing keys between two files and 
merge translation files. Quick googling didn't turn up anything, but I would be 
surprised, if there isn't anything readymade for such a common task.

br,

Ilja Sidoroff
Information Systems Specialist
Helsinki University Library

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST API

2016-12-22 Thread Tom Desair
That's great news! I'll try to convert this into a pull request between
Christmas and New Year so that it is also fixed upstream.

Best regards,
Tom


[image: logo] Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


2016-12-22 16:19 GMT+01:00 Devaux Cédric :

>
>  I've made a test with *DSpaceAuthenticationProvider.java* provide by
> Tom ( https://github.com/milieuinfo/dspace54-atmire/blob/
> ontwikkel/dspace/modules/rest/src/main/java/org/dspace/rest/
> authentication/DSpaceAuthenticationProvider.java
> 
> ) and it's OK :
>
> When I check the authentication (/status) with the JSESSIONID from the
> /login response, "authenticated" is now true :
>
> 
> true*@*.*Cedric
> Devauxtrue
>
>
> (The response to /status request is now similar to Password
> Authentication : without apiVersion and sourceVersion )
>
> Thanks for this solution.
>
> Regards,
>
> Cedric
>
>
>
>
>
> --
> *De :* dspace-tech@googlegroups.com [mailto:dspace-tech@googlegroups.com] *De
> la part de* Tom Desair
> *Envoyé :* jeudi 22 décembre 2016 09:41
> *À :* Terry Brady
> *Cc :* Devaux Cédric; dspace-tech@googlegroups.com
> *Objet :* Re: [dspace-tech] DSpace 6.0 : problem with LDAP authentication
> in REST API
>
> This is a bit of a guess, but we had a client for which we needed to
> implement authentication support for OpenAM through the REST API. To do
> this, we back ported the DSpace 6 REST authentication framework to DSpace
> 5. We then encountered a similar issue.
>
> The problem is that when a user logs in using LDAP or Shibboleth, they do
> that using a some kind of username or user ID and not their e-mail address.
> This has the effect that the DSpace 6 DSpaceAuthenticationProvider creates
> a UsernamePasswordAuthenticationToken with that user name (which is not
> an e-mail address): https://github.com/DSpace/DSpace/blob/master/
> dspace-rest/src/main/java/org/dspace/rest/authentication/
> DSpaceAuthenticationProvider.java#L63
>
> Later on, this user name is used to lookup the ePerson account based on
> his e-mail address: https://github.com/DSpace/DSpace/blob/master/
> dspace-rest/src/main/java/org/dspace/rest/Resource.java#L91 BUT THIS IS
> WRONG, since the user name is mostly not the e-mail address of that user.
>
> We fixed this by adding a method createAuthenticationToken to the
> DSpaceAuthenticationProvider that will store the authenticated ePerson's
> e-mail address in the Spring Authentication object, instead of the user
> name used to login: https://github.com/milieuinfo/dspace54-atmire/
> blob/ontwikkel/dspace/modules/rest/src/main/java/org/dspace/
> rest/authentication/DSpaceAuthenticationProvider.java#L65 That solved the
> problem for us, since the logic in the REST Resource class is then correct.
>
> I do not have access to a development Shibboleth or LDAP system so I
> cannot test if this will also fix the problem in the official DSpace 6
> code, but I'm pretty confident it will. Can someone who has a development
> Shibboleth and/or LDAP, apply this fix and check if it works? If it helps,
> I can create a separate pull request for this.
>
> I do not think this is related to https://jira.duraspace.org/
> browse/DS-3108, since Cédric is able to complete the authentication
> request. I have another idea about DS-3108 which I will post in the
> comments of that ticket.
>
> Best regards,
> Tom
>
>
> [image: logo] Tom Desair
> 250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
> Esperantolaan 4, Heverlee 3001, Belgium
> www.atmire.com
> 
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


RE: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST API

2016-12-22 Thread Devaux Cédric
(I've made a test with LDAP, not with Shibboleth)


De : dspace-tech@googlegroups.com [mailto:dspace-tech@googlegroups.com] De la 
part de Tom Desair
Envoyé : jeudi 22 décembre 2016 09:41
À : Terry Brady
Cc : Devaux Cédric; dspace-tech@googlegroups.com
Objet : Re: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST 
API

This is a bit of a guess, but we had a client for which we needed to implement 
authentication support for OpenAM through the REST API. To do this, we back 
ported the DSpace 6 REST authentication framework to DSpace 5. We then 
encountered a similar issue.

The problem is that when a user logs in using LDAP or Shibboleth, they do that 
using a some kind of username or user ID and not their e-mail address. This has 
the effect that the DSpace 6 DSpaceAuthenticationProvider creates a 
UsernamePasswordAuthenticationToken with that user name (which is not an e-mail 
address): 
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L63

Later on, this user name is used to lookup the ePerson account based on his 
e-mail address: 
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/Resource.java#L91
 BUT THIS IS WRONG, since the user name is mostly not the e-mail address of 
that user.

We fixed this by adding a method createAuthenticationToken to the 
DSpaceAuthenticationProvider that will store the authenticated ePerson's e-mail 
address in the Spring Authentication object, instead of the user name used to 
login: 
https://github.com/milieuinfo/dspace54-atmire/blob/ontwikkel/dspace/modules/rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L65
 That solved the problem for us, since the logic in the REST Resource class is 
then correct.

I do not have access to a development Shibboleth or LDAP system so I cannot 
test if this will also fix the problem in the official DSpace 6 code, but I'm 
pretty confident it will. Can someone who has a development Shibboleth and/or 
LDAP, apply this fix and check if it works? If it helps, I can create a 
separate pull request for this.

I do not think this is related to https://jira.duraspace.org/browse/DS-3108, 
since Cédric is able to complete the authentication request. I have another 
idea about DS-3108 which I will post in the comments of that ticket.

Best regards,
Tom


[logo]  Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


RE: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST API

2016-12-22 Thread Devaux Cédric

 I've made a test with DSpaceAuthenticationProvider.java provide by Tom ( 
https://github.com/milieuinfo/dspace54-atmire/blob/ontwikkel/dspace/modules/rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java
 ) and it's OK :

When I check the authentication (/status) with the JSESSIONID from the /login 
response, "authenticated" is now true :

 
true*@*.*Cedric 
Devauxtrue


(The response to /status request is now similar to Password Authentication : 
without apiVersion and sourceVersion )

Thanks for this solution.

Regards,

Cedric






De : dspace-tech@googlegroups.com [mailto:dspace-tech@googlegroups.com] De la 
part de Tom Desair
Envoyé : jeudi 22 décembre 2016 09:41
À : Terry Brady
Cc : Devaux Cédric; dspace-tech@googlegroups.com
Objet : Re: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST 
API

This is a bit of a guess, but we had a client for which we needed to implement 
authentication support for OpenAM through the REST API. To do this, we back 
ported the DSpace 6 REST authentication framework to DSpace 5. We then 
encountered a similar issue.

The problem is that when a user logs in using LDAP or Shibboleth, they do that 
using a some kind of username or user ID and not their e-mail address. This has 
the effect that the DSpace 6 DSpaceAuthenticationProvider creates a 
UsernamePasswordAuthenticationToken with that user name (which is not an e-mail 
address): 
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L63

Later on, this user name is used to lookup the ePerson account based on his 
e-mail address: 
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/Resource.java#L91
 BUT THIS IS WRONG, since the user name is mostly not the e-mail address of 
that user.

We fixed this by adding a method createAuthenticationToken to the 
DSpaceAuthenticationProvider that will store the authenticated ePerson's e-mail 
address in the Spring Authentication object, instead of the user name used to 
login: 
https://github.com/milieuinfo/dspace54-atmire/blob/ontwikkel/dspace/modules/rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L65
 That solved the problem for us, since the logic in the REST Resource class is 
then correct.

I do not have access to a development Shibboleth or LDAP system so I cannot 
test if this will also fix the problem in the official DSpace 6 code, but I'm 
pretty confident it will. Can someone who has a development Shibboleth and/or 
LDAP, apply this fix and check if it works? If it helps, I can create a 
separate pull request for this.

I do not think this is related to https://jira.duraspace.org/browse/DS-3108, 
since Cédric is able to complete the authentication request. I have another 
idea about DS-3108 which I will post in the comments of that ticket.

Best regards,
Tom


[logo]  Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


[dspace-tech] ItemUpdate doesn't allow diacritics

2016-12-22 Thread Hernán Lagos
Dear

I've been trying to update an item with the command *./dspace ItemUpdate -A 
-e testu...@gmail.com -verbose -s ~/Desktop/item_49/ -t*
Works perfectly from windows with putty, if i connect from linux command 
line doesn't accept diacritics in filenames, does not recognize files from 
contents.
When importing an item this does not happen.

Thanks in advance
Hernán

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.


Re: [dspace-tech] Is this a possible kind of search?

2016-12-22 Thread Evgeni Dimitrov
Thank you Terry,

I want a facet, a sidebar facet. But it is a "parameterized" facet.
It makes sense only together with a search filter "relation" 
(dc.relation.*).

There is an item A with dc.identifier=123.
The end-user makes search and adds the filter "relation = 123".
Because the end-user wants all items with some relation to item A.

Only in this context the facet makes sense and it may be produced by

&facet.query=relation.isbasedon:123
&facet.query=relation.isformatof:123
&facet.query=relation.isreferencedby:123

The value of the search (123) is the parameter of the facet.

I mean - we make search for all items with any kind of relation to item A 
(123). And we get a facet with the breakdown by the kind of relation to 
item A. The facet makes sense and is possible only in pair with the search 
filter "relation".

Best regards
Evgeni


On Thursday, December 22, 2016 at 12:28:30 AM UTC+2, Terry Brady wrote:
>
> Are you attempting to create a query or to create a facet?
>
> If you are building a query, who will run the query?  Does it need to be 
> run through the DSpace UI, or can it be run in the background?
>
> Reading your initial note, it sounds like you would like to define a 
> facet.  Your initial plan to add a bean to discovery.xml should accomplish 
> what you need.
>
> Assuming you want to create a facet, here are some suggestions.
>
>- If you wish to create a sidebar facet, add your new bean to the list 
>of filters and to the list of sidebar facets.
>- After you deploy your updated discovery.xml file, you must re-index 
>your repository for the filter/facet to take effect
>
> The following gist file illustrates a number of custom facets and filters 
> that we have defined in our repository: 
> https://gist.github.com/terrywbrady/d31fc1bcb9567204470f
>
> Terry
>
> On Wed, Dec 21, 2016 at 1:26 AM, Evgeni Dimitrov  > wrote:
>
>> Hi helix84,
>>
>> My thoughts are rather in this direction:
>>
>> To add somewhere? some code? so that only when the search filter 
>> "relation" is applied (with value XXX), to have:
>> - a new temporary field relation_kind added - with value isformatof - for 
>> every record with (relation.isformatof XXX)
>> - a new temporary field relation_kind added - with value isreferencedby - 
>> for every record with (relation.isreferencedby XXX)
>>
>> And to have a facet over relation_kind.
>>
>> Anyway, if you think that this is not a viable option, could you please 
>> elaborate on your initial suggestion. Where and how to use this query. And 
>> where is this notation described. I have not seen anything similar. Thank 
>> you again.
>>
>> Best regards
>> Evgeni
>>
>>
>> On Tuesday, December 20, 2016 at 6:23:04 PM UTC+2, helix84 wrote:
>>>
>>> The query you want is:
>>>
>>> (relation.isbasedon:[* TO *] OR relation.isformatof:[* TO *] OR
>>>  relation.isreferencedby:[* TO *]) AND your_identifier:123
>>>
>>> Then use faceting as usual.
>>>
>>>
>>> Regards,
>>> ~~helix84
>>>
>>> Compulsory reading: DSpace Mailing List Etiquette
>>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>>
>>>
>>> On Tue, Dec 20, 2016 at 3:29 PM, Evgeni Dimitrov  
>>> wrote:
>>>
 I am wondering - is it possible to have a search like this:

 - to find all items, which have in any of
 relation.isbasedon, relation.isformatof, relation.isreferencedby etc.

 certain value (the identifier of certain item);

 - then to have a facet "relation" with values
 isbasedon (1)
 isformatof (1)
 isreferencedby (3)

 I mean - is it possible to have this without too much coding? I am 
 using xmlui - Mirage.

 -- 
 You received this message because you are subscribed to the Google 
 Groups "DSpace Technical Support" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to dspace-tech...@googlegroups.com.
 To post to this group, send email to dspac...@googlegroups.com.
 Visit this group at https://groups.google.com/group/dspace-tech.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to dspace-tech...@googlegroups.com .
>> To post to this group, send email to dspac...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> http://georgetown-university-libraries.github.io/ 
> 
> 425-298-5498 (Seattle, WA)
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from i

Re: [dspace-tech] DSpace 6.0 : problem with LDAP authentication in REST API

2016-12-22 Thread Tom Desair
This is a bit of a guess, but we had a client for which we needed to
implement authentication support for OpenAM through the REST API. To do
this, we back ported the DSpace 6 REST authentication framework to DSpace
5. We then encountered a similar issue.

The problem is that when a user logs in using LDAP or Shibboleth, they do
that using a some kind of username or user ID and not their e-mail address.
This has the effect that the DSpace 6 DSpaceAuthenticationProvider creates
a UsernamePasswordAuthenticationToken with that user name (which is not an
e-mail address):
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L63

Later on, this user name is used to lookup the ePerson account based on his
e-mail address:
https://github.com/DSpace/DSpace/blob/master/dspace-rest/src/main/java/org/dspace/rest/Resource.java#L91
BUT THIS IS WRONG, since the user name is mostly not the e-mail address of
that user.

We fixed this by adding a method createAuthenticationToken to the
DSpaceAuthenticationProvider that will store the authenticated ePerson's
e-mail address in the Spring Authentication object, instead of the user
name used to login:
https://github.com/milieuinfo/dspace54-atmire/blob/ontwikkel/dspace/modules/rest/src/main/java/org/dspace/rest/authentication/DSpaceAuthenticationProvider.java#L65
That solved the problem for us, since the logic in the REST Resource class
is then correct.

I do not have access to a development Shibboleth or LDAP system so I cannot
test if this will also fix the problem in the official DSpace 6 code, but
I'm pretty confident it will. Can someone who has a development Shibboleth
and/or LDAP, apply this fix and check if it works? If it helps, I can
create a separate pull request for this.

I do not think this is related to https://jira.duraspace.org/browse/DS-3108,
since Cédric is able to complete the authentication request. I have another
idea about DS-3108 which I will post in the comments of that ticket.

Best regards,
Tom


[image: logo] Tom Desair
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com


2016-12-21 23:38 GMT+01:00 Terry Brady :

> The Shibboleth issue is still open.  I suspect that you are running into
> the same issue with LDAP.
>
> It would be good to know if anyone on the list can confirm that REST/LDAP
> authentication works in DSpace 6.
>
> Terry
>
> On Wed, Dec 21, 2016 at 7:45 AM, Devaux Cédric 
> wrote:
>
>> Hello,
>>
>> I want to use LDAP Authentication with Rest and there is a problem.
>> The LDAP authentication ( /login ) seems OK  : response 200 and in
>> dspace.log :
>> *2016-12-21 11:09:52,551 INFO org.dspace.authenticate.LDAPAuthentication
>> @ *@*.*::authenticate:type=ldap*
>> *2016-12-21 11:09:52,551 INFO org.dspace.eperson.EPersonServiceImpl @
>> *@*.*::update_eperson:eperson_id=39...*
>>
>> But when I check the authentication (/status) with the JSESSIONID from
>> the /login response, "authenticated" is false :
>> *> standalone="yes"?>6falsetrue6.0*
>>
>> It's OK with Password Authentication with Rest (but the response to
>> /status request is different, without apiVersion and sourceVersion  :
>> *> standalone="yes"?>true**true
>> )*
>>
>> I'd like to know if someone has ever successfully used LDAP
>> authentication in Rest Api or if it's a bug like with Shibboleth
>> Authentication ( https://jira.duraspace.org/browse/DS-2898 ,
>> https://jira.duraspace.org/browse/DS-3108 ) ?
>>
>> Regards,
>> Cedric
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "DSpace Technical Support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to dspace-tech+unsubscr...@googlegroups.com.
>> To post to this group, send email to dspace-tech@googlegroups.com.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> http://georgetown-university-libraries.github.io/
> 
> 425-298-5498 <(425)%20298-5498> (Seattle, WA)
>
> --
> You received this message because you are subscribed to the Google Groups
> "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to dspace-tech+unsubscr...@googlegroups.com.
> To post to this group, send email to dspace-tech@googlegroups.com.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop recei