Re: [Dspace-tech] disable-output-escaping collection titles

2015-08-04 Thread Nemiz, Elvi
Hi Terry,

Yes, it would be good to just edit the collection titles, if the
collections are few but this would be quite a tedious task if I have to
edit the titles manually. I don't know how to edit collection titles in
batch. In the future, I would advice the repository administrator/community
administrator to refrain from using html entities in collection titles
since these are escaped when crawled by search engines (which is an eye
sore).

Thanks for the time and sorry for the confusion about d-o-e
(disable-output-escaping).

Best regards,
euler

On Tue, Aug 4, 2015 at 12:15 AM, Terry Brady terry.br...@georgetown.edu
wrote:

 Euler, what is d-o-e?

 It seems to me that it would be good to replace the nbsp with a space in
 your collection titles.

 On Sat, Aug 1, 2015 at 7:36 AM, euler esne...@seafdec.org.ph wrote:

 Hi Terry,

 I just want to get rid of the string “nbsp;” in the collection titles and
 so
 far I'm not been able to apply d-o-e in all the places that it appeared
 using xsl:template match. I know it's risky but do you think it's better
 to
 just update this via sql query (ie remove the string “nbsp;”)?

 Thanks in advance and regards,
 euler


--
___
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] Question about search in DSpace 5.2

2015-08-04 Thread George Stanley Kozak
Bram:

Yes, that is exactly what I am seeing.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924

From: bluy...@gmail.com [mailto:bluy...@gmail.com] On Behalf Of Bram Luyten
Sent: Tuesday, August 04, 2015 8:35 AM
To: George Stanley Kozak g...@cornell.edu
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Question about search in DSpace 5.2

Hi George,

thanks for the report. Not a solution yet, but I was able to reproduce this on 
demo.dspace.orghttp://demo.dspace.org:
http://screencast.com/t/WavlwEPNt

Search  Advanced filters  Title Contains Test Word. And it still gives you 
Test Webpage as the first hit after applying the filter.

Is this the exact behaviour you wanted to report?

thanks,

Bram

--
[logo]

Bram Luyten
250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.comhttp://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml


On 30 July 2015 at 23:08, George Stanley Kozak 
g...@cornell.edumailto:g...@cornell.edu wrote:
Hi…

I am using DSpace 5.2 XMLUI (Mirage 2 theme - modified).


Some users have reported to me that search doesn't seem to respect quoted 
phrases, to mean an exact phrase search.



If you search on Cornell University within, say, title. You get a lot of 
titles without that exact phrase.



Is there a setting in one of the config files that is causing this, or is this 
being caused by something else?

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924





--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto: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 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] Question about search in DSpace 5.2

2015-08-04 Thread Bram Luyten
Hi George,

thanks for the report. Not a solution yet, but I was able to reproduce this
on demo.dspace.org:
http://screencast.com/t/WavlwEPNt

Search  Advanced filters  Title Contains Test Word. And it still gives
you Test Webpage as the first hit after applying the filter.

Is this the exact behaviour you wanted to report?

thanks,

Bram

-- 
[image: logo]
*Bram Luyten*
*250-B Suite 3A, Lucius Gordon Drive, West Henrietta, NY 14586*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com
http://atmire.com/website/?q=servicesutm_source=emailfooterutm_medium=emailutm_campaign=braml


On 30 July 2015 at 23:08, George Stanley Kozak g...@cornell.edu wrote:

 Hi…



 I am using DSpace 5.2 XMLUI (Mirage 2 theme - modified).



 Some users have reported to me that search doesn't seem to respect quoted
 phrases, to mean an exact phrase search.



 If you search on Cornell University within, say, title. You get a lot of
 titles without that exact phrase.



 Is there a setting in one of the config files that is causing this, or is
 this being caused by something else?



 George Kozak

 Digital Library Specialist

 Cornell University Library Information Technologies (CUL-IT)

 218 Olin Library

 Cornell University

 Ithaca, NY 14853

 607-255-8924








 --

 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette:
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
___
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] Anonymous READ Authorization policy on the bitstream can't be deleted.

2015-08-04 Thread Evans, Kevin
Hi

I'm currently having an issue with an item that needs to be embargoed (it is 
currently withdrawn). It is currently has an embargo of 'forever'.

The issue is when the item is reinstated, the embargo doesn't come into force. 
Looking further looks like there is an Anonymous READ Authorization policy on 
the bitstream (.pdf).

However, having tried repeatedly, I'm unable to delete the policy from the 
bitstream when editing the item. (the bitstream shows no policies - but later 
reappears!)

How can I get round this? Should I add another 'ADMIN' policy to the bitstream 
and then try to again delete the Anonymous READ policy?


Kind Regards

Kevin

Kevin Evans
Systems Developer,
Research  Collaborative Systems,
Enterprise Applications,
Room 919, 9th Floor, Laver Building,
University of Exeter,
Exeter,
Devon,
EX4 4QE
01392 725573

Embrace. Extend. Extinguish.


--
___
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] Nested Metadata

2015-08-04 Thread Peter Dietz
Thanks for all the responses, and insight thus far.

My thinking about the problem space of nested metadata, is that that is
trying to solve the problem of metadata about metadata about an item.
Item/1234 = Author = [Peter Dietz, Developer, Longsight, Brown eyes, ...]

What we've been doing is that all metadata objects are really of one type,
and thats text. We don't care what it is, we don't validate it, we just
store the text value of whatever you've given us. Some of the problems that
we run into is for date fields. They try to parse the text, and its not a
valid/parseable date. Date = Unknown, Date = 2015/04, Date = 1960's,
Date = 08/04/2015. We could/should validate things stored in the date-type
of metadata fields as ISO8601.

So, for storing other types of information. In the case of tying a metadata
field to be backed by some authority control system, we store a foreign key
/ reference, and then SOLR stores an encoding of the metadata we fetch from
the metadata service provider. In the case of the ORCID integration it can
grab:

givenNames,  familyName,  creditName,  otherNames, country, keyword,
external_identifier, researcher_url, biography

So we have a form of a schema for storing this object inside of a
metadata value. Our current metadata system is basically a key/value store.
key = metadata field (i.e. dc.title), and value is unspecified, but usually
just text. Could we validate that we have a type called
_nested_orcid_author, which has to be json, and only contain the above
fields? That looks like an object, an OrcidAuthor object. We'd need a
schema to enforce that. But then we're building tables and classes for that
field. Maybe some type of key/key/value store would be appropriate?
dc.author = {{ _nested_metadata_object }}

Then a NestedMetadataObject can have keys (metadata_field_id) , and values
(unspecified text).

So.
NestedMetadataValues nmValues = item.getMetadata('dc.author');
nmValue0 = nmValues[0];
nmValue0.getMetadata('dc.author.firstname') == Peter Dietz


That approach. Or is it best to stick with the authority framework. Build
some type of MetadataAuthorityProvider for each rich / nested metadata
object? But, if I need to have 10 fields that each need a metadata
authority backing store... And there is no Library of Congress metadata
service provider for each, do you need to construct your own metadata
silos? Could you build a single external metadata service provider system,
that could be integrated with DSpace, and be mapped to 10 different fields?
Author (firstname, lastname, institution), Review(# of stars, title,
description), Link(link name, url), ScientificClassification(Kingdom,
Phylum, Class, Order, Suborder, Family, Genus, Species), ...

For reference, I've stored some items with the value for author serialized
as JSON.
https://trydspace.longsight.com/handle/123456789/175
https://trydspace.longsight.com/rest/handle/123456789/175?expand=all
  metadata: [
{
  key: dc.contributor.author,
  value: {firstname:Mary Davis, lastname:MacNaughton, role:Editor},
  language: 
},
{
  key: dc.contributor.author,
  value: {firstname:Michael, lastname:Duncan, role:Contributor},
  language: 
},

http://dspace-rest-client-play.herokuapp.com/item/202
http://dspace-rails.herokuapp.com/item/202

Or, is flat metadata really best? Do you really need DSpace to store
metadata about metadata (i.e. Author.eye-color), or is storing Dietz,
Peter sufficient, or just our current limitation.



Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Thu, Jul 30, 2015 at 9:06 AM, Mark H. Wood mw...@iupui.edu wrote:

 On Wed, Jul 29, 2015 at 04:06:19PM -0400, Peter Dietz wrote:
  Has anyone stored nested / rich metadata in DSpace?
 
  An example I'm thinking of is for storing richer amounts of metadata for
 an
  object. For example:
 
 - Author
- first-name: Peter
- last-name: Dietz
- name-as-it-appears: Peter Dietz
- institution: Longsight
- date-of-birth: ...
- ...
 - Author
- first-name: Sam
- last-name: Ottenhoff
- ...
 
  The Authority Control system of DSpace looks like it approaches this, but
  the documentation isn't clear, and I'm not sure if it requires that your
  data values reside in some Library of Congress registry.

 You can create other authority providers.  (The documentation is
 indeed sketchy.  The code is in
 dspace-api:org.dspace.content.authority.  Sadly there is no
 package-level documentation to help us understand how the package is
 organized.)

  The hack-job I have in mind would be to serialize the information... to
  json... and then store that into a metadata field.
 
  So.
  schema.author.serialized = {first-name: Peter, last-name: Dietz,
  name-as-it-appears : Peter Dietz, institution: Longsight, ... }
 
  However, I'm tempted to think that DSpace should either have the ability
 to
  plug into any registry 

[Dspace-tech] Browse by Issue Date wont give any results

2015-08-04 Thread snemi

Hi,

i am using dspace-5.2 and most things work fine, beside some Browsing Issues:


When i Browse by Issue Date it shows me all items.
After (Choose year) or type in a year i get always zero results.
/xmlui/browse?type=dateissued

In opposite when i click on the sidebar Date Issued: I get the correct result.
/xmlui/discover?filtertype=dateIssuedfilter_relational_operator=equalsfilter=2012


In all types of Browse by i get weird behaviours:

When i enter first letters for Authors, Titles, Subjects it gives me  
results i cannot understand and totally wrong.



I searched the logs and cannot find errors, debug is enabled.

I tried:

dspace index-discovery -b
dspace index-discovery -o

Everythings seems fine.

When i rebuild dspace, all indexes Looks good!


As i am using xmlui-mirage2 i tested this in jspui and the same wrong  
results and missing functionality showed up.

discover seems to work
browse not


How is the way to get into it and find the problem ?


Best regards


SNEMI




--
___
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] Nested Metadata

2015-08-04 Thread Graham Triggs
Hi Peter,

I think you may not be too far off with that approach.

However, one key thing that gets missed - you provide an example where
dc.contributor.author that captures rich metadata. Which we shouldn't be
doing - dublin core is meant to be simple, and simple data is what we
should be capturing in the dc schema.

Now, we can register any other schemas we like, and the fields will store
strings opaquely. We can throw any format we want to define into there. For
instance, it's feasible to have a mods schema, and in it:

mods.titleinfo =
*titleInfo**title*At Gettysburg, or, What a Girl Saw and Heard of the
Battle: A True Narrative*/title*

*/titleInfo*
The problem then is that there isn't anything built in for handling the
display or data entry of that rich field definition, but then that would
basically be true of any arbitrary rich structure.

G


On 4 August 2015 at 14:53, Peter Dietz pe...@longsight.com wrote:

 Thanks for all the responses, and insight thus far.

 My thinking about the problem space of nested metadata, is that that is
 trying to solve the problem of metadata about metadata about an item.
 Item/1234 = Author = [Peter Dietz, Developer, Longsight, Brown eyes, ...]

 What we've been doing is that all metadata objects are really of one type,
 and thats text. We don't care what it is, we don't validate it, we just
 store the text value of whatever you've given us. Some of the problems that
 we run into is for date fields. They try to parse the text, and its not a
 valid/parseable date. Date = Unknown, Date = 2015/04, Date = 1960's,
 Date = 08/04/2015. We could/should validate things stored in the date-type
 of metadata fields as ISO8601.

 So, for storing other types of information. In the case of tying a
 metadata field to be backed by some authority control system, we store a
 foreign key / reference, and then SOLR stores an encoding of the metadata
 we fetch from the metadata service provider. In the case of the ORCID
 integration it can grab:

 givenNames,  familyName,  creditName,  otherNames, country, keyword,
 external_identifier, researcher_url, biography

 So we have a form of a schema for storing this object inside of a
 metadata value. Our current metadata system is basically a key/value store.
 key = metadata field (i.e. dc.title), and value is unspecified, but usually
 just text. Could we validate that we have a type called
 _nested_orcid_author, which has to be json, and only contain the above
 fields? That looks like an object, an OrcidAuthor object. We'd need a
 schema to enforce that. But then we're building tables and classes for that
 field. Maybe some type of key/key/value store would be appropriate?
 dc.author = {{ _nested_metadata_object }}

 Then a NestedMetadataObject can have keys (metadata_field_id) , and values
 (unspecified text).

 So.
 NestedMetadataValues nmValues = item.getMetadata('dc.author');
 nmValue0 = nmValues[0];
 nmValue0.getMetadata('dc.author.firstname') == Peter Dietz


 That approach. Or is it best to stick with the authority framework. Build
 some type of MetadataAuthorityProvider for each rich / nested metadata
 object? But, if I need to have 10 fields that each need a metadata
 authority backing store... And there is no Library of Congress metadata
 service provider for each, do you need to construct your own metadata
 silos? Could you build a single external metadata service provider system,
 that could be integrated with DSpace, and be mapped to 10 different fields?
 Author (firstname, lastname, institution), Review(# of stars, title,
 description), Link(link name, url), ScientificClassification(Kingdom,
 Phylum, Class, Order, Suborder, Family, Genus, Species), ...

 For reference, I've stored some items with the value for author serialized
 as JSON.
 https://trydspace.longsight.com/handle/123456789/175
 https://trydspace.longsight.com/rest/handle/123456789/175?expand=all
   metadata: [
 {
   key: dc.contributor.author,
   value: {firstname:Mary Davis, lastname:MacNaughton, role:Editor},
   language: 
 },
 {
   key: dc.contributor.author,
   value: {firstname:Michael, lastname:Duncan, role:Contributor},
   language: 
 },

 http://dspace-rest-client-play.herokuapp.com/item/202
 http://dspace-rails.herokuapp.com/item/202

 Or, is flat metadata really best? Do you really need DSpace to store
 metadata about metadata (i.e. Author.eye-color), or is storing Dietz,
 Peter sufficient, or just our current limitation.


 
 Peter Dietz
 Longsight
 www.longsight.com
 pe...@longsight.com
 p: 740-599-5005 x809

 On Thu, Jul 30, 2015 at 9:06 AM, Mark H. Wood mw...@iupui.edu wrote:

 On Wed, Jul 29, 2015 at 04:06:19PM -0400, Peter Dietz wrote:
  Has anyone stored nested / rich metadata in DSpace?
 
  An example I'm thinking of is for storing richer amounts of metadata
 for an
  object. For example:
 
 - Author
- first-name: Peter
- last-name: Dietz
- name-as-it-appears: 

Re: [Dspace-tech] ant update while Tomcat running

2015-08-04 Thread Alan Orth
For the record, I'm a bit superstitious about this. I'm using webapp
folders as opposed to WARs and I always stop Tomcat during `ant update`. :)

Alan

On Wed, Jul 29, 2015 at 11:17 PM, Brown, Jacob j.h.br...@tcu.edu wrote:

 In what situations, if ever, is it safe to run `ant update` while Tomcat
 is running?



 I’ve mapped my webapps for Tomcat using “Technique A” (defining a context
 that points to [dspace]/webapps/[app]).



 In a development environment, I’ve played around with running `ant update`
 while Tomcat is running. Most of the time, Tomcat seems to reload the web
 application appropriately and continues to serve requests. Occasionally I
 will get errors or a blank page after doing so, which continue until I
 restart Tomcat (which resolves the issue).



 Would using WARs make this safe? That is, if I added the “-Dwars=true”
 option to `ant update` and updated my Tomcat contexts to point to
 [dspace]/webapps/[app].war instead, would it be okay to update my webapps
 while Tomcat is running? Or is there other stuff going on in `ant update`
 that is potentially going to break Tomcat?



 Thanks,



 Jacob


 --

 ___
 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




-- 
Alan Orth
alan.o...@gmail.com
https://alaninkenya.org
https://mjanja.ch
In heaven all the interesting people are missing. -Friedrich Nietzsche
GPG public key ID: 0x8cb0d0acb5cd81ec209c6cdfbd1a0e09c2f836c0
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] What is the recommended way of backing up the solr index

2015-08-04 Thread Monika C. Mevenkamp
Specifically I am interested in backing up the statistics
I know an cp -r the directory - but is there a cleaner way ?

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544

--
___
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] Report of items including usage statistics

2015-08-04 Thread Anthony Petryk
Hello,

We're interested in creating a report (spreadsheet) of items, which includes 
basic metadata AND associated usage statistics.  For instance:


-  Title

-  Author

-  Abstract

-  Date Created

-  Owning Collection

-  Total Views (since accessioned)

-  Total Downloads (all bitstreams)

What's the best way to do this?

Best,

Anthony

--
___
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] help with dspace on windows

2015-08-04 Thread manindra
Hi,
I need a help from you...i think u can do this.

Im installing dspace on centOS ...everything went fine.
Java jdk, maven, ant, tomcat, postgresql...everthing installed successfully.
But when i open web browser and type the localhost address with port number
along with jspui.
i.e., http://192.168.108.31:8080/jspui 
Iam getting the following error. 
*HTTP Status 404 - /jspui

type Status report

message /jspui

description The requested resource is not available.
Apache Tomcat/8.0.24*

i have tried so many ways to rectify it though i dont have any idea on
dspace. Im totally new to this environment. i couldnt get the error solved.
could you please help me.
i can provide the supporting files neccessary if any changes u can do to
those.

Thank you in advance,
Manindra.



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Dspace-tech-help-with-dspace-on-windows-tp3286924p4679106.html
Sent from the DSpace - Tech mailing list archive at Nabble.com.

--
___
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] costumizar jspui

2015-08-04 Thread Tony Junior
fiz umas alterações no arquivo Messages.properties, (mudei o texto que
aparace na jspui) como faço para atualizar no Dspace estou usando a versão
5.2

-- 
*Tecnólogo em Sistemas para Internet*
*Coordenador de Sistema de Automação*
*Biblioteca  IFPI Campus Teresina Central*
--
___
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] Report of items including usage statistics

2015-08-04 Thread Monika C. Mevenkamp
We don’t have thumbnails so my live might be simpler than yours

We also decided that we are not particularly interested in item views but 
rather bitstream downloads. so in our case we can simply go for bitstream 
events, facet by bitstream ids and list according to counts to get the top 
popular bitstreams - of cause going from BITSTREAM id to item and metadata is 
the trick

I have jruby code that interacts with the DSPACE core objects. I use it for 
various purposes, e.g. create collections according to some template, create 
users and add to  groups, print reports on collections/communities hierarchy 
including authorization settings, use jruby's interactive console to poke 
around ...

One of the bigger scripts I wrote is a statistics script that reports on 
collection views, item views, as well as bitstream downloads in one or more 
community;  usually I do the top 20 or so, but the script can also dump all 
downloaded bitstreams. It produces a tab separated list which includes 
bitstream id, item name, enclosing collection and community handles, … It can 
be parameterized with time slots of interest.

Ruby might not be your thing - but if you want to have a look - see 
https://github.com/akinom/dscriptor/tree/master/statistics


Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544

On Aug 4, 2015, at 12:52 PM, Terry Brady 
terry.br...@georgetown.edumailto:terry.br...@georgetown.edu wrote:

Do you have a preferred technology stack for the solution?  I have some PHP 
code that may be useful.

The total views, total downloads, and owning collection id can be pulled from 
the solr statistics repository.

  *   Query solr for item views, facet by item id
  *   Query solr for bitstream downloads, facet by item id (do you want to 
include thumbnail views?)

The title, author, abstract, and date created are probably easiest to pull from 
the database.

Here are 2 approaches that would work.

1. Query the database for all items.  As you iterate over the SQL results, 
query SOLR for the view/download counts
2. Run the faceted SOLR queries by item number.  As you iterate over the 
XML/JSON results, query the database for supplemental metadata.

Terry

On Tue, Aug 4, 2015 at 8:29 AM, Anthony Petryk 
anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca wrote:
Hello,

We’re interested in creating a report (spreadsheet) of items, which includes 
basic metadata AND associated usage statistics.  For instance:


-  Title

-  Author

-  Abstract

-  Date Created

-  Owning Collection

-  Total Views (since accessioned)

-  Total Downloads (all bitstreams)

What’s the best way to do this?

Best,

Anthony


--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto: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 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] Report of items including usage statistics

2015-08-04 Thread Terry Brady
Do you have a preferred technology stack for the solution?  I have some PHP
code that may be useful.

The total views, total downloads, and owning collection id can be pulled
from the solr statistics repository.

   - Query solr for item views, facet by item id
   - Query solr for bitstream downloads, facet by item id (do you want to
   include thumbnail views?)

The title, author, abstract, and date created are probably easiest to pull
from the database.

Here are 2 approaches that would work.

1. Query the database for all items.  As you iterate over the SQL results,
query SOLR for the view/download counts
2. Run the faceted SOLR queries by item number.  As you iterate over the
XML/JSON results, query the database for supplemental metadata.

Terry

On Tue, Aug 4, 2015 at 8:29 AM, Anthony Petryk anthony.pet...@uottawa.ca
wrote:

 Hello,



 We’re interested in creating a report (spreadsheet) of items, which
 includes basic metadata AND associated usage statistics.  For instance:



 -  Title

 -  Author

 -  Abstract

 -  Date Created

 -  Owning Collection

 -  Total Views (since accessioned)

 -  Total Downloads (all bitstreams)



 What’s the best way to do this?



 Best,



 Anthony




 --

 ___
 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




-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] What is the recommended way of backing up the solr index

2015-08-04 Thread Peter Dietz
For SOLR backups that you can trust, you also have to stop tomcat before
you cp -R. While tomcat is running there are still some in-memory data
not yet flushed, and other lock files being held.


This prompted me to look up what SOLR recommends, and apparently there is a
SOLR Backup API.
https://cwiki.apache.org/confluence/display/solr/Making+and+Restoring+Backups+of+SolrCores

curl http://localhost:8983/solr/gettingstarted/replication?command=backup

Also, when SOLR 5 comes out, that lives outside of tomcat (its intending to
ship as a binary standalone application, similar to Elastic Search), this
process could also become different.


Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809

On Tue, Aug 4, 2015 at 11:17 AM, Monika C. Mevenkamp moni...@princeton.edu
wrote:

 Specifically I am interested in backing up the statistics
 I know an cp -r the directory - but is there a cleaner way ?

 Monika

 —
 Monika Mevenkamp
 Digital Repository Infrastructure Developer
 Phone: 609-258-4161
 333C 701 Carnegie, Princeton University, Princeton, NJ 08544



 --

 ___
 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 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] Report of items including usage statistics

2015-08-04 Thread Terry Brady
Anthony,

Check out the following code.  There might be some useful code to clone.

   - Statistics report tool (this code reports collection by collection):
   
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/stats/qcHierarchyStats.php
  - Populate a PHP array with the collection list using SQL:
  
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/community.php
  - Package a SOLR query with an ajax call:
  
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/stats/qcHierarchyStats.php#L41-L50


Here is a wiki page describing our statistics reports.

   -
   
https://github.com/Georgetown-University-Libraries/batch-tools/wiki/Statistics-reporting

Good luck,

Terry

On Tue, Aug 4, 2015 at 10:45 AM, Anthony Petryk anthony.pet...@uottawa.ca
wrote:

 Hi Terry,



 PHP works for me. :)



 Thanks for your overview of the 2 approaches.  The first one looks easier
 so I’ll try that one.



 Best,



 Anthony



 *From:* Terry Brady [mailto:terry.br...@georgetown.edu]
 *Sent:* Tuesday, August 04, 2015 12:52 PM
 *To:* Anthony Petryk anthony.pet...@uottawa.ca
 *Cc:* dspace-tech@lists.sourceforge.net
 *Subject:* Re: [Dspace-tech] Report of items including usage statistics



 Do you have a preferred technology stack for the solution?  I have some
 PHP code that may be useful.



 The total views, total downloads, and owning collection id can be pulled
 from the solr statistics repository.

- Query solr for item views, facet by item id
- Query solr for bitstream downloads, facet by item id (do you want to
include thumbnail views?)

 The title, author, abstract, and date created are probably easiest to pull
 from the database.



 Here are 2 approaches that would work.



 1. Query the database for all items.  As you iterate over the SQL results,
 query SOLR for the view/download counts

 2. Run the faceted SOLR queries by item number.  As you iterate over the
 XML/JSON results, query the database for supplemental metadata.



 Terry



 On Tue, Aug 4, 2015 at 8:29 AM, Anthony Petryk anthony.pet...@uottawa.ca
 wrote:

 Hello,



 We’re interested in creating a report (spreadsheet) of items, which
 includes basic metadata AND associated usage statistics.  For instance:



 -  Title

 -  Author

 -  Abstract

 -  Date Created

 -  Owning Collection

 -  Total Views (since accessioned)

 -  Total Downloads (all bitstreams)



 What’s the best way to do this?



 Best,



 Anthony





 --

 ___
 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





 --

 Terry Brady

 Applications Programmer Analyst

 Georgetown University Library Information Technology

 https://www.library.georgetown.edu/lit/code

 425-298-5498 (Seattle, WA)




-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
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] Report of items including usage statistics

2015-08-04 Thread Anthony Petryk
Hi Terry,

PHP works for me. :)

Thanks for your overview of the 2 approaches.  The first one looks easier so 
I’ll try that one.

Best,

Anthony

From: Terry Brady [mailto:terry.br...@georgetown.edu]
Sent: Tuesday, August 04, 2015 12:52 PM
To: Anthony Petryk anthony.pet...@uottawa.ca
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Report of items including usage statistics

Do you have a preferred technology stack for the solution?  I have some PHP 
code that may be useful.

The total views, total downloads, and owning collection id can be pulled from 
the solr statistics repository.

  *   Query solr for item views, facet by item id
  *   Query solr for bitstream downloads, facet by item id (do you want to 
include thumbnail views?)
The title, author, abstract, and date created are probably easiest to pull from 
the database.

Here are 2 approaches that would work.

1. Query the database for all items.  As you iterate over the SQL results, 
query SOLR for the view/download counts
2. Run the faceted SOLR queries by item number.  As you iterate over the 
XML/JSON results, query the database for supplemental metadata.

Terry

On Tue, Aug 4, 2015 at 8:29 AM, Anthony Petryk 
anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca wrote:
Hello,

We’re interested in creating a report (spreadsheet) of items, which includes 
basic metadata AND associated usage statistics.  For instance:


-  Title

-  Author

-  Abstract

-  Date Created

-  Owning Collection

-  Total Views (since accessioned)

-  Total Downloads (all bitstreams)

What’s the best way to do this?

Best,

Anthony


--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] What is the recommended way of backing up the solr index

2015-08-04 Thread Monika C. Mevenkamp
Peter

I saw that too
and tried it
and failed
and then I noticed that the page  said: This Unreleased Guide Will Cover Apache 
Solr 5.3

I am running  an old DSPACE 1.8 - not even sure what version solr that is
But DSPACE 5 solr says in its UI solr-spec 4.10.2

So I suppose there is something to look forward to

But - in the meantime ?

Monika


—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544

On Aug 4, 2015, at 12:52 PM, Peter Dietz 
pe...@longsight.commailto:pe...@longsight.com wrote:

For SOLR backups that you can trust, you also have to stop tomcat before you 
cp -R. While tomcat is running there are still some in-memory data not yet 
flushed, and other lock files being held.


This prompted me to look up what SOLR recommends, and apparently there is a 
SOLR Backup API.
https://cwiki.apache.org/confluence/display/solr/Making+and+Restoring+Backups+of+SolrCores

curl http://localhost:8983/solr/gettingstarted/replication?command=backup


Also, when SOLR 5 comes out, that lives outside of tomcat (its intending to 
ship as a binary standalone application, similar to Elastic Search), this 
process could also become different.


Peter Dietz
Longsight
www.longsight.comhttp://www.longsight.com/
pe...@longsight.commailto:pe...@longsight.com
p: 740-599-5005 x809

On Tue, Aug 4, 2015 at 11:17 AM, Monika C. Mevenkamp 
moni...@princeton.edumailto:moni...@princeton.edu wrote:
Specifically I am interested in backing up the statistics
I know an cp -r the directory - but is there a cleaner way ?

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161tel:609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544


--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto: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 mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] What is the recommended way of backing up the solr index

2015-08-04 Thread Tim Donohue

Hi Monika,

As of DSpace 5.2 (or above), there's new tools to backup/restore Solr 
Statistics:


[dspace]/bin/dspace solr-export-statistics
[dspace]/bin/dspace solr-import-statistics

There's also a new solr-reindex-statistics command which performs a 
full export followed by a re-import in order to reindex your Solr 
Statistics.


More details at: 
https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics+Maintenance#SOLRStatisticsMaintenance-ExportSOLRstatistics,forbackupandmovingtoanotherserver


- Tim

On 8/4/2015 10:17 AM, Monika C. Mevenkamp wrote:

Specifically I am interested in backing up the statistics
I know an cp -r the directory - but is there a cleaner way ?

Monika

—
Monika Mevenkamp
Digital Repository Infrastructure Developer
Phone: 609-258-4161
333C 701 Carnegie, Princeton University, Princeton, NJ 08544



--


___
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 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] Report of items including usage statistics

2015-08-04 Thread Anthony Petryk
Thanks very much, Terry.

Anthony

From: Terry Brady [mailto:terry.br...@georgetown.edu]
Sent: Tuesday, August 04, 2015 2:09 PM
To: Anthony Petryk anthony.pet...@uottawa.ca
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Report of items including usage statistics

Anthony,

Check out the following code.  There might be some useful code to clone.

  *   Statistics report tool (this code reports collection by collection): 
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/stats/qcHierarchyStats.php

 *   Populate a PHP array with the collection list using SQL: 
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/community.php
 *   Package a SOLR query with an ajax call: 
https://github.com/Georgetown-University-Libraries/batch-tools/blob/master/web/stats/qcHierarchyStats.php#L41-L50

Here is a wiki page describing our statistics reports.

  *   
https://github.com/Georgetown-University-Libraries/batch-tools/wiki/Statistics-reporting
Good luck,

Terry

On Tue, Aug 4, 2015 at 10:45 AM, Anthony Petryk 
anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca wrote:
Hi Terry,

PHP works for me. :)

Thanks for your overview of the 2 approaches.  The first one looks easier so 
I’ll try that one.

Best,

Anthony

From: Terry Brady 
[mailto:terry.br...@georgetown.edumailto:terry.br...@georgetown.edu]
Sent: Tuesday, August 04, 2015 12:52 PM
To: Anthony Petryk anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca
Cc: dspace-tech@lists.sourceforge.netmailto:dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Report of items including usage statistics

Do you have a preferred technology stack for the solution?  I have some PHP 
code that may be useful.

The total views, total downloads, and owning collection id can be pulled from 
the solr statistics repository.

  *   Query solr for item views, facet by item id
  *   Query solr for bitstream downloads, facet by item id (do you want to 
include thumbnail views?)
The title, author, abstract, and date created are probably easiest to pull from 
the database.

Here are 2 approaches that would work.

1. Query the database for all items.  As you iterate over the SQL results, 
query SOLR for the view/download counts
2. Run the faceted SOLR queries by item number.  As you iterate over the 
XML/JSON results, query the database for supplemental metadata.

Terry

On Tue, Aug 4, 2015 at 8:29 AM, Anthony Petryk 
anthony.pet...@uottawa.camailto:anthony.pet...@uottawa.ca wrote:
Hello,

We’re interested in creating a report (spreadsheet) of items, which includes 
basic metadata AND associated usage statistics.  For instance:


-  Title

-  Author

-  Abstract

-  Date Created

-  Owning Collection

-  Total Views (since accessioned)

-  Total Downloads (all bitstreams)

What’s the best way to do this?

Best,

Anthony


--

___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498tel:425-298-5498 (Seattle, WA)



--
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498 (Seattle, WA)
--
___
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] Setting up OAI-PMH and getting error 500 exception can not sort on multivalued field: item.id

2015-08-04 Thread Abrams, David
Hello-

This is my dspace version:

DSpace version:  5.1
  SCM revision:  ${buildNumber}
SCM branch:  UNKNOWN_BRANCH
OS:  Linux(amd64) version 2.6.18-402.el5
  Applications:
RDF at http://testlibarch1:8080/xmlui
JSPUI at http://testlibarch1:8080/xmlui
XMLUI at http://testlibarch1:8080/xmlui
OAI at http://testlibarch1:8080/xmlui
 Discovery:  enabled.
   JRE:  Oracle Corporation version 1.8.0_40
   Ant version:  Apache Ant version 1.8.0 compiled on February 1 2010
Maven version:  3.0.5
   DSpace home:  /dspace

I'm setting up a test server to test calling collections and community metadata 
from omeka. I'm getting stuck on it not liking values in the schema.xml. I'm 
not quite sure what I'm missing here. If someone can help point me in the right 
direction It would be appreciated. I have the local access logs attached 
because that is where this error is being sent.

David Abrams | Systems Engineer

American Public University System
American Military University  |  American Public University
661 S George Street, Charles Town, WV 25414
 M 703-399-4518 |  dabr...@apus.edumailto:dabr...@apus.edu| www.apus.edu

This message is private and confidential. If you have received it in error, 
please notify the sender and remove it from your system.
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at 
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at 
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at 
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

Aug 04, 2015 2:50:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [oai] in context with path [/oai] threw 
exception [Request processing failed; nested exception is 
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: can not 
sort on multivalued field: item.id] with root cause
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: can not 
sort on multivalued field: item.id
at 
org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:552)
at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
at 
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
at 
org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
at org.dspace.xoai.solr.DSpaceSolrSearch.query(DSpaceSolrSearch.java:33)
at 
org.dspace.xoai.services.impl.xoai.DSpaceItemSolrRepository.retrieveItems(DSpaceItemSolrRepository.java:117)
at 
org.dspace.xoai.services.impl.xoai.DSpaceItemSolrRepository.getItemIdentifiers(DSpaceItemSolrRepository.java:78)
at 
org.dspace.xoai.services.impl.xoai.DSpaceItemRepository.getItemIdentifiers(DSpaceItemRepository.java:54)
at 
com.lyncode.xoai.dataprovider.data.internal.ItemRepositoryHelper.getItemIdentifiers(ItemRepositoryHelper.java:127)
at 
com.lyncode.xoai.dataprovider.handlers.ListIdentifiersHandler.handle(ListIdentifiersHandler.java:92)
at 
com.lyncode.xoai.dataprovider.OAIDataProvider.handle(OAIDataProvider.java:210)
at 
org.dspace.xoai.controller.DSpaceOAIDataProvider.contextAction(DSpaceOAIDataProvider.java:104)
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at 
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:213)
at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
at 
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
at 

Re: [Dspace-tech] tomcat bound to port 80

2015-08-04 Thread Yongming Wang
Hi Graham,

Thanks very much for your advice, especially on the security front. I don't 
have any experience with the Apache HTTPd with mod_proxy / mod_jk. I don't want 
to bother the college IT department again. So I'll stay with the current 
solution they provide, the jsvc.

Thanks again.



Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

- Original Message -
From: Graham Triggs grahamtri...@gmail.com
To: Yongming Wang wan...@tcnj.edu
Cc: dspace-tech@lists.sourceforge.net
Sent: Monday, August 3, 2015 4:53:35 PM
Subject: Re: [Dspace-tech] tomcat bound to port 80

Hi,

The error that you have received is because the main DSpace application
can't communicate with the secondary Solr application - which by default it
expects to be in the same Tomcat, and on the default port of 8080.

Note that the circumstances of this error point to a very good reason why
you should NOT relocate the Tomcat port.

By putting the main Tomcat connector on port 80, you are - by default -
exposing(*) all of the applications hosted in that Tomcat to the internet.
This includes the internal support applications like Solr, which may be a
security risk.

(* this may very depending on other firewalls that you may be running).

If you instead use something like Apache HTTPd with mod_proxy / mod_jk, you
can be more explicit about what applications you mount through HTTPd,
limiting what is exposed to potential attacks. Also, it gives you a place
to more easily add other security modules / features.

Plus, if it is ever necessary, it gives you a means to disable general
access to the underlying application, whilst you still have direct access
to the Tomcat application.

Regards,
Graham

On 3 August 2015 at 16:09, Yongming Wang wan...@tcnj.edu wrote:

 Hi,

 I'm new to DSpace. My situation is: DSpace 5.2 on RH Enterprise Linux 7,
 using jspui.

 I'm trying to change the default tomcat port 8080 to 80. I searched the
 Internet and dspace mailing-list and decided to use the following method:

 Step one: modify [tomcat]/conf/server.xml, change connector port from 8080
 to 80
 Step two: install the AUTOBIND package. But instead my school IT
 department installed something called jsvc which they told me is newer
 and better than AUTHBIND.

 Now I got some internal error message when trying to access the
 application homepage at port 80. I'll paste it below.

 Does anyone have any suggestions and insight to this issue?

 Or in general, how do you change the 8080 port to 80 so user won't need to
 type 8080 to access the application? What is the simplest way?



 Thanks very much in advance!



 Yongming

 -
 Yongming Wang
 Systems Librarian
 The College of New Jersey Library
 phone: 609-771-3337
 email: wan...@tcnj.edu
 -

 exception stack:

 -- URL Was: http://xx.tcnj.edu/jspui/internal-error
 -- Method: GET
 -- Parameters were:


 Exception:
 org.apache.jasper.JasperException: javax.servlet.ServletException:
 org.dspace.plugin.PluginException:
 org.dspace.app.webui.components.RecentSubmissionsException:
 org.dspace.browse.BrowseException:
 org.dspace.discovery.SearchServiceException: Server refused connection at:
 http://localhost:8080/solr/search
 at
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
 at
 

Re: [Dspace-tech] tomcat bound to port 80

2015-08-04 Thread Yongming Wang
Hi Mark,

You are right. I searched through the system and changed all 8080 to 80. It's 
working now!

Thank you so much for your help!
 


Yongming

-
Yongming Wang
Systems Librarian
The College of New Jersey Library
phone: 609-771-3337
email: wan...@tcnj.edu
-

- Original Message -
From: Mark H. Wood mw...@iupui.edu
To: dspace-tech@lists.sourceforge.net
Sent: Monday, August 3, 2015 4:23:24 PM
Subject: Re: [Dspace-tech] tomcat bound to port 80

On Mon, Aug 03, 2015 at 11:09:49AM -0400, Yongming Wang wrote:
 I'm new to DSpace. My situation is: DSpace 5.2 on RH Enterprise Linux 7, 
 using jspui.
 
 I'm trying to change the default tomcat port 8080 to 80. I searched the 
 Internet and dspace mailing-list and decided to use the following method:
 
 Step one: modify [tomcat]/conf/server.xml, change connector port from 8080 to 
 80
 Step two: install the AUTOBIND package. But instead my school IT department 
 installed something called jsvc which they told me is newer and better than 
 AUTHBIND.

jsvc is what I would choose.  It is used to start Java-based processes
in a similar fashion to traditional Unix daemons:  begin as root, open
access to privileged resources (such as low-numbered ports), then
setuid() to a nonprivileged user and begin service.  Tomcat is one
Java application which is designed to be used this way.

 Now I got some internal error message when trying to access the application 
 homepage at port 80. I'll paste it below.
 
 Does anyone have any suggestions and insight to this issue? 

See below.  Your DSpace configuration still contains some references
to port 8080.  I would check:

o  search.server in config/modules/discovery.cfg

o  server in config/modules/solr-statistics.cfg

o  solr.url in config/modules/oai.cfg

 Or in general, how do you change the 8080 port to 80 so user won't need to 
 type 8080 to access the application? What is the simplest way?

Probably the way you are doing it.  It is made less simple because
there are three URLs in build.properties which, as delivered, select
port 8080 and these are copied into various other configuration files
as part of the installation process.  If you start with dspace.url,
dspace.baseUrl, and solr.server all set to port 80 and then build
DSpace (mvn clean install) then you should wind up with an
installation package that will use port 80 throughout.  If you built
your DSpace for port 8080 and then changed the built configuration,
you have to find all of the places where these build.properties values
are used and change them accordingly.

 Thanks very much in advance!
 
 
 
 Yongming
 
 -
 Yongming Wang
 Systems Librarian
 The College of New Jersey Library
 phone: 609-771-3337
 email: wan...@tcnj.edu
 -
 
 exception stack:
 
 -- URL Was: http://xx.tcnj.edu/jspui/internal-error
 -- Method: GET
 -- Parameters were:
 
 
 Exception:
 org.apache.jasper.JasperException: javax.servlet.ServletException: 
 org.dspace.plugin.PluginException: 
 org.dspace.app.webui.components.RecentSubmissionsException: 
 org.dspace.browse.BrowseException: 
 org.dspace.discovery.SearchServiceException: Server refused connection at: 
 http://localhost:8080/solr/search
   
DSpace made an internal reference to port 8080 here.

 at 
 org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:549)
 at 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
 at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at 
 org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at 
 org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
 at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
 at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
 at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
 at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
 at