Re: [Dspace-tech] Add Browse by Department to DSpace 5.2

2015-08-27 Thread Monika C. Mevenkamp
Layale,

what version of DSPACE do you have and which interface are you using JSPUI or 
XMUI ?

Monika

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

On Aug 27, 2015, at 4:40 AM, Layale Bassil 
mailto:l...@aub.edu.lb>> wrote:

Hello,

I would like to add  a Browse by Department option to the Browse section in 
DSpace. The list now has issue date, authors, subject, and title.

Which file should I edit?

Thanks.
--
___
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] REST API: collection administrators and submitters

2015-08-26 Thread Monika C. Mevenkamp
I have a script that creates a collection templating the new collection after 
another collection
I do this in jruby. If you are interested have a look at 
https://github.com/akinom/dscriptor
See the way I use it at 
https://github.com/akinom/dscriptor/blob/master/utils/pulibs.rb
The stuff is not very well documented - but if you are interested just ask away

Monika


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

On Aug 26, 2015, at 3:41 PM, Mark H. Wood 
mailto:mw...@iupui.edu>> wrote:

On Wed, Aug 26, 2015 at 02:27:02PM -0400, Elias Tzoc wrote:
We’re testing a basic REST API script for creating collections for new users, 
and it’s partially working.  We can create collections but we’re not sure how 
to add (new) e-persons to recently created collections, the e-person should be 
an administrator and submitter for his/her collection.

We’ve checked these pages, but we cannot seem to find an example for adding 
administrators or submitters
https://wiki.duraspace.org/display/DSDOC5x/REST+API 

https://github.com/DSpace/DSpace/tree/master/dspace-rest 


I haven't tried to do that, but I can say that an EPerson is not added
to a Collection but to one of several EPersonGroups associated with
the collection.  I think that's not supported yet.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
--
___
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] Hibernate

2015-08-24 Thread Monika C. Mevenkamp
I have a 2006 copy of
[http://www.manning.com/peak/peak_cover150.jpg]
Hibernate Quickly

Patrick Peak and Nick Heudecker













since the committers will do the heavy lifting of mapping the current DB 
structure to hibernate, I am mainly interested in getting a good foundation in 
hibernate style querying

did the query interface stay stable  or should I trash this book ?

yes - yes - I know I can go online and yes a good link would be helpful - but 
for some things I prefer to start out with a book - but i don’t want to waste 
my time on a prehistoric API

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

Re: [Dspace-tech] Dspace 5.2 community creation difficulty

2015-08-24 Thread Monika C. Mevenkamp
It is hard to tell what is going on without relevant portion of the log file
Can you try again please and send the trace in the log file

Monika


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

On Aug 22, 2015, at 12:26 PM, Vijendra Kumar 
mailto:vkuma...@vmou.ac.in>> wrote:


Dear all,
Today, I have installed Dspace 5.2 in Windows 7 os successfully.
But now I am facing a problem regarding sub community creation.
I created a top level communitythen I try to create a sub community and 
collection... but there are a error... internal server ...
Kindly give solution for this problem...
and tell me how to do create sub community and collections...

Many thanks

Regards,

Vijendra Kumar


VARDHMAN MAHAVEER OPEN UNIVERSITY
Rawatbhata Road
Kota-324021 (Rajasthan)
INDIA
TOLL FREE : 1800-180-6166
Youtube | Facebook 
  | Twitter

VMOU Internet Radio : Listen on Winamp/VLC/Media 
Player

"Print this mail only if absolutely necessary. Save Paper. Save Trees."
--
___
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] JSPUI 5 - impersonating another user

2015-08-13 Thread Monika C. Mevenkamp
Can I, while logged in as an administrator, impersonate another user ?

If so - how do I do that ?

Is there a way to see the workflow/tasks on another users ‘My DSpace’ page ?


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

Re: [Dspace-tech] Import data from DSpace 5.2 to Drupal 7

2015-08-12 Thread Monika C. Mevenkamp
tere is a dspace drupal module
https://www.drupal.org/project/dspace
which my ‘sister’ group uses to show collection data from our dataspace instance

Monika


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

On Aug 12, 2015, at 7:24 AM, Layale Bassil 
mailto:l...@aub.edu.lb>> wrote:

Hello All,

I need to import data from my installed DSpace 5.2 into Drupal 7. Anyone 
familiar with this? What tool needs to be used to accomplish this?

Many thanks,
Regards.
--
___
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] [Dspace-devel] PLEASE VOTE on whether to include "Services API" refactoring in DSpace 6.0

2015-08-06 Thread Monika C. Mevenkamp
the proposal makes good sense
and I will be happy not doing straight SQL any more

+1

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

On Aug 6, 2015, at 12:45 PM, Peter Dietz 
mailto:pe...@longsight.com>> wrote:

I am happy to have an ORM added. I'm not really a fan of adding DAO, 
Service, ServiceImpl for each class, it feels verbose, but I 
guess it separates concerns. My coworkers' experience with Hibernate is that it 
does 90% of things well, but the remaining 10% is a major pain. Code where you 
thought you were making 1 query turns into thousands of queries. I'd like to 
see some performance comparisons between our native SQL, and hibernate's 
execution plan. Hibernate's caching and lazy-loading sound like improvements 
though.

I'm supportive, I'll dig in, to see if I find any deal breakers.


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

On Thu, Aug 6, 2015 at 11:20 AM, Bram Luyten 
mailto:b...@atmire.com>> wrote:
+1

Bram

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

On 6 August 2015 at 16:50, Tim Donohue 
mailto:tdono...@duraspace.org>> wrote:
I vote +1

- Tim


On 8/6/2015 9:47 AM, Tim Donohue wrote:
Hi Developers / Committers,

As mentioned in yesterday's developers meeting, I'm calling a public VOTE 
around whether we include the Services API refactoring in the upcoming DSpace 
6.0 release.  As this change constitutes a major code refactor of the 
"dspace-api" (DSpace Java API), we'd appreciate feedback from anyone on this 
direction for 6.0.  (If you have not yet read about the Services API 
refactoring, a brief summary and links to more information is provided at the 
end of this email)

Please VOTE with one of these three options:
+1 = "I agree. We should include Services API refactoring in 6.0"
 0  = "I'm undecided / unsure" (Please provide a reason)
-1  = "I disagree. The Services API refactoring should NOT be included in 6.0"  
(Please provide a reason why you disagree)
Per our Voting Procedures [1], a vote on code modifications requires: "at least 
three positive (+1) votes, and no negative votes (-1) to pass. In this 
scenario, a negative vote constitutes a 'veto'."  While anyone is welcome to 
vote, only Committers have "binding" votes (and can cast a veto).  Others are 
free to vote to express your opinion, but those votes are considered advisory 
in nature.

This public vote will be open until 15:00 UTC (11:00am EDT) on Wednesday, 
August 12 (which is the time of our next Developer Meeting).

If there are any questions, feel free to ask them on this thread.


Summary of Services API refactoring

The Services API refactoring is a major refactoring of the "dspace-api" 
(DSpace's Java API) to better support "separation of 
concerns/responsibilities". Simply put, often, in the existing API, there is an 
intermingling of business logic and database logic which is difficult to 
maintain, debug and/or build against. One of the most obvious examples is how 
we deal with database software support (PostgreSQL vs. Oracle), but such 
intermingling of logic exists in many of our core classes. The DSpace "Services 
API" attempts to tease apart the database logic from the business logic into 
separate layers, while also adding support for Hibernate 
(http://hibernate.org).  The goal is to provide an 
easier to maintain, more modular API, while also enhancing how we deal with 
database logic in general (via Hibernate).

Much more information with documentation, tutorials/examples, and a video 
presentation at: 
https://wiki.duraspace.org/display/DSPACE/DSpace+Service+based+api

What does adding this refactor to 6.0 mean?

  *   This is essentially a *new* Java API for DSpace.  But, it performs a very 
important refactor (see "Pros" below).
  *   It is not backwards compatible with the existing API.  All developers and 
Committers who work with the Java API will need to learn this new API, as all 
future development will require using this Java API.
 *   Committers will be expected to learn, use and support this API 
immediately.  @mire will be providing additional training materials / examples 
to help everyone get up to speed.
 *   We also will need immediate help from Committers (or other volunteers) 
to refactor and test all other modules within DSpace.  Currently, only the 
XMLUI has been refactored to support this new API. All other modules (JSPUI, 
OAI, REST, RDF, SWORD, etc) will need similar refactoring as soon as possible.
  *   If this refactor is voted in, Committers will immediately do the 
following:
 *   The "master" branch will be temporarily frozen. 

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 
mailto: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 
mailto: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

--
___
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 
mailto: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.com<http://www.longsight.com/>
pe...@longsight.com<mailto:pe...@longsight.com>
p: 740-599-5005 x809

On Tue, Aug 4, 2015 at 11:17 AM, Monika C. Mevenkamp 
mailto: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<mailto: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] 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

Re: [Dspace-tech] Generic DSpace servlet/webapp utilities?

2015-08-03 Thread Monika C. Mevenkamp
Peter

Disco ?
Rails in front of REST ?
What can it do ?
Where can I see it ?


I agree - a UI in front of rest will enforce at least some code layering  -
although it is not a full solution to avoiding code replication for higher 
level operations, aka controllers / business logic / workflow ...

Monika

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

On Aug 3, 2015, at 2:03 PM, Peter Dietz 
mailto:pe...@longsight.com>> wrote:

My first thought nowadays when I hear "generic", is REST. Otherwise, any *.util 
classes will need to deployed by some webapp. Independent of XMLUI/JSPUI. 
Not-A-UI? To actually accomplish REST-ification, would we make XMLUI/JSPUI 
depend on REST to accomplish some things? Such as recent submissions to a 
collection, that data comes from rest?

/rest/collections/:id?expand=all will give you data of recent items. Probably 
not all the metadata (or bitstreams) to display that, and the thumbnails 
though. But... If that was needed, then REST could be altered to support that.
https://trydspace.longsight.com/rest/collections/18?expand=all

Disco is pretty cool. It looks nice, its very clean, and IT WORKS. After 
starting the container, the instructions could mention browsing to 
http://localhost:3000.

I did run into a browse bug.
Home - Refine Search Author (pick one) - Sort By Date (no results show)...


There is a ton of overlap between duplicated codes in the UI's. Sometimes it is 
identical blocks (an automated code smell detector might be able to find this), 
or sometimes a block might differ with one line, so it ends up being a method 
in JSPUI, and a method in XMLUI. I think we had been calling this general idea 
of cleaning things, adding a "business services" layer.

The direction that we want to steer DSpace is to refactor this common code out 
of the UI's, and make it reusably usable from dspace-api. Exposing it as a 
servlet, not sure. But we would want to simplify the code base, and build 
better, more capable user experiences. So, prototypes such as yours are perfect 
to toss into the ring too. Its not decided as to what the better route would be 
(webapp built in DSpace, or external webapp that talks to DSpace), but the 
concept of a "turnkey" DSpace that just works with a consistent experience has 
been DSpace's strength for a while. If you run into any shortcomings with what 
DSpace exposes, you might be able to add a PR to have some common DSpace method 
providing the functionality, without depending on org.dspace.app.xmlui or 
org.dspace.app.webui (JSPUI). But, perhaps one type of place that might be a 
more proper place to look would be org.dspace.content.service.ItemService...


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

On Mon, Aug 3, 2015 at 11:21 AM, Brown, Jacob 
mailto:j.h.br...@tcu.edu>> wrote:
Hi all,

I’m working (slowly) on a simple alternate web frontend for DSpace: 
https://github.com/kardeiz/disco.*

I was thinking that it would be nice if DSpace provided some 
implementation-agnostic utilities for a generic HttpServlet context.

For example, XMLUI and JSPUI provide their own wrappers for things like 
browsing, searching, recent submissions, etc., but in many cases the code used 
is very similar and not dependent on the specific framework. It would be 
possible to abstract out a lot of the functionality of these wrappers into 
utility methods that have signatures like `HttpServletRequest req, 
HttpServletResponse resp`.

As a specific example, consider 
RecentSubmissionUtils.
 There is no reason this class has to be XMLUI specific; if it was in some 
shared package, JSPUI or any other framework could just use it directly to 
generate a list of recent submissions for a community or collection.

There are already a couple of servlet-related utilities in dspace-api at 
org.dspace.app.util.Util.

I don’t know if anything like this has ever been discussed, or if there are 
reasons it wouldn’t work. I know it would require a lot of collaboration 
between JSPUI and XMLUI developers. I guess this is something that should go on 
a DSpace “wishlist”; I apologize if this isn’t the correct place for that—

Thanks,

Jacob Brown


* In case anyone wants more information: this application is written in Scala 
and uses:


• the DSpace API (5.x) for working with a local DSpace repository

• Jersey for request routing (and not much else)

• Twirl for HTML templating

• xsbt-web-plugin for running in development and WAR packaging

• Bower and Gulp for frontend asset management

In a little over 700 lines of Scala and a handful of HTML templates, this 
a

Re: [Dspace-tech] Permisssions

2015-08-03 Thread Monika C. Mevenkamp
Yes

see 
https://wiki.duraspace.org/display/DSDOC6x/Functional+Overview

define the policies


DEFAULT_ITEM_READ

DEFAULT_BITSTREAM_READ

for your collection so that DEFAULT_ITEM_READ is allowed for the group you want 
to see the metadata and DEFAULT_BITSTREAM_READ   fro the more restricted group 
- eg Admins

Monika


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

On Aug 3, 2015, at 10:20 AM, Fernando Casas Osorio 
mailto:ferca...@hotmail.com>> wrote:

Regards,

Is possible that I assign permissions to a collection for a group can see an 
item, but not download files of this item?

Thanks for your help.

Fernando Casas Osorio
--
___
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] Vagrant or Docker

2015-07-16 Thread Monika C. Mevenkamp
A belated thank you for all the docker and vagrant answers
Very helpful - Very interesting

Monika


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


--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

Re: [Dspace-tech] Solr querying - any dspace-specific comprehensive documentation/tutorials?

2015-07-14 Thread Monika C. Mevenkamp
Gary

I finally gave in and read parts of  
https://www.packtpub.com/apache-solr-beginners-guide/book. I discovered this in 
our library’s digital section. Its full of examples and a fairly quick read. 
While I can’t claim to have compared books and that this is the best book 
around, I can say that I ended up with a good enough understanding to do basic 
queries.

Monika

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

On Jul 14, 2015, at 3:47 AM, 
alastair.dun...@stfc.ac.uk<mailto:alastair.dun...@stfc.ac.uk> wrote:

Have a look at the schemas for the fields that are indexed. They are available 
for each of the cores eg.

http://:/solr/#/statistics<http://%3chostname%3e:%3cport%3e/solr/#/statistics>

selecting a field will give you the details of the field, its type etc.

http://:/solr/#/statistics/schema-browser?field=isBot<http://%3chostname%3e:%3cport%3e/solr/#/statistics/schema-browser?field=isBot>

By clicking “Load term info” you can see the values and distribution that are 
currently in the solr index for that field

You can view the schema if you like looking at xml ;-)

http://:/solr/#/statistics/files?file=schema.xml<http://%3chostname%3e:%3cport%3e/solr/#/statistics/files?file=schema.xml>

Alastair


From: Gary Browne [mailto:gary.bro...@sydney.edu.au]
Sent: 13 July 2015 23:55
To: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: [Dspace-tech] Solr querying - any dspace-specific comprehensive 
documentation/tutorials?

--- just resending this with a more appropriate subject line ---
Thanks Monika,

I can see what this particular query is doing, however I'm wondering if you 
know of any resources for someone like me who is just starting out with solr 
queries - especially with reference to DSpace. I know the wiki has some 
examples but I thought there'd be some comprehensive documentation...somewhere?

For example, how do you know what the allowable values are for facet.field (and 
where can these be configured, and how do you configure them)? The same with 
"type" etc. And how do you know what the parameter names actually are (isBot, 
owningComm etc)?

Any clues would be very much appreciated.

Thanks again,
Gary

Gary Browne | Technical Manager Developments
University of Sydney Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03 | The University of Sydney | NSW | 2006
T +61 2 9351 5946 | M +61 405 647 868
E gary.bro...@sydney.edu.au<mailto:gary.bro...@sydney.edu.au>
On 03/07/15 00:14, Monika C. Mevenkamp wrote:
use the fq parameter to restrict to a time range

eg   fq=time:[2015-01-01T00%3A00%3A00.000Z+TO+NOW]

the query below looks at ORIGINAL  bitstreams in a give collection downloaded 
at least once
excluding bot queries as well as query from the given ips and downloads from 
users that were logged in


http://localhost:18082/solr/statistics/select?wt=json&indent=true&rows=0&facet=true&facet.mincount=1&facet.field=id&fq=time:[2015-01-01T00%3A00%3A00.000Z+TO+NOW]&q=NOT+epersonid%3A%5B%22%22+TO+*%5D+isBot:false+owningComm:67+type:0+bundleName:ORIGINAL+-ip:%2810.6.61.26+OR+128.112.66.66%29<http://localhost:18082/solr/statistics/select?wt=json&indent=true&rows=0&facet=true&facet.mincount=1&facet.field=id&fq=time:%5b2015-01-01T00%3A00%3A00.000Z+TO+NOW%5d&q=NOT+epersonid%3A%5B%22%22+TO+*%5D+isBot:false+owningComm:67+type:0+bundleName:ORIGINAL+-ip:%2810.6.61.26+OR+128.112.66.66%29>

the response header


responseHeader":{

"status":0,

"QTime":1857,

"params":{

  "facet":"true",

  "facet.mincount":"1",

  "indent":"true",

  "q":"NOT epersonid:[\"\" TO *] isBot:false owningComm:67 type:0 
bundleName:ORIGINAL -ip:(10.6.61.26 OR 128.112.66.66)",

  "facet.field":"id",

  "wt":"json",

  "fq":"time:[2015-01-01T00:00:00.000Z TO NOW]",

  "rows":"0"}},

  "response":{"numFound":205152,"start":0,"docs":[]

  },


I wrote a jruby script to do stats for a particular community - if you are 
interested 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 Jul 2, 2015, at 2:10 AM, Gary Browne 
mailto:gary.bro...@sydney.edu.au>> wrote:

Hi all,

I'm trying to figure out how to limit solr queries by date. I found this 
snippet online:

http://mydspace.org/solr/statistics/select?bundleName:ORIGINAL&facet.date.start=NOW/MONTH/DAY-6MONTHS&facet.date.end=NOW&facet.date.gap=1MONTH+AND+t

[Dspace-tech] bundle.isEmbargoed

2015-07-07 Thread Monika C. Mevenkamp
There used to be a method in Bundle (v1.8)  that determined whether it is 
embargoed
Where is the replacement ?

Monika

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

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

Re: [Dspace-tech] Solr stats queries - limiting by date

2015-07-02 Thread Monika C. Mevenkamp
use the fq parameter to restrict to a time range

eg   fq=time:[2015-01-01T00%3A00%3A00.000Z+TO+NOW]

the query below looks at ORIGINAL  bitstreams in a give collection downloaded 
at least once
excluding bot queries as well as query from the given ips and downloads from 
users that were logged in


http://localhost:18082/solr/statistics/select?wt=json&indent=true&rows=0&facet=true&facet.mincount=1&facet.field=id&fq=time:[2015-01-01T00%3A00%3A00.000Z+TO+NOW]&q=NOT+epersonid%3A%5B%22%22+TO+*%5D+isBot:false+owningComm:67+type:0+bundleName:ORIGINAL+-ip:%2810.6.61.26+OR+128.112.66.66%29

the response header


responseHeader":{
"status":0,
"QTime":1857,
"params":{
  "facet":"true",
  "facet.mincount":"1",
  "indent":"true",
  "q":"NOT epersonid:[\"\" TO *] isBot:false owningComm:67 type:0 
bundleName:ORIGINAL -ip:(10.6.61.26 OR 128.112.66.66)",
  "facet.field":"id",
  "wt":"json",
  "fq":"time:[2015-01-01T00:00:00.000Z TO NOW]",
  "rows":"0"}},
  "response":{"numFound":205152,"start":0,"docs":[]
  },

I wrote a jruby script to do stats for a particular community - if you are 
interested 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 Jul 2, 2015, at 2:10 AM, Gary Browne 
mailto:gary.bro...@sydney.edu.au>> wrote:

Hi all,

I'm trying to figure out how to limit solr queries by date. I found this 
snippet online:

http://mydspace.org/solr/statistics/select?bundleName:ORIGINAL&facet.date.start=NOW/MONTH/DAY-6MONTHS&facet.date.end=NOW&facet.date.gap=1MONTH+AND+type:0+bundleName:ORIGINAL

it fails in my browser (yes, other solr searches work).

I'm trying to come up, for starters, with a solr search query for top X items 
visited in the last X months.

Can anyone point me in the right direction here, even to some documentation 
(I've done a lot of googling but nothing I've found so far helps with this 
question).

THanks,
Gary

--
Gary Browne | Development Programmer
University of Sydney Library
THE UNIVERSITY OF SYDNEY
Level 1, Fisher Library F03 | The University of Sydney | NSW | 2006
T +61 2 9351 5946 | M +61 405 647 868
E gary.bro...@sydney.edu.au
--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

Re: [Dspace-tech] email recipient link

2015-06-30 Thread Monika C. Mevenkamp
Hi Brita

I believe this is determined by the dspace.url setting in your configuration 
file

Monika

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

On Jun 29, 2015, at 8:45 AM, Saidy Binta 
mailto:bisa...@mrc.gm>> wrote:

Hi All,

How do I change dspace email recipient link from http://localhost:8080/xmlui/ 
to the a server name or IP address. Please can someone assist. Thanks

Regards
Binta




DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not necessarily represent the views and opinions of Medical Research Council 
Unit, The Gambia

___
This communication is confidential and may contain privileged information 
intended solely for the named recipient(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient, you must not copy, distribute, take any action or reliance on it. If 
you have received this communication in error, do not open any attachments but 
please notify the Help Desk by e-mailing h...@mrc.gm 
quoting the sender details, and then delete this message along with any 
attached files. E-mail messages are not secure and attachments could contain 
software viruses which may damage your computer system. Whilst every reasonable 
precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot 
accept any liability for any damage sustained as a result of these factors. You 
are advised to carry out your own virus checks before opening any attachments. 
Unless expressly stated, opinions in this message are those of the e-mail 
author and not of the Medical Research Council Unit The Gambia.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

Re: [Dspace-tech] changing localhost

2015-06-30 Thread Monika C. Mevenkamp
Hi Saidy

stepping back for a moment:

I assume you are running the dspace code on your local desktop/laptop

changing he dspace url setting tells the dspace app the absolute url of the 
application
the app generates links in its UI as relative path - thus if you run locally 
you will
still see localhost in your url
one place where the absolute url is used is in some email templates


Monika


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

On Jun 29, 2015, at 4:57 AM, Saidy Binta 
mailto:bisa...@mrc.gm>> wrote:

Hi All,

I try change the localhost

# DSpace host name - should match base URL.  Do not include port number.
dspace.hostname = Electron.data

# DSpace base host URL.  Include port number etc.
dspace.baseUrl = http://Electronic.data:8080

# DSpace base URL.  Include port number etc., but NOT trailing slash
# Change to xmlui if you wish to use the xmlui as the default, or remove
# "/jspui" and set webapp of your choice as the "ROOT" webapp in
# the servlet engine.
dspace.url = ${dspace.url}/xmlui

but I still have the below url instead. Please can anyone tell me what is wrong.
 http://localhost:8080/xmlui/xmlui/forgot?token=77aed5837e6e52414e41ba26fef087c2




DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not necessarily represent the views and opinions of Medical Research Council 
Unit, The Gambia

___
This communication is confidential and may contain privileged information 
intended solely for the named recipient(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient, you must not copy, distribute, take any action or reliance on it. If 
you have received this communication in error, do not open any attachments but 
please notify the Help Desk by e-mailing h...@mrc.gm 
quoting the sender details, and then delete this message along with any 
attached files. E-mail messages are not secure and attachments could contain 
software viruses which may damage your computer system. Whilst every reasonable 
precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot 
accept any liability for any damage sustained as a result of these factors. You 
are advised to carry out your own virus checks before opening any attachments. 
Unless expressly stated, opinions in this message are those of the e-mail 
author and not of the Medical Research Council Unit The Gambia.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.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

Re: [Dspace-tech] changing localhost

2015-06-29 Thread Monika C. Mevenkamp
The steps are

look at dspace-src/config/dspace.cfg
did you change the baseUrl there  ?
are there other definitions of baseUrl ?
recompile:
mvn clean package
look at dspace-src/dspace/target/dspace-installer/config/dspace.cfg  (i am 
assuming you  use a recent dspace version)
did the setting change in the file  ?
if not you need to carefully revisit the dspace.cfg in your dspace-src 
directory
use git diff to see the  difference to the original file
deploy
 ant update
 check the dspace.cfg file in your deployment dir /dspace/config/dspace.cfg
restart tomcat

Monika




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

On Jun 29, 2015, at 10:02 AM, Saidy Binta 
mailto:bisa...@mrc.gm>> wrote:

I have rebuild multiple times but still the same. I am out of options.

Binta

From: Monika C. Mevenkamp [mailto:moni...@princeton.edu]
Sent: 29 June 2015 13:56
To: Saidy Binta
Cc: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] changing localhost

Hi Saidy

You are not explicit about which dspace.cfg file you changed.

If it is the one in your dspace-src directory - you need to run mvn package and 
ant update again and the restart your tomcat server.

If you changed the file in your dspace deployment’s config directory - you need 
to restart your tomcat server

Monika



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

On Jun 29, 2015, at 4:57 AM, Saidy Binta 
mailto:bisa...@mrc.gm>> wrote:

Hi All,

I try change the localhost

# DSpace host name - should match base URL.  Do not include port number.
dspace.hostname = Electron.data

# DSpace base host URL.  Include port number etc.
dspace.baseUrl = http://Electronic.data:8080<http://electronic.data:8080/>

# DSpace base URL.  Include port number etc., but NOT trailing slash
# Change to xmlui if you wish to use the xmlui as the default, or remove
# "/jspui" and set webapp of your choice as the "ROOT" webapp in
# the servlet engine.
dspace.url = ${dspace.url}/xmlui

but I still have the below url instead. Please can anyone tell me what is wrong.
 http://localhost:8080/xmlui/xmlui/forgot?token=77aed5837e6e52414e41ba26fef087c2




DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not necessarily represent the views and opinions of Medical Research Council 
Unit, The Gambia

___
This communication is confidential and may contain privileged information 
intended solely for the named recipient(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient, you must not copy, distribute, take any action or reliance on it. If 
you have received this communication in error, do not open any attachments but 
please notify the Help Desk by e-mailing h...@mrc.gm<mailto:h...@mrc.gm> 
quoting the sender details, and then delete this message along with any 
attached files. E-mail messages are not secure and attachments could contain 
software viruses which may damage your computer system. Whilst every reasonable 
precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot 
accept any liability for any damage sustained as a result of these factors. You 
are advised to carry out your own virus checks before opening any attachments. 
Unless expressly stated, opinions in this message are those of the e-mail 
author and not of the Medical Research Council Unit The Gambia.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not 

Re: [Dspace-tech] changing localhost

2015-06-29 Thread Monika C. Mevenkamp
Hi Saidy

You are not explicit about which dspace.cfg file you changed.

If it is the one in your dspace-src directory - you need to run mvn package and 
ant update again and the restart your tomcat server.

If you changed the file in your dspace deployment’s config directory - you need 
to restart your tomcat server

Monika



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

On Jun 29, 2015, at 4:57 AM, Saidy Binta 
mailto:bisa...@mrc.gm>> wrote:

Hi All,

I try change the localhost

# DSpace host name - should match base URL.  Do not include port number.
dspace.hostname = Electron.data

# DSpace base host URL.  Include port number etc.
dspace.baseUrl = http://Electronic.data:8080

# DSpace base URL.  Include port number etc., but NOT trailing slash
# Change to xmlui if you wish to use the xmlui as the default, or remove
# "/jspui" and set webapp of your choice as the "ROOT" webapp in
# the servlet engine.
dspace.url = ${dspace.url}/xmlui

but I still have the below url instead. Please can anyone tell me what is wrong.
 http://localhost:8080/xmlui/xmlui/forgot?token=77aed5837e6e52414e41ba26fef087c2




DISCLAIMER: This message is private and confidential. If you have received this 
message in error please notify us and remove it from your system. Any views and 
opinions expressed in this message are those of the individual sender and do 
not necessarily represent the views and opinions of Medical Research Council 
Unit, The Gambia

___
This communication is confidential and may contain privileged information 
intended solely for the named recipient(s). It may not be used or disclosed 
except for the purpose for which it has been sent. If you are not the intended 
recipient, you must not copy, distribute, take any action or reliance on it. If 
you have received this communication in error, do not open any attachments but 
please notify the Help Desk by e-mailing h...@mrc.gm 
quoting the sender details, and then delete this message along with any 
attached files. E-mail messages are not secure and attachments could contain 
software viruses which may damage your computer system. Whilst every reasonable 
precaution has been taken to minimise this risk, The MRC Unit The Gambia cannot 
accept any liability for any damage sustained as a result of these factors. You 
are advised to carry out your own virus checks before opening any attachments. 
Unless expressly stated, opinions in this message are those of the e-mail 
author and not of the Medical Research Council Unit The Gambia.

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors
network devices and physical & virtual servers, alerts via email & sms
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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] Vagrant or Docker

2015-06-23 Thread Monika C. Mevenkamp
Hi

my boss discovered a dspace docker

so which one should I do - docker or vagrant ?

They  sound awfully alike
  the host can connect to things : tomcat / ssh / ...
  files can be shared between host and   vagrant/docker guest
  it appears to be easy to hand a ‘vagrant’ or a ‘docker’ to another developer

so what’s the deal ?
why one over the other ?

Monika

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

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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] Vagrant Goodies

2015-06-23 Thread Monika C. Mevenkamp
Hi Hardy 

vagrant-cachier is just what the doctor ordered - I was wondering about sharing 
resources 
I tried it out - it took me a bit  to find where the maven dir lives on the 
host. 

After that I went ahead  and linked 
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/repositry/* .) 

Is that how you share ? 

Is there a reason why you did not do 

# use the generic cache bucket for Maven
   config.cache.enable :generic, {
 "maven" => { cache_dir: "/home/vagrant/.m2" },
   }

and then link 
(cd ~/.vagrant.d/cache/dspace-trusty64/maven; ln -s ~/.m2/* .) 

I use Bram’s trick of putting profiles in ~/.settings.xml - sharing the whole 
.m2 dir would give me the ability to keep all config bundles together in 
settings.xml 

Anyway - off to read about land rush and the other goodies 


Monika 

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

> On Jun 22, 2015, at 10:47 AM, Pottinger, Hardy J.  
> wrote:
> 
> Hi, Monika, here's the line  [1] in the Puppet template file that gets turned 
> into vagrant.properties, which selects the DB driver.
> 
> Here's what I do when I want to work with Oracle and Vagrant-DSpace (not 
> often, only when I want to test Oracle compatibility): I keep a copy of 
> vagrant.properties in the config/dotfiles folder, and I rename it 
> vagrant-oracle.properties. I then have a little bash alias I run to change 
> the MAVEN_OPTS:
> 
> alias oracle.env-init="export MAVEN_OPTS='-Denv=vagrant-oracle 
> -Dmirage2.on=true -Dmirage2.deps.included=false'"
> 
> NOTE: if you're not using Mirage2, you can forget the mirage2 options.
> 
> I also park the ojdbc.jar file in there, just in case I need it, however I 
> usually don't, because long ago I installed the Vagrant-cachier plugin [1], 
> and that keeps my entire .m2/repository folder, including any 
> manually-installed jar files, cached on my host machine.
> 
> In my local-bootstrap.sh provisioner script, I've added this:
> 
> # BASH aliases customization
> if [ -f "/vagrant/config/dotfiles/bash_aliases" ]; then
>echo "setting up .bash_aliases file"
>sudo -i -u vagrant cp /vagrant/config/dotfiles/bash_aliases 
> /home/vagrant/.bash_aliases
> fi
> 
> 
> Which lets me configure all kinds of little aliases.
> 
> --Hardy
> 
> [1] 
> https://github.com/DSpace/vagrant-dspace/blob/master/modules/dspace/templates/vagrant.properties.erb#L59
> [2] https://github.com/fgrehm/vagrant-cachier
> 
> From: Tim Donohue [tdono...@duraspace.org]
> Sent: Thursday, June 18, 2015 2:05 PM
> To: Monika C. Mevenkamp; Lista técnica do DSpace
> Subject: Re: [Dspace-tech] dspace 5_x + Oracle on Vagrant
> 
> Hi Monika,
> 
> It looks like it's trying to connect with:
> 
> "Driver: org.postgresql.Driver"
> 
> (according to the output of your "dspace database test")
> 
> This implies that your dspace.cfg probably has the wrong value for
> "db.driver". It should be:
> 
> db.driver=oracle.jdbc.OracleDriver
> 
> So you may want to update this in your dspace.cfg and try again. Also
> may want to update it in your "build.properties" (as that's what
> populates the dspace.cfg). In the case of vagrant-dspace, it uses a
> custom "vagrant.properties" by default.
> 
> - Tim
> 
> On 6/18/2015 1:33 PM, Monika C. Mevenkamp wrote:
>> I got myself dspace vagrant
>> switched to dspace_5_x branch
>> setup to run with Oracle via settings in dspace.cfg
>> copied ~/.m2/repository/com/oracle/ojdbc6 from my host to vagrants ~/.m2
>> did mvn package with -Ddb.name=oracle
>> 
>> I can successfully run
>> 
>>~/dspace/bin/dspace database test
>> 
>>Attempting to connect to database using these configurations:
>>  - URL: jdbc:oracle:thin:@xyz.princeton.edu
>><http://xyz.princeton.edu>:1521:dspdevl
>>  - Driver: org.postgresql.Driver
>>  - Username: dspace
>>  - Password: [hidden]
>>  - Schema:
>> 
>>Testing connection...
>>Connected successfully!
>> 
>> 
>> 
>> localist:8081/probe tells me that jspui, xmlii, oia, rdf  did not come up
>> there are exceptions in catalina.out
>> java.sql.SQLException: No suitable driver found for
>> jdbc:oracle:thin:@xyz.princeton.edu <http://xyz.princeton.edu>:1521:dspdevl
>> 
>> but the jar is available to all webs -  according to ls
>> 
>> ls -ld ~/dspace/webapps/*/WEB-INF/lib/ojdbc6-11.2.0.4.jar
>> ~/d

[Dspace-tech] Version 18 - Comm/collection structure export / import

2015-06-22 Thread Monika C. Mevenkamp
Hi

I have set up a community / collection hierarchy in my test instance. Once this 
is approved I will have to create the same hierarchy in production.  Is there 
an easy way to export / import the hierarchy ?

Monika
'

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

--
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o___
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] dspace 5_x + Oracle on Vagrant

2015-06-18 Thread Monika C. Mevenkamp
I got myself dspace vagrant
switched to dspace_5_x branch
setup to run with Oracle via settings in dspace.cfg
copied ~/.m2/repository/com/oracle/ojdbc6 from my host to vagrants ~/.m2
did mvn package with -Ddb.name=oracle


I can successfully run
~/dspace/bin/dspace database test

Attempting to connect to database using these configurations:
 - URL: 
jdbc:oracle:thin:@xyz.princeton.edu:1521:dspdevl
 - Driver: org.postgresql.Driver
 - Username: dspace
 - Password: [hidden]
 - Schema:

Testing connection...
Connected successfully!


localist:8081/probe tells me that jspui, xmlii, oia, rdf  did not come up
there are exceptions in catalina.out
java.sql.SQLException: No suitable driver found for 
jdbc:oracle:thin:@xyz.princeton.edu:1521:dspdevl

but the jar is available to all webs -  according to ls

ls -ld ~/dspace/webapps/*/WEB-INF/lib/ojdbc6-11.2.0.4.jar  
~/dspace/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/jspui/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/oai/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/rdf/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/rest/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/swordv2/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/sword/WEB-INF/lib/ojdbc6-11.2.0.4.jar
-rw-rw-r-- 1 vagrant vagrant 2739670 Jun 18 17:28 
/home/vagrant/dspace/webapps/xmlui/WEB-INF/lib/ojdbc6-11.2.0.4.jar

catalina.out also complains
SEVERE: The web application [/xmlui] registered the JDBC driver 
[org.postgresql.Driver] but failed to unregister it when the web application 
was stopped. To prevent a memory leak, the JDBC Driver has been forcibly 
unregistered.

Obviously the postgres driver should never be registered. Any ideas where that 
might happen and how to turn this off ?

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] Upgrade to JSPUI or XMLUI or not at all ?

2015-06-16 Thread Monika C. Mevenkamp
After all this talk about the new and improved and entirely different web UI on 
the strategic plan at the OR conference, I am wondering how to proceed forward. 
We are stuck in the past: 1.8 JSPUI with a few customizations.

It would be easy to port this to JSPUI in version 5, but the bootstrap theme 
does not work particularly well for us - it seems rather space consuming.

Has somebody a modified css / small JSPUI customizations that lead to a tighter 
UI layout ?

Comparing what I see in the XMLUI 5 with JSPUI 1.8, I see nice features like

  *   admin can impersonate another user
  *   a control panel with system info - the ability to start curation tasks …
  *   and a much more friendly interface for dealing with editing an items 
metadata authorization, …

Aside from the different look and feel what are the functional/feature 
differences between the XMLUI and JSPUI ?

One of the changes we made requires a custom agreement page and programming a 
bit of logic when to pop that page up and when to simply show a bitstream. Who 
I did I talk to who said they have a custom agreement type page at the OR 
conference ?  Please holler - was that XMLUI ?


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

Re: [Dspace-tech] Dspace log files owned by root

2015-06-16 Thread Monika C. Mevenkamp
Andre

It sounds like log rotate does its magic at night
see the post Logrotate Set File 
Permissions post - it 
might explain your situation

Monika

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

On Jun 16, 2015, at 5:56 AM, Andre Gomes 
mailto:ago...@itclinical.com>> wrote:

Hi,

My dspace log files are owned by root, even although I am running tomcat
as user tomcat and the files are being correctly written to them. This
happens for the checker.log, cocoon.log and dspace.log.
For solr log files the file solr.log is owned by tomcat but every day it
is created a solr.log.-MM-DD owned by root and the next day is owned
by tomcat.

So when I restart tomcat I get the following error:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /srv/dspace/log/dspace.log.2015-06-12
(Permission denied) ...

I wondering what can be happening?

Thanks is advance for your help.

André Gomes


--
___
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] How to alter word 'DSpace' with another desired word

2015-06-15 Thread Monika C. Mevenkamp
You need to edit the message catalog

see Where to find the message 
catalog
  for XMLUI
or Where to find the message 
catalog
 for JSPUI


Monika


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

On Jun 12, 2015, at 8:53 AM, Shivraj Thorat 
mailto:thoratshiv...@gmail.com>> wrote:

Dear Professional

I have installed DSpace 3.1 JSPUI, and customized layout etc. as per my 
requirement. Now I have to use repository name against the word DSPACE from the 
layout and other messges. etc.

Assist me in this issues.

--
Regards


Mr. Shivraj Thorat
Librarian
BVDU, Institute of Management & Entrepreneurship Development
Paud Rd, Kothrud,
Pune-38
--
___
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] ant udate fail

2015-06-02 Thread Monika C. Mevenkamp
this looks like a permission problem - the user running the ant update command 
should be the same as the user owning  C:\Program Files\dspace\config
If you did the standard install - run ant update as the dspace user

Monika

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

On Jun 2, 2015, at 9:52 AM, Saidy Binta mailto:bisa...@mrc.gm>> 
wrote:

Hi,

I am trying to update ant but I keep having the error, please help

C:\dspace\DSpace-master>cd C:\dspace\DSpace-master\dspace\target\dspace-installe
r

C:\dspace\DSpace-master\dspace\target\dspace-installer>ant update
Buildfile: C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml

prepare_configs:
[mkdir] Created dir: C:\dspace\DSpace-master\dspace\target\dspace-installer\
config-temp
 [copy] Copying 1 file to C:\dspace\DSpace-master\dspace\target\dspace-insta
ller\config-temp
 [copy] Copying 142 files to C:\dspace\DSpace-master\dspace\target\dspace-in
staller\config-temp

copy_configs_keep:

overwrite_configs:
 [copy] Copying 3 files to C:\Program Files\dspace\config
Attempt to copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Fil
es\dspace\config\input-forms.dtd-20150602-133352.old using NIO Channels failed d
ue to 'C:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Acces
s is denied)'.  Falling back to streams.

BUILD FAILED
C:\dspace\DSpace-master\dspace\target\dspace-installer\build.xml:215: Failed to
copy C:\Program Files\dspace\config\input-forms.dtd to C:\Program Files\dspace\c
onfig\input-forms.dtd-20150602-133352.old due to java.io.FileNotFoundException C
:\Program Files\dspace\config\input-forms.dtd-20150602-133352.old (Access is den
ied)

Total time: 1 second

Regards
Binta

From: Kleiner Eike (klie) [mailto:k...@zhaw.ch]
Sent: 02 June 2015 13:32
To: Graham Faulkner
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] two form fields with same schema element and 
qualifier

Hi Graham,

We ran into the same problem with JSPUI on DSpace 5.1. We tried to fill dc.type 
from two different value-pair-lists and ended up with the duplicate entries you 
described. We came to two possible solutions:

1)  Merge the lists into one and make the field repeatable / multi 
selection.
2)  Distribute the fields over multiple pages of the ingest form. At least 
with JSPUI this avoids the duplicates.

Both approaches are not fully satisfactory but I wasn’t able to find a better 
solution on the fly.

Hope this helps

Eike
--
ZHAW Zürcher Hochschule für Angewandte Wissenschaften
Information & Communication Technology

Eike Kleiner
Gertrudstrasse 15
Postfach
CH-8401 Winterthur

Tel: +41 58 934 4959
Fax: +41 58 935 4959
E-Mail:eike.klei...@zhaw.ch

Von: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca]
Gesendet: Montag, 1. Juni 2015 19:19
An: dspace-tech@lists.sourceforge.net
Betreff: Re: [Dspace-tech] two form fields with same schema element and 
qualifier

Hello again. I failed to mention that this was for XMLUI (Mirage 2 to be 
specific) on DS 5.1.

Cheers,

Graham


From: Graham Faulkner [mailto:graham.faulk...@uwaterloo.ca]
Sent: Friday, May 29, 2015 2:13 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] two form fields with same schema element and qualifier

Hi there,

This question relates to DS5.1 on Ubuntu using PostgreSQL.

In our /dspace/config/input-forms.xml we have two drop-down fields for Faculty 
and Department, respectively.  We want both fields to have the same element 
(“contributor”) and qualifier (“affiliation”), which are part of a custom 
schema (“uws”).

However, when we submit the item in the submission workflow, the fields are 
each inserted twice in the database.  i.e. rather than having one entry for the 
Faculty and one for Department, there are two entries each.

Here are the respective  in input-forms.xml:



  uws
  contributor
  affiliation
  false
  Faculty or affiliated and federated institution
  dropdown
  Select your faculty or affiliated and federated institution 
from the drop down
list.
  You must choose from the list of Faculties and affiliated 
and federated
institutions.




  uws
  contributor
  affiliation
  false
  Department
  dropdown
  Select your department from the drop down list.
  You must choose from the list of departments.


Any suggestions on solutions, or pointers to where the duplicate entry is 
occurring in the source code?

Cheers,

Graham

-
Graham Faulkner
Web Developer / Programmer
Digital Initiatives, Library
University of Wa

Re: [Dspace-tech] Strange duplication in PostgreSQL

2015-06-02 Thread Monika C. Mevenkamp
George

we found double arks at one point - also on DSPACE 1.8
see JIRA issue: https://jira.duraspace.org/browse/DS-2106

Monika

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

On Jun 2, 2015, at 9:48 AM, George Stanley Kozak 
mailto:g...@cornell.edu>> wrote:

Hi…

We had a strange thing happen yesterday in our production DSpace install, and I 
wonder if anyone else has had this problem.
First off, we are at DSpace 1.8.2 (in production) moving to DSpace 5.2 next 
week.
Someone submitted an item into our DSpace 1.8.2 production system, and when you 
looked in the “Recent Submissions” for the collection that it was submitted to, 
the item was displayed 4 times.

I restarted PostGreSQL and tomcat, but that didn’t help, so I went into the SQL 
tables.  I found a duplicate entry in the handles table, the communities2items 
table and the bi-item table.  After deleting the duplicates, everything was OK.

I am wondering if anyone has ever seen this or has any ideas about what caused 
this, and whether something like this might happen in 5.2?

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

Re: [Dspace-tech] What is the proper way to create a dspace context object.

2015-06-01 Thread Monika C. Mevenkamp
You may not realize that you can use the ItemImporter, see 
https://wiki.duraspace.org/display/DSDOC5x/Importing+and+Exporting+Items+via+Simple+Archive+Format

If this is a one-of you may want to have a look at the  jruby integration by 
Brown, Jacob [mailto:j.h.br...@tcu.edu]
 https://github.com/kardeiz/dscriptor.

If you really need to write your own code - model it after the installItem 
method in InstalItem 


Monika




Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 29, 2015, at 12:30 PM, Maatari 
mailto:okouy...@yahoo.fr>> wrote:

Hi,

I would like to somewhat submist an item programatically. What would be the
steps for it ?

In the simplest scenario, i would like to create a context object and then
add an item and then commit it.

However i am not sure how the context object should be created. New context
object would obtain the database connection in its init method ? how is that
possible ?


Best,

M



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/What-is-the-proper-way-to-create-a-dspace-context-object-tp4678123.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 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] Can I move GeoLiteCity.dat?

2015-05-22 Thread Monika C. Mevenkamp
there is a setting in

dspace/config/modules/solr-statistics.cfg:dbfile = 
${dspace.dir}/config/GeoLiteCity.dat

if you are using solr stats you can probably move the fie, if you adjust the 
config accordingly

Monika



Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 22, 2015, at 12:16 PM, Schuster, David 
mailto:dschus...@mail.twu.edu>> wrote:

This is growing quite large on my system and about to fill up my home 
directory…  I have moved the logs etc.. to another point through the config 
files, but I don’t see that I can point this in another direction.

/home/dspace/config – is where it lives and mine has grown to about 17216036…

Suggestions, recommendations?  My home directory was setup small when we 
started newbie on my own I didn’t know how this might impact me in the future.

My drive is setup with LVS but we have used all of the original space allocated 
for that.

Looking for suggestions for best direction.

David Schuster
Texas Woman's University
Director of Library Information Technology & Technical Support
Phone: 940-898-3909
dschus...@twu.edu



--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] REST Based Integrations with Moodle / LMS / CMS / LTI

2015-05-20 Thread Monika C. Mevenkamp
Peter

there is a DRUPAL module developed by my colleague Henry Humansky
see https://www.drupal.org/project/dspace

this works with http://dataspace.princeton.edu/rest/items/describe
we are doing DSPACE 1.8 with and old rest API

the meat of the implementation is in the FeedsDSpaceParser

Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 19, 2015, at 7:05 PM, Peter Dietz 
mailto:pe...@longsight.com>> wrote:

Hi All,

I was wondering if anyone is aware of any integrations between DSpace and other 
systems out there. I've heard from various groups wanting to integrate their 
CMS (Wordpress, Joomla, Drupal), or LMS (Canvas, Sakai, Moodle, BlackBoard, 
D2L) with DSpace, to re-use content archived in DSpace and publish it in a 
course, or in a guide, or on their website. Or even to search their DSpace from 
their site. I've seen various plugins or modules for various platforms, but I'm 
not aware if current/official DSpace is off-the-shelf compatible with other 
systems. While the "unofficial" REST API's for DSpace have been used for 
integrations past, present, and future they haven't been included in the 
official release of DSpace, posing an additional hurdle to a campus that has 
DSpace + some other system.

I'd be curious if anyone has first hand experience, or is aware of a list of 
missing endpoints for the current API (workflow, users, etc) that is limiting 
their ability to successfully integrate.

For Reference, the current DSpace REST API docs are located at:
https://wiki.duraspace.org/display/DSDOC5x/REST+API


Peter Dietz
Longsight
www.longsight.com
pe...@longsight.com
p: 740-599-5005 x809
--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Publish Faculty Articles in DSPACE instance

2015-05-14 Thread Monika C. Mevenkamp
Princeton University has had an Open Access mandate in place since fall of 
2011. Slowly but surely we are getting to the point of following through by 
collecting articles in the form of citation metadata and article documents. At 
the moment we hope to work with Symplectic for citation discovery. Staff will 
upload documents on behalf of authors. Citation metadata and documents will be 
pushed through to a DSPACE repository, where the articles will become 
accessible to everybody.  We have to plan our process, such that we ask as 
little as possible from facility authors.

So first off - is there anybody out there using Symplectic ?  If so, please 
tell me about your experience.

Second: Do you know of a DSPACE instance dedicated to scholarly publications ?

In addition, there are several questions, we need to answer, and I would like 
to learn from other people / institutions, who went through this already.

Content organizations
At one extreme we could simply have a giant community with one giant 
collection, where everything goes. Personally. I lean towards organizing 
articles by department, which we expect to have available as one of the 
metadata fields. Articles with authors from different departments would be 
listed in two collections.

Workflow
Once article metadata and a document is ingested, it enters a workflow.

  *   Where necessary, a staff member adds wording requested by publishers to 
accompany the publication on the web.
  *   If the document is deemed unacceptable (see Document formats), a new 
better document needs to be found and uploaded
  *   Once all is ready, we plan to send an email to inform author/s of the 
pending publication in our repository, Preferably that email should contain a 
link to the item, as it will look once published.  At a minimum it should 
include a link to the article bitstream, so authors can properly review.
  *   The item becomes public, unless the author replies within a specified 
time indicating that publication should be ‘aborted’.

I have not really worked with the DSPACE workflow system; my guess is, that 
I’ll have to do some custom coding. Right ?

Document formats:
Which document formats should we allow ? PDF, PDF/A, others ?
How can we validate formats ?
How to virusscan documents ?
Is this done in a cronjob, integrated in the workflow ?
The word on the street seems to be: 'do not do automatic format migration’. Is 
that the consensus ?

Once we have content in the repository, it will make sense to offer a couple 
XML, json access points, so it is easy to list articles by department, by 
author, .. or access individual articles … I expect that referrers, for example 
department websites,  will often want to take the query result and format them 
as HTML themselves as opposed to linking to DSPACE item pages. Will the REST 
interface do the trick ?

Many questions, … - so thank you in advance for any and all answers

Monika



Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] spider ip recognition

2015-05-14 Thread Monika C. Mevenkamp
Anthony

Since dspace 4 you can filter by userAgent
see 
https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics+Maintenance#SOLRStatisticsMaintenance-FilteringandPruningSpiders
I have not used this myself and am not sure whether these filters are applied 
as crawlers access content - or whether you need to run the
[dspace]/bin/dspace stats-util command on a regular basis. You definitely need 
to run it to prune  mark usage events after you configure
a list of userAgents you want to filter against.

Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 12, 2015, at 2:13 PM, Anthony Petryk 
mailto:anthony.pet...@uottawa.ca>> wrote:

After a bit of investigation, it turns out that a significant portion of our 
items stats come from spiders.  Any thoughts on the best way to go about 
removing them from Solr retroactively?  There’s nothing that I can see in the 
code that will do this by domain or agent, only IP.  We’re not excited at the 
prospect of pulling out the IPs of all the spiders in order run “stats-util –i” 
effectively.

Cheers,

Anthony

From: Monika C. Mevenkamp [mailto:moni...@princeton.edu]
Sent: Friday, May 08, 2015 9:59 AM
To: Anthony Petryk
Cc: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] spider ip recognition

Anthony

I wrote a small ruby script to put solr queries together when I was poking 
around my stats

see https://github.com/akinom/dscriptor/blob/master/solr/solr_query.rb
an example parameter file is 
https://github.com/akinom/dscriptor/blob/master/solr/solr_query.yml

run it asruby solr/solr_query.rb

of cause you ned to adjust the parameters in the mL file

you can query like this

http://localhost:YOUR-PORT/solr/statistics/select?wt=json&indent=true&rows=1&facet=true&facet.field=ip&facet.mincount=1&q=type:2+id:218+isBot:false

exclude records that are marked as bots
do type:2 - aka items
do id:218 - aka item with id 218
return one item
facet on ip addresses

crank up the number of rows to get more matching docs

Monika




Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 7, 2015, at 3:26 PM, Anthony Petryk 
mailto:anthony.pet...@uottawa.ca>> wrote:

Anyway, we want to determine whether these stats are bona fide or whether 
there's something wrong with the spider detection.  From the documentation it 
seems we have to query Solr directly to do this.  Not being an expert in Solr, 
I'm hoping someone on this list could provide the query that retrieves *all the 
stats for a given item* (i.e. what's listed under "Common stored fields for all 
usage events" in the documentation).

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] CAS for DSpace 5.1 XMLUI

2015-05-08 Thread Monika C. Mevenkamp
Just want to thank you for the CAS integration by Thomas 
Misilo
It worked like a charm for me

Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] spider ip recognition

2015-05-08 Thread Monika C. Mevenkamp
Anthony

I wrote a small ruby script to put solr queries together when I was poking 
around my stats

see https://github.com/akinom/dscriptor/blob/master/solr/solr_query.rb
an example parameter file is 
https://github.com/akinom/dscriptor/blob/master/solr/solr_query.yml

run it asruby solr/solr_query.rb

of cause you ned to adjust the parameters in the mL file

you can query like this

http://localhost:YOUR-PORT/solr/statistics/select?wt=json&indent=true&rows=1&facet=true&facet.field=ip&facet.mincount=1&q=type:2+id:218+isBot:false

exclude records that are marked as bots
do type:2 - aka items
do id:218 - aka item with id 218
return one item
facet on ip addresses

crank up the number of rows to get more matching docs

Monika




Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On May 7, 2015, at 3:26 PM, Anthony Petryk 
mailto:anthony.pet...@uottawa.ca>> wrote:

Anyway, we want to determine whether these stats are bona fide or whether 
there's something wrong with the spider detection.  From the documentation it 
seems we have to query Solr directly to do this.  Not being an expert in Solr, 
I'm hoping someone on this list could provide the query that retrieves *all the 
stats for a given item* (i.e. what's listed under "Common stored fields for all 
usage events" in the documentation).

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] Problem in Group and Eperson administration

2015-04-28 Thread Monika C. Mevenkamp
looks to me like a typo in the code

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/eperson/EPerson.java#L502
and
https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/eperson/EPerson.java#L510

where it says s = "m_text_value”;   it should be s = “m.text_value";

Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On Apr 27, 2015, at 11:26 AM, Oliver Goldschmidt 
mailto:o.goldschm...@tuhh.de>> wrote:

Hello,

I have a problem in DSpace 5.1. After upgrading from DSpace 4.2 I cannot
change publication permissions or workflow step permissions on a
collection or select users in the permission system.
I have tracked down the error and it seems to be most likely a bug, but
I'm not 100% sure...

Trying to use http://dspace-instance/tools/eperson-list?multiple=false
(after having logged in as admin) is throwing an NPE:
2015-04-27 17:19:52,812 DEBUG org.dspace.storage.rdbms.DatabaseManager @
Running query "SELECT * FROM eperson e ORDER BY ?"  with parameters:
m_text_value
2015-04-27 17:19:52,817 WARN
org.dspace.app.webui.servlet.InternalErrorServlet @
:session_id=XX...XX:internal_error:-- URL Was:
https://dspace.tub.tuhh.de/tools/eperson-list?multiple=false
-- Method: GET
-- Parameters were:
-- multiple: "false"

java.lang.NullPointerException
   at org.dspace.eperson.EPerson.findAll(EPerson.java:518)

The reason for this error is, that I do not have a field m_text_value in
the table eperson, so the query fails.

Is this a bug or have I missed something upgrading the database?

Best regards
Oliver


--
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
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

--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y___
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] spider ip recognition

2015-04-23 Thread Monika C. Mevenkamp
I found a couple of really suspicious numbers in my solr stats, aka lots of 
entries were marked as isBot=false although the probably should has been 
isBot=true.

In the config file  I use

spiderips.urls = http://iplists.com/google.txt, \
 http://iplists.com/inktomi.txt, \
 http://iplists.com/lycos.txt, \
 http://iplists.com/infoseek.txt, \
 http://iplists.com/altavista.txt, \
 http://iplists.com/excite.txt, \
 http://iplists.com/northernlight.txt, \
 http://iplists.com/misc.txt, \
 http://iplists.com/non_engines.txt


I could not find downloadable lists for Bing, Baidu, Yahoo.
The best I saw was:   
http://myip.ms/info/bots/Google_Bing_Yahoo_Facebook_etc_Bot_IP_Addresses.html
Is that reliable  ?

Does anybody out there have lists / sources that they can share ?

Also: does the dspace code gracefully deal with IP address patterns ?

Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF___
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] browse misses some items

2015-04-21 Thread Monika C. Mevenkamp
I run [dspace]/bin/dspace index-update nightly  in DSPACE 1.8 (with JSPUI)

Even though there are some cases in which browse fails to find items.

For example a search for the author ‘japanwala’ in the 

 creative writing 
collection 
yields no results - although there is an item by this 
author that 
belongs to the English collection and is mapped to the  creative writing 
collection.  
At first I thought that this is due to the item belonging to two collections, 
but there are others where searching works in both the owning collection as 
well as in the mapped collection, e.g. when browsing for Abigail Bowman in 
Creative 
Writing.

How can I fix this issue ?
Should I completely rebuild the index ?
If so is it really necessary to take the site offline / stop tomcat ? While the 
index is being rebuild searching will fail - but does break the system ?

Monika



Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF___
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] SQL command to update bitstream description text (DSpace 5.1)

2015-04-16 Thread Monika C. Mevenkamp
Assuming you want to do this on all bitstreams in your system that have a 
particular format you can do the following:

SELECT * FROM BITSTREAMFORMATREGISTRY;

choose the format you want to work with and pick the number from the  
BITSTREAM_FORMAT_ID column. then assuming you want to work with format_id 2

SELECT * FROM BITSTREAM WHERE BITSTREAM_FORMAT_ID = 2 AND DESCRIPTION = NULL;

this should give you the list of your bitstreams - check whether this seems 
correct
then

UPDATE BITSTREAM SET description=‘Access flutist' WHERE BITSTREAM_FORMAT_ID = 2 
AND DESCRIPTION = NULL;
COMMIT;

If you truly want to work on all bitstreams without a description skip the 
WHERE clause
UPDATE BITSTREAM SET description=‘Access flutist’ ;
COMMIT;

Monika






Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On Apr 16, 2015, at 7:22 AM, Michelangelo M M Viana 
mailto:mvi...@pucrs.br>> wrote:

Hi,

Can someone tell me what is the proper SQL command to update bitstream 
description of items in DSpace (5.1) PostGreSQL dabatase, especially when it is 
empty (null)? Or even a way to do that using dspace executable (command line)?
We generated items to be imported with the content file without a bitstream 
description, having only “filename.pdf [tab] bundle:ORIGINAL”, so bitstreams 
were imported without their description (empty, null).
To “fix” that we are manually editing the imported items and typing the 
bitstream description (Eg, all of them will have the text: “Access fulltext”), 
however many items were imported (+5000), and it is a very boring task.

Thanks in advance for your help,

Michelangelo

Michelangelo Mazzardo Marques Viana | Support and Development
Coordinator of Libraries Systems. Librarian CRB-10/1306
Pontifical Catholic University of Rio Grande do Sul - PUCRS
Ir.  Jose Otao Central Library | Porto Alegre, RS, Brazil
+55(51) 3353.4371| mvi...@pucrs.br | 
http://www.pucrs.br/biblioteca

Central Library Virtual Tour: http://www.pucrs.br/biblioteca/visitavirtual
Find us on Facebook: http://www.facebook.com/bibliotecapucrs
Follow us on Twitter: https://twitter.com/bibliotecapucrs
Know our spaces on Flickr: http://www.flickr.com/bibliotecapucrs

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF___
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

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF___
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] moving dspace from 1 server to another

2015-04-02 Thread Monika C. Mevenkamp
Sisay

the assetstore contains your bitstream files
structural info about communities, collections, items and the related metadata 
is stored in the database
the user interface often relies on data in the solr search core when 
browsing/searching ..
the solr index is populated as users create content like items.  the index can 
also be updated/recreated by the 'index-discovery’ commandline tool.

You should run
/bin/dspace index-discovery -b
There is something seriously wrong if you can not run this successfully.

testing http://localhost:8080/solr   tells you whether the solr server is up
it does not tell you whether the search core is available
a test whether the search exists and can be queried  try 
http://localhost:8080/tstspace-solr/#/search/query

Also if you increase the log level to DEBUG and restart you will see more of 
what is going on in your system in the dspace.log file.  Change 
/config/log4j.properties where it says around line 41

log4j.logger.org.dspace=INFO, A1
to
log4j.logger.org.dspace=DEBUG, A1


Monika


Monika Mevenkamp
phone: 609-258-4161
Princeton University, Princeton, NJ 08544


On Apr 2, 2015, at 2:47 AM, Webshet, Sisay (ILRI) 
mailto:s.webs...@cgiar.org>> wrote:

Hi Monika,

My solr works well at  http://localhost:8080/solr
My problem is I couldn’t see 20 items that are migrated from old server. 
Basically these are found inside assetstore and
I copied the   assetstore though nothing is displayed.

Thanks,Sisay

From: Monika C. Mevenkamp [mailto:moni...@princeton.edu]
Sent: Wednesday, April 01, 2015 5:20 PM
To: Webshet, Sisay (ILRI)
Cc: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] moving dspace from 1 server to another

This looks like your solr app is not up and running.
You need to copy the  DSPACE-INST/solr directory as well.
Did you copy the solr app along with your   jspui/xmlui app ?
After restarting your web-server on the new  machine try a wget 
http://localhost:8080/solr   to see whether you get a 200 status

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544

On Apr 1, 2015, at 4:44 AM, Webshet, Sisay (ILRI) 
mailto:s.webs...@cgiar.org>> wrote:

Hi all,


I want to move my dspace  4.2 instance from one server to another.

I just moved my database successfully and showing up communities
I copied assetstore  and log folders from the old server  to the new server

However item under a given collection were not visible.
Do I need to copy another folder from old server like solr,upload,etc
on the new server I changed port on tomcat from 8080 to 8081.I don’t think this 
might cause a problem.
I try reindex  it via /dspace index-discovery but displays
Exception: Server at http://localhost:8080/solr/search returned non ok 
status:404, message:Not Found

Can any body has a hint to solve this problem.

Thanks, Sisay

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] small change in log4j.props triggers 'unknown protocol error' in XMLUI

2015-04-01 Thread Monika C. Mevenkamp

If I change the line

log4j.logger.org.apache.cocoon=INFO, 
A3<https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace/config/log4j.properties#L83>
to
log4j.logger.org.apache.cocoon=DEBUG, A3

when I restart I get the nasty 'unknown protocol: resource’  error described in 
my previous message; see below.

this is version 5 with XMLUI

I have no clue why this might be happening. I am running tomcat in development 
mode with
  -Xmx1024M -Xms1024M -Xdebug …   on a MacPro
In the Activity Monitor I see the process gathering up to about 750MB
It is not that my disk is filling up

I tried the same on a Linux VM - with the same nasty crash

I am in the deep deep dark on this one
Anybody ?

Monika


Monika Mevenkamp
phone: 609-258-4161


On Mar 27, 2015, at 12:50 PM, Monika C. Mevenkamp 
mailto:moni...@exchange.princeton.edu>> wrote:

trying again with smaller attachments


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


Begin forwarded message:

From: "Monika C. Mevenkamp" 
mailto:moni...@exchange.princeton.edu>>
To: 
"dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net> 
Tech" 
mailto:dspace-tech@lists.sourceforge.net>>
Subject: XMLUI unknown protocol error
Date: March 27, 2015 at 11:37:01 AM EDT


According to
git diff remotes/upstream/dspace-5_x -- dspace-xmlui
I have one change in css and added log messages in ShibbolethAction.java

To make sure to start with a clean slate, I stopped tomcat, removed logs files, 
did 'rm -rf $CATALINA_HOME/work/‘, checked that I can access solr.

When I bring the UI up under tomcat and go to the homepage, I get an unknown 
protocol error
I have attached the full  dspace and cocoon log files. There is nothing in 
dspace.log.
The cocoon log complains about the exception below. According to the diff 
command aspects,map is the same as the corresponding one in the source tree,

I am thoroughly stumped

Any tips any body ?

Monika

2015-03-27 11:28:53,177 ERROR cocoon.handled  - Sitemap: error when calling 
sub-sitemap
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:89:72
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:79:34
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:78:36
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/sitemap.xmap:487:100
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/sitemap.xmap:486:49
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:85:34
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:84:43
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/aspects/aspects.xmap:83:22
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:179:46
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:101:44
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:97:59
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:82:51
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:78:51
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:70:51
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:171:67
at  - 
file:///Users/monikam/Installations/tstspace/webapps/xmlui/themes/Mirage/sitemap.xmap:167:37






Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544





--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] moving dspace from 1 server to another

2015-04-01 Thread Monika C. Mevenkamp
This looks like your solr app is not up and running.
You need to copy the  DSPACE-INST/solr directory as well.
Did you copy the solr app along with your   jspui/xmlui app ?
After restarting your web-server on the new  machine try a wget 
http://localhost:8080/solr   to see whether you get a 200 status

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Apr 1, 2015, at 4:44 AM, Webshet, Sisay (ILRI) 
mailto:s.webs...@cgiar.org>> wrote:

Hi all,


I want to move my dspace  4.2 instance from one server to another.

I just moved my database successfully and showing up communities
I copied assetstore  and log folders from the old server  to the new server

However item under a given collection were not visible.
Do I need to copy another folder from old server like solr,upload,etc
on the new server I changed port on tomcat from 8080 to 8081.I don’t think this 
might cause a problem.
I try reindex  it via /dspace index-discovery but displays
Exception: Server at http://localhost:8080/solr/search returned non ok 
status:404, message:Not Found

Can any body has a hint to solve this problem.

Thanks, Sisay

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] Cocoon cache

2015-03-27 Thread Monika C. Mevenkamp
I remember reading somewhere something about cleaning out the cocoon cache. 
Can’t find that note anymore
Can somebody please point me  ?

Thanks

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Error after install of DSpace 5.1

2015-03-26 Thread Monika C. Mevenkamp
George

just in case …

dspace was misbehaving mysteriously and badly for me  - I just fixed this by 
doing

chmod +w /Users/monikam/Installations/tstspace/solr/search/conf/schema.xml

If your problems continue - have a look at the access settings on your solr 
directory

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 26, 2015, at 10:11 AM, George Stanley Kozak 
mailto:g...@cornell.edu>> wrote:

Thank you, Monika.

I do check to see that tomcat is shutdown.  Also, I have been finding and 
deleting the write.lock file, as well, but I’ll keep digging.

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



From: Monika C. Mevenkamp [mailto:moni...@princeton.edu]
Sent: Thursday, March 26, 2015 9:59 AM
To: Andrea Schweer
Cc: George Stanley Kozak; 
dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net>
Subject: Re: [Dspace-tech] Error after install of DSpace 5.1

my tomcat sometimes refuses to shutdown
to make sure it is really gone I do

ps -ef | frep omcat

this  may need to be

ps -aux | fgrep omcat

on your system .


Maybe for some strange reason the locks were not removed properly ? Look for 
the lock files:

ls DSPACE_INSTALLDIR/solr/*/data/index/write.lock
ls DSPACE_INSTALLDIR/solr/*/data/spellchecker/write.lock


you can use lsof command to see which process ‘owns’ a file

lsof DSPACE_INSTALLDIR/solr/*/data/index/write.lock


Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544

On Mar 25, 2015, at 8:15 PM, Andrea Schweer 
mailto:schw...@waikato.ac.nz>> wrote:

Hi George,

On 26/03/15 10:55, George Stanley Kozak wrote:
Yes, it has me stumped.  If I restore the Solr indexes and the postgres 
database back to the DSpace 4.2 versions and bring up DSpace 4.2, everything 
works fine.
I do shutdown tomcat when I do the ant step.  Here are my steps, and let me 
know if I have forgotten anything:

That all looks good so far


1)  Shutdown tomcat
2)  Run mvn –U clear package (I also tried with the Mirage2 option)
3)  After successful build, I go to the target/dspace-install directory and 
run “ant update”

As which user do you run ant? Same as the one that tomcat is running as?


4)  After that is successful, I copy the webpass over to tomcat
5)  Restart tomcat
6)  Go to view the system
The system comes up and I have access to the database records, but all browses 
and searches generate the index lock error.

When you look for the write locks after step 5, what are their permissions? You 
should be able to find them (assuming a Linux system) using
find [dspace]/solr -name "*.lock"

cheers,
Andrea




--

Dr Andrea Schweer

IRR Technical Specialist, ITS Information Systems

The University of Waikato, Hamilton, New Zealand

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Error after install of DSpace 5.1

2015-03-26 Thread Monika C. Mevenkamp
my tomcat sometimes refuses to shutdown
to make sure it is really gone I do

ps -ef | frep omcat

this  may need to be

ps -aux | fgrep omcat

on your system .


Maybe for some strange reason the locks were not removed properly ? Look for 
the lock files:

ls DSPACE_INSTALLDIR/solr/*/data/index/write.lock
ls DSPACE_INSTALLDIR/solr/*/data/spellchecker/write.lock


you can use lsof command to see which process ‘owns’ a file

lsof DSPACE_INSTALLDIR/solr/*/data/index/write.lock


Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 25, 2015, at 8:15 PM, Andrea Schweer 
mailto:schw...@waikato.ac.nz>> wrote:

Hi George,

On 26/03/15 10:55, George Stanley Kozak wrote:
Yes, it has me stumped.  If I restore the Solr indexes and the postgres 
database back to the DSpace 4.2 versions and bring up DSpace 4.2, everything 
works fine.
I do shutdown tomcat when I do the ant step.  Here are my steps, and let me 
know if I have forgotten anything:

That all looks good so far

1)  Shutdown tomcat
2)  Run mvn –U clear package (I also tried with the Mirage2 option)
3)  After successful build, I go to the target/dspace-install directory and 
run “ant update”

As which user do you run ant? Same as the one that tomcat is running as?

4)  After that is successful, I copy the webpass over to tomcat
5)  Restart tomcat
6)  Go to view the system
The system comes up and I have access to the database records, but all browses 
and searches generate the index lock error.

When you look for the write locks after step 5, what are their permissions? You 
should be able to find them (assuming a Linux system) using
find [dspace]/solr -name "*.lock"

cheers,
Andrea



--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] Browse and Search & Handle-Server

2015-03-26 Thread Monika C. Mevenkamp
About Handles: have a look at  
https://wiki.duraspace.org/display/DSDOC5x/Installing+DSpace#InstallingDSpace-TheHandleServer
running a local handle server is optional though

At Princeton we use EZID<https://ezid.cdlib.org>  - but that requires a bit of 
custom coding

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 25, 2015, at 12:28 PM, Naveen Srinivasan 
mailto:nsrin...@hawk.iit.edu>> wrote:

Hi Monika,

Thanks for the suggestions. I am able to run the index-discovery command 
without any issues as of now .As data is huge .Its running for more than an 
hour and still running. I can see the log is updated too in the log folder 
which is increasing steadily.

dspace.cfg  looks good and those changes were already taken care. I hope after 
index-discovery it should work .But I have question on Handle-Server ; Do we 
need to register our service in http://www.handle.net/service_agreement.html ? 
Thanks

Regards,
Naveen
Illinois Institute of Technology
Graduate (MCS)
Mob : (312) 774-1687

On Tue, Mar 24, 2015 at 9:20 AM, Monika C. Mevenkamp 
mailto:moni...@princeton.edu>> wrote:

index-discovery is the command that  creates and updates the solr index

Your solr server is up iff you do not get any exceptions when running this 
command.

To fully build the index run the command with the options   -b -s

You should also have a look at your solr server.  Find instructions on the 
DSPACE wiki about how to get access from your locally running browser : 
https://wiki.duraspace.org/display/DSPACE/Solr.

Choose the ‘search’ index in the drop down on the left and have a look whether 
there is anything in the index .

make sure you do have discovery enabled in your dspace.cfg file
event.dispatcher.default.consumers = versioning, discovery, eperson, harvester
or even more authoritatively run the command
/bin/dspace dsprop -property event.dispatcher.default.consumers


Monika






Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 23, 2015, at 1:52 PM, Naveen Srinivasan 
mailto:nsrin...@hawk.iit.edu>> wrote:

Hi Team

I have installed Dspace 5.1 version and copied Asset Store and themes to the 
new server from old server.Site is up and everything looks good except couple 
of items.

*  Browse and Search index is not working ,When i search I get  :"Sorry, there 
are no results for this browse."

* Similarly when i use Item submission/ upload ,I am getting blank page after 
selecting any collection.

Is this because of Handle-Server ? I did not register the handle-server yet. 
Please suggest me how to fix the issue.

I ran few commands ,
 - index-db-browse: General browse index command (requires extra parameters)
 - index-discovery: Update Discovery Solr Search Index
 - index-lucene-init: Initialise the Lucene search and browse indexes
 - index-lucene-update: Update the Lucene search and browse indexes

These commands didn't help me to fix the issue. Thanks

Regards,
Naveen
Illinois Institute of Technology
Graduate (MCS)
Mob : (312) 774-1687
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] upgrade to dspace 5 - metadata missing ?

2015-03-25 Thread Monika C. Mevenkamp
I answered my own question -  and just in case anybody is interested 

The database upgrade in 
sqlmigration/oracle/V5.0_2014.09.26__DS-1582_Metadata_For_All_Objects.sql
had not fully executed so that properties formerly stored in various table 
(bitstream, groups, ..) had not been moved into the metadatavalues tables. 

Once I ran the relevant sql commands life started to improve 

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 16, 2015, at 5:42 PM, Monika C. Mevenkamp  
> wrote:
> 
> resending -my last message appears to have gone out without is message body 
> 
> 
> 
> DSPACE 5 now does a lot more with metadata. After the upgrade I see that 
> there are two new schemes: 
> 
> SELECT * FROM METADATASCHEMAREGISTRY; 
> 
>   METADATA_SCHEMA_ID   NAMESPACE   SHORT_ID   
>
>1   http://dublincore.org/documents/dcmi-terms/ dc
>2   http://www.princeton.edu/   pu
>21  http://purl.org/dc/terms/   dcterms
>22  http://dspace.org/eperson   eperson 
> 
> There are a good number of related fields for the new schemas: 
> 
> SELECT  MF.* FROM METADATAFIELDREGISTRY MF WHERE MF.METADATA_SCHEMA_ID  > 2;
> 
>   METADATA_FIELD_ID  METADATA_SCHEMA_ID  ELEMENT
>   243 21  abstract
>   244 21  accessRights
>   245 21  accrualMethod
>   ...
>   ... 
>   296 21  type
>   297 21  valid
>   298 22  firstname
>   299 22  lastname
>   300 22  phone
>   301 22  language
> 
> 
> But when I look into the metadata value table there is not a single related  
> value 
> 
> SELECT * FROM METADATAVALUE MV WHERE   MV.METADATA_FIELD_ID in 
>(SELECT  MF.METADATA_FIELD_ID FROM METADATAFIELDREGISTRY MF WHERE 
> MF.METADATA_SCHEMA_ID  > 2);
> no rows selected
> 
> 
> This does not feel right - is there a step I overlooked ?  
> I sent a question earlier in about version 5 not recognizing an IP group  - 
> see enclosed message below. I suspect that this may be a related issue.
> 
> Monika
> 
> 
> Monika Mevenkamp
> phone: 609-258-4161
> Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, 
> NJ 08544
> 
> 
>> On Mar 10, 2015, at 4:09 PM, Monika C. Mevenkamp 
>>  wrote:
>> 
>> I am upgrading to dspace 5 from 1.8 
>> 
>> I have ip authentication enabled but the system does not recognize the ip 
>> group 
>> It looks in the metadata table with 
>> 
>> 
>> DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * 
>> from epersongroup e LEFT JOIN metadatavalue m on (m.resource_id = 
>> e.eperson_group_id and m.resource_type_id = ? and m.metadata_field_id = ?) 
>> where  dbms_lob.substr(m.text_value) = ?"  with parameters: 
>> 6,64,Princeton_IPs
>> 
>> Looking into my database I see that there is not a single  metadatvalue for 
>> resource type 6. 
>> I am fairly convinced I could ‘fix’ this by copying values from the 
>> EPERSONGROUP table to the metadata value table. Is that what I should do ? 
>> Does anybody have a handy UPDATE SQL statement ready to go  ? 
>> 
>> Monika
>> 
>> 
>> 
>> ____
>> Monika Mevenkamp
>> phone: 609-258-4161
>> Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, 
>> NJ 08544
> 
> Monika Mevenkamp
> phone: 609-258-4161
> Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, 
> NJ 08544
> 
> 
>> On Mar 16, 2015, at 5:36 PM, Monika C. Mevenkamp  
>> wrote:
>> 
> 
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiq

Re: [Dspace-tech] Browse and Search & Handle-Server

2015-03-24 Thread Monika C. Mevenkamp

index-discovery is the command that  creates and updates the solr index

Your solr server is up iff you do not get any exceptions when running this 
command.

To fully build the index run the command with the options   -b -s

You should also have a look at your solr server.  Find instructions on the 
DSPACE wiki about how to get access from your locally running browser : 
https://wiki.duraspace.org/display/DSPACE/Solr.

Choose the ‘search’ index in the drop down on the left and have a look whether 
there is anything in the index .

make sure you do have discovery enabled in your dspace.cfg file
event.dispatcher.default.consumers = versioning, discovery, eperson, harvester
or even more authoritatively run the command
/bin/dspace dsprop -property event.dispatcher.default.consumers


Monika






Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 23, 2015, at 1:52 PM, Naveen Srinivasan 
mailto:nsrin...@hawk.iit.edu>> wrote:

Hi Team

I have installed Dspace 5.1 version and copied Asset Store and themes to the 
new server from old server.Site is up and everything looks good except couple 
of items.

*  Browse and Search index is not working ,When i search I get  :"Sorry, there 
are no results for this browse."

* Similarly when i use Item submission/ upload ,I am getting blank page after 
selecting any collection.

Is this because of Handle-Server ? I did not register the handle-server yet. 
Please suggest me how to fix the issue.

I ran few commands ,
 - index-db-browse: General browse index command (requires extra parameters)
 - index-discovery: Update Discovery Solr Search Index
 - index-lucene-init: Initialise the Lucene search and browse indexes
 - index-lucene-update: Update the Lucene search and browse indexes

These commands didn't help me to fix the issue. Thanks

Regards,
Naveen
Illinois Institute of Technology
Graduate (MCS)
Mob : (312) 774-1687
--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. 
http://goparallel.sourceforge.net/___
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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] IntelliJ IDEA + tomcat7 + XMLUI + Mac => Eexception

2015-03-23 Thread Monika C. Mevenkamp
I found the issue myself


I followed Bram’s  Intellij Setp with 
DSPACE<https://www.youtube.com/watch?v=mrLl1qPsy6I> video to the end  and 
solved the issue.

DSPACE did not come up properly since I had not set up context xml files in 
$CATALINA_HOME/conf/Catalina/localhost
Now I can finally debug live web app code - as opposed to just logging and 
tracing … At least I think I can

Thanks for the video

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 20, 2015, at 9:11 AM, Àlex Magaz Graça 
mailto:alexandre.ma...@udl.cat>> wrote:

El 19/03/15 a les 23:13, Monika C. Mevenkamp ha escrit:
I have a working XMLUI code base - aka if I go the normal route of mvn
package; ant updatelocalhost:8080/xmlui gives me the expected home
page.

I followed the written instructions on the wiki explaining how to do the
developer integration
https://wiki.duraspace.org/display/DSPACE/IDE+Integration+-+DSpace+and+IDEA.

I did discover Bram’s youtube after the fact - some nice ideas there -
so I added a link to the wiki page. The Youtube has a comment about the
same NullPointerException that I have. So here a few more specifics

I defined a Run/Debug configuration for tomcat with two Deployment wars:
xmlui.war and sol.war.   To make tomcat come up I had to do the funny
link from /usr/local/Cellar/tomcat/7.0.54/libexec/bin/${dspace.dir} to
my installation directory. When I start a debug session I see that the
process comes up as follows:

/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java
-Djava.util.logging.config.file=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent/conf/logging.properties

-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51692,suspend=y,server=n

-Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Djava.rmi.server.hostname=127.0.0.1
-Djava.endorsed.dirs=/usr/local/Cellar/tomcat/7.0.54/libexec/endorsed
-classpath
/usr/local/Cellar/tomcat/7.0.54/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/7.0.54/libexec/bin/tomcat-juli.jar

-Dcatalina.base=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent

-Dcatalina.home=/usr/local/Cellar/tomcat/7.0.54/libexec
-Djava.io.tmpdir=/usr/local/Cellar/tomcat/7.0.54/libexec/temp
org.apache.catalina.startup.Bootstrap start

I can set breakpoints in the code and all that - which is a big
improvement over adding traces and recompiling, redeploying. But when I
visit localhost:8080  I get an exception , which I do not get when going
the mvn/ant route. So there is something wrong in the way IDEAS puts
things together. I went and compares the xmlui  webapp directories
generated by mvn/ant versus IDEA - but nothing stuck out. I am attaching
the diffs in case somebody wants to look.

I should probably also mention - this is dspace 5, with a few config
changes, running with a database that mentions all sorts of bitstreams
that do not exist in the local assetstore. This is ugly - I know - but
it does not explain the difference in behaviour - since we are talking
about the same code and configs put together slightly differently.


I am sure this is a small something somewhere - but what and where ?

Monika



ERROR org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer @
java.lang.NullPointerException
at
org.dspace.discovery.SearchUtils.getDiscoveryConfiguration(SearchUtils.java:51)
at
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getQueryArgs(SidebarFacetsTransformer.java:317)
at
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.performSearch(SidebarFacetsTransformer.java:156)
at
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getValidity(SidebarFacetsTransformer.java:119)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy25.getValidity(Unknown Source)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.getValidityForInternalPipeline(AbstractCachingProcessingPipeline.java:987)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupValidities(AbstractCachingProcessingPipeline.java:482)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:720)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java

[Dspace-tech] IntelliJ IDEA + tomcat7 + XMLUI + Mac => Eexception

2015-03-19 Thread Monika C. Mevenkamp
I have a working XMLUI code base - aka if I go the normal route of mvn package; 
ant updatelocalhost:8080/xmlui gives me the expected home page.

I followed the written instructions on the wiki explaining how to do the 
developer integration 
https://wiki.duraspace.org/display/DSPACE/IDE+Integration+-+DSpace+and+IDEA. I 
did discover Bram’s youtube after the fact - some nice ideas there - so I added 
a link to the wiki page. The Youtube has a comment about the same 
NullPointerException that I have. So here a few more specifics

I defined a Run/Debug configuration for tomcat with two Deployment wars: 
xmlui.war and sol.war.   To make tomcat come up I had to do the funny link from 
/usr/local/Cellar/tomcat/7.0.54/libexec/bin/${dspace.dir} to my installation 
directory. When I start a debug session I see that the process comes up as 
follows:

/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/bin/java 
-Djava.util.logging.config.file=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent/conf/logging.properties
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 
-agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51692,suspend=y,server=n 
-Dcom.sun.management.jmxremote= -Dcom.sun.management.jmxremote.port=1099 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.authenticate=false 
-Djava.rmi.server.hostname=127.0.0.1 
-Djava.endorsed.dirs=/usr/local/Cellar/tomcat/7.0.54/libexec/endorsed 
-classpath 
/usr/local/Cellar/tomcat/7.0.54/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/7.0.54/libexec/bin/tomcat-juli.jar
 
-Dcatalina.base=/Users/monikam/Library/Caches/IntelliJIdea14/tomcat/Unnamed_dspace-parent
 -Dcatalina.home=/usr/local/Cellar/tomcat/7.0.54/libexec 
-Djava.io.tmpdir=/usr/local/Cellar/tomcat/7.0.54/libexec/temp 
org.apache.catalina.startup.Bootstrap start

I can set breakpoints in the code and all that - which is a big improvement 
over adding traces and recompiling, redeploying. But when I visit 
localhost:8080  I get an exception , which I do not get when going the mvn/ant 
route. So there is something wrong in the way IDEAS puts things together. I 
went and compares the xmlui  webapp directories generated by mvn/ant versus 
IDEA - but nothing stuck out. I am attaching the diffs in case somebody wants 
to look.

I should probably also mention - this is dspace 5, with a few config changes, 
running with a database that mentions all sorts of bitstreams that do not exist 
in the local assetstore. This is ugly - I know - but it does not explain the 
difference in behaviour - since we are talking about the same code and configs 
put together slightly differently.


I am sure this is a small something somewhere - but what and where ?

Monika



ERROR org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer @
java.lang.NullPointerException
at 
org.dspace.discovery.SearchUtils.getDiscoveryConfiguration(SearchUtils.java:51)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getQueryArgs(SidebarFacetsTransformer.java:317)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.performSearch(SidebarFacetsTransformer.java:156)
at 
org.dspace.app.xmlui.aspect.discovery.SidebarFacetsTransformer.getValidity(SidebarFacetsTransformer.java:119)
at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy25.getValidity(Unknown Source)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.getValidityForInternalPipeline(AbstractCachingProcessingPipeline.java:987)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupValidities(AbstractCachingProcessingPipeline.java:482)
at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.setupPipeline(AbstractCachingProcessingPipeline.java:720)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.preparePipeline(AbstractProcessingPipeline.java:466)
at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.prepareInternal(AbstractProcessingPipeline.java:480)
at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at 
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
at com.sun.proxy.$Proxy20.prepareInternal(Unknown Source)
at 
org.apache.cocoon.components.source.impl.SitemapSource.init(SitemapSource.java:292)
at 
org.apache.cocoon.components.source.impl.SitemapSource.(SitemapSource.java:148)
at 
org.apa

[Dspace-tech] upgrade to dspace 5 - metadata missing ?

2015-03-16 Thread Monika C. Mevenkamp
resending -my last message appears to have gone out without is message body 



DSPACE 5 now does a lot more with metadata. After the upgrade I see that there 
are two new schemes: 

SELECT * FROM METADATASCHEMAREGISTRY; 

METADATA_SCHEMA_ID   NAMESPACE   SHORT_ID   
   
1   http://dublincore.org/documents/dcmi-terms/ dc
2   http://www.princeton.edu/   pu
21  http://purl.org/dc/terms/   dcterms
22  http://dspace.org/eperson   eperson 

There are a good number of related fields for the new schemas: 

SELECT  MF.* FROM METADATAFIELDREGISTRY MF WHERE MF.METADATA_SCHEMA_ID  > 2;

METADATA_FIELD_ID  METADATA_SCHEMA_ID  ELEMENT
243 21  abstract
244 21  accessRights
245 21  accrualMethod
...
... 
296 21  type
297 21  valid
298 22  firstname
299 22  lastname
300 22  phone
301 22  language


But when I look into the metadata value table there is not a single related  
value 

SELECT * FROM METADATAVALUE MV WHERE   MV.METADATA_FIELD_ID in 
(SELECT  MF.METADATA_FIELD_ID FROM METADATAFIELDREGISTRY MF WHERE 
MF.METADATA_SCHEMA_ID  > 2);
no rows selected


This does not feel right - is there a step I overlooked ?  
I sent a question earlier in about version 5 not recognizing an IP group  - see 
enclosed message below. I suspect that this may be a related issue.

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 10, 2015, at 4:09 PM, Monika C. Mevenkamp 
>  wrote:
> 
> I am upgrading to dspace 5 from 1.8 
> 
> I have ip authentication enabled but the system does not recognize the ip 
> group 
> It looks in the metadata table with 
> 
> 
> DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from 
> epersongroup e LEFT JOIN metadatavalue m on (m.resource_id = 
> e.eperson_group_id and m.resource_type_id = ? and m.metadata_field_id = ?) 
> where  dbms_lob.substr(m.text_value) = ?"  with parameters: 6,64,Princeton_IPs
> 
> Looking into my database I see that there is not a single  metadatvalue for 
> resource type 6. 
> I am fairly convinced I could ‘fix’ this by copying values from the 
> EPERSONGROUP table to the metadata value table. Is that what I should do ? 
> Does anybody have a handy UPDATE SQL statement ready to go  ? 
> 
> Monika
> 
> 
> 
> 
> Monika Mevenkamp
> phone: 609-258-4161
> Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, 
> NJ 08544

Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 16, 2015, at 5:36 PM, Monika C. Mevenkamp  
> wrote:
> 

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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] upgrade to dspace 5 - metadata missing ?

2015-03-16 Thread Monika C. Mevenkamp
DSPACE 5 now does a lot more with metadata. After the upgrade I see that there 
are two new schemes:

SELECT * FROM METADATASCHEMAREGISTRY;

METADATA_SCHEMA_ID   NAMESPACE   SHORT_ID
1   http://dublincore.org/documents/dcmi-terms/ dc
2   http://www.princeton.edu/   pu
21  http://purl.org/dc/terms/   dcterms
22  http://dspace.org/eperson   eperson

There are a good number of related fields for the new schemas:

SELECT  MF.* FROM METADATAFIELDREGISTRY MF WHERE MF.METADATA_SCHEMA_ID  > 2;

METADATA_FIELD_ID  METADATA_SCHEMA_ID  ELEMENT
243 21 abstract
244 21 accessRights
245 21 accrualMethod
...
...
296 21 type
297 21 valid
298 22 firstname
299 22 lastname
300 22 phone
301 22 language


But when I look into the metadata value table there is not a single related  
value

SELECT * FROM METADATAVALUE MV WHERE   MV.METADATA_FIELD_ID in
(SELECT  MF.METADATA_FIELD_ID FROM METADATAFIELDREGISTRY MF WHERE 
MF.METADATA_SCHEMA_ID  > 2);
no rows selected


This does not feel right - is there a step I overlooked ?
I sent a question earlier in about version 5 not recognizing an IP group  - see 
enclosed message below. I suspect that this may be a related issue.

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 10, 2015, at 4:09 PM, Monika C. Mevenkamp 
mailto:moni...@exchange.princeton.edu>> wrote:

I am upgrading to dspace 5 from 1.8

I have ip authentication enabled but the system does not recognize the ip group
It looks in the metadata table with


DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from 
epersongroup e LEFT JOIN metadatavalue m on (m.resource_id = e.eperson_group_id 
and m.resource_type_id = ? and m.metadata_field_id = ?) where  
dbms_lob.substr(m.text_value) = ?"  with parameters: 6,64,Princeton_IPs

Looking into my database I see that there is not a single  metadatvalue for 
resource type 6.
I am fairly convinced I could ‘fix’ this by copying values from the 
EPERSONGROUP table to the metadata value table. Is that what I should do ?
Does anybody have a handy UPDATE SQL statement ready to go  ?

Monika




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544



--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] CAS with dspace 5

2015-03-12 Thread Monika C. Mevenkamp
I am trying to add CAS authentication to dspace 5 (JSPUI)

I added

+
+ cas
+ casclient
+ 2.1.1
+   

which according to 
http://search.maven.org/#artifactdetails|cas|casclient|2.1.1|jar
  is the latest version

The pom there says that casclient has

  servletapi
  servletapi
  2.3


Looking at the tomcat which version 
page  I gather that I am stuck with tomcat5.

Am I right about that ?
Is there another CAS integration ?

Monika





Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] ip auentication and upgrade to dspace 5

2015-03-10 Thread Monika C. Mevenkamp
I am upgrading to dspace 5 from 1.8

I have ip authentication enabled but the system does not recognize the ip group
It looks in the metadata table with


DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query "select * from 
epersongroup e LEFT JOIN metadatavalue m on (m.resource_id = e.eperson_group_id 
and m.resource_type_id = ? and m.metadata_field_id = ?) where  
dbms_lob.substr(m.text_value) = ?"  with parameters: 6,64,Princeton_IPs

Looking into my database I see that there is not a single  metadatvalue for 
resource type 6.
I am fairly convinced I could ‘fix’ this by copying values from the 
EPERSONGROUP table to the metadata value table. Is that what I should do ?
Does anybody have a handy UPDATE SQL statement ready to go  ?

Monika




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] install error for upstream/master

2015-03-06 Thread Monika C. Mevenkamp
That was it - an indirect dependency. The older servlet jar vanished after 
removing 
-
-com.google.oauth-client
-google-oauth-client-jetty
-
from dspace-api.pom.xml 

mvn is still somewhat mysterious to me.  make on steroids with so many options 
it makes your head spin. I have seen the tutorials that explain how to compile 
HelloWorld.java. But those are not very helpful when dealing with poms 
referring to poms.  Best way to search for apps / jars/ version … mvm just 
some packages .. analyzing an issue 

In short : does anybody have a favorite tutorial / book to recommend ? 

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 5, 2015, at 9:16 AM, Mark H. Wood  wrote:
> 
> On Wed, Mar 04, 2015 at 07:34:44PM +0000, Monika C. Mevenkamp wrote:
>> Ah - Yikes - Thanks
>> 
>> It compiles now   after I changed the dependencies to rely on  
>> javax.servlet-api
>> Unfortunately this had to be done in all sorts of pom.xml files
>> 
>> BUT
>> 
>> after the compile I still find WEB-INF/lib/servlet-api-2.5-20081211.jar in 
>> webapps/*/WEB-INF/lib directories
>> 
>> when I do
>>> ant update
>>> rm $DSPACE_HOME/webapps/jspui/WEB-INF/lib/*servlet*
>> then restart tomcat and localhost:8080/jspui comes up fine
> 
> My reading of the output of 'mvn dependency:tree' suggests that this
> is org.mortbay.jetty:servlet-api, pulled in transitively due to the
> dependency on org.mortbay.jetty.jetty by
> com.google.oauth-client-jetty, which for some reason is a dependency
> of dspace-api.  I wonder what happens when we exclude
> o.m.j:servlet-api?
> 
> It looks to me as though at least oauth-client-jetty, and perhaps
> others, should be in test.  That's probably a better fix.
> 
> -- 
> Mark H. Wood
> Lead Technology Analyst
> 
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. 
> http://goparallel.sourceforge.net/___
> 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

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
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] install error for upstream/master

2015-03-04 Thread Monika C. Mevenkamp
Ah - Yikes - Thanks

It compiles now   after I changed the dependencies to rely on  
javax.servlet-api
Unfortunately this had to be done in all sorts of pom.xml files

BUT

after the compile I still find WEB-INF/lib/servlet-api-2.5-20081211.jar in 
webapps/*/WEB-INF/lib directories

when I do
> ant update
> rm $DSPACE_HOME/webapps/jspui/WEB-INF/lib/*servlet*
then restart tomcat and localhost:8080/jspui comes up fine

This is an ugly hack - but good enough for now.  I’d be curious to know though 
why insist in adding the old servlet jar,
but not curious enough to keep digging.

Monika

the diff in case anybody cares to look:




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


> On Mar 4, 2015, at 1:00 PM, Mark H. Wood  wrote:
>
> On Wed, Mar 04, 2015 at 03:19:02PM +0000, Monika C. Mevenkamp wrote:
>> Thanks Andrea  and a follow up question to mvn experts
>>
>> My tomcat8 says in its release notes
>>* servlet-api.jar (Servlet 3.1 API)
>> so I changed the main pom to say
>> 
>>   javax.servlet
>>   servlet-api
>>   3.1.0
>> 
>>
>> then a couple rounds of unsuccessful mvn package attempts
>>
>> Finally  I removed  ~/.m2/repository/javax  and tried again
>>> mvn clean
>>> mvn -U package
>>
>> this triggers downloading of all sorts of a javax packages. As you can see 
>> in the list below there is a
>> javax/servlet/servlet-api/3.1.0/servlet-api-3.1.0.jar and pom
>>
>> despite this I get the error
>>
>> [ERROR] Failed to execute goal on project dspace-services: Could not resolve 
>> dependencies for project org.dspace:dspace-services:jar:6.0-SNAPSHOT: Could 
>> not find artifact javax.servlet:servlet-api:jar:3.1.0 in sonatype-releases 
>> (https://oss.sonatype.org/content/repositories/releases/)
>>
>> I am at a loss - since the jar/pom was downloaded - why is maven / am I 
>> confused  ?
>
> They changed the name of the artifact starting with 3.0.1.  The GAV
> coordinates are now javax.servlet:javax.servlet-api:3.1.0.
>
> http://search.maven.org/#artifactdetails|javax.servlet|javax.servlet-api|3.1.0|jar
>
> Personally I think this sort of renaming should be a hanging offense.
>
> --
> Mark H. Wood
> Lead Technology Analyst
>
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu<http://www.ulib.iupui.edu>
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. 
> http://goparallel.sourceforge.net/___
> 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-api/pom.xml   |  7 +++
 dspace-jspui/pom.xml |  2 +-
 dspace-lni/dspace-lni-client/pom.xml |  2 +-
 dspace-lni/pom.xml   |  4 ++--
 dspace-oai/pom.xml   |  2 +-
 dspace-rdf/pom.xml   |  2 +-
 dspace-rest/pom.xml  |  4 ++--
 dspace-services/pom.xml  |  2 +-
 dspace-solr/pom.xml  |  3 +--
 dspace-sword/pom.xml |  2 +-
 dspace-swordv2/pom.xml   |  2 +-
 dspace-xmlui/pom.xml |  2 +-
 dspace/modules/additions/pom.xml |  2 +-
 dspace/modules/jspui/pom.xml |  4 ++--
 dspace/modules/lni/pom.xml   |  4 ++--
 dspace/modules/oai/pom.xml   |  2 +-
 dspace/modules/rdf/pom.xml   |  2 +-
 dspace/modules/rest/pom.xml  |  2 +-
 dspace/modules/sword/pom.xml |  2 +-
 dspace/modules/swordv2/pom.xml   |  2 +-
 dspace/modules/xmlui/pom.xml |  2 +-
 dspace/pom.xml   |  2 +-
 pom.xml  | 12 +---
 23 files changed, 37 insertions(+), 33 deletions(-)
diff --git a/dspace-api/pom.xml b/dspace-api/pom.xml
index a85383b..487e317 100644
--- a/dspace-api/pom.xml
+++ b/dspace-api/pom.xml
@@ -365,7 +365,7 @@
 
 
 javax.servlet
-servlet-api
+javax.servlet-api
 provided
 
 
@@ -569,10 +569,9 @@
 
 
 
-com.oracle
-ojdbc6
+postgre

Re: [Dspace-tech] install error for upstream/master

2015-03-04 Thread Monika C. Mevenkamp
Thanks Andrea  and a follow up question to mvn experts

My tomcat8 says in its release notes
* servlet-api.jar (Servlet 3.1 API)
so I changed the main pom to say

   javax.servlet
   servlet-api
   3.1.0


then a couple rounds of unsuccessful mvn package attempts

Finally  I removed  ~/.m2/repository/javax  and tried again
> mvn clean
> mvn -U package

this triggers downloading of all sorts of a javax packages. As you can see in 
the list below there is a
javax/servlet/servlet-api/3.1.0/servlet-api-3.1.0.jar and pom

despite this I get the error

[ERROR] Failed to execute goal on project dspace-services: Could not resolve 
dependencies for project org.dspace:dspace-services:jar:6.0-SNAPSHOT: Could not 
find artifact javax.servlet:servlet-api:jar:3.1.0 in sonatype-releases 
(https://oss.sonatype.org/content/repositories/releases/)

I am at a loss - since the jar/pom was downloaded - why is maven / am I 
confused  ?

Any suggestions ?

Monika


contents of .m2/repository/javax/:
/Users/monikam/.m2/repository/javax/activation/activation/1.1/_remote.repositories
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar.lastUpdated
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar.sha1
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.pom
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.pom.lastUpdated
/Users/monikam/.m2/repository/javax/activation/activation/1.1/activation-1.1.pom.sha1
/Users/monikam/.m2/repository/javax/mail/mail/1.4/_remote.repositories
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar.lastUpdated
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar.sha1
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.pom
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.pom.lastUpdated
/Users/monikam/.m2/repository/javax/mail/mail/1.4/mail-1.4.pom.sha1
/Users/monikam/.m2/repository/javax/servlet/servlet-api/3.1.0/servlet-api-3.1.0.jar.lastUpdated
/Users/monikam/.m2/repository/javax/servlet/servlet-api/3.1.0/servlet-api-3.1.0.pom.lastUpdated




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 3, 2015, at 7:16 PM, Andrea Schweer 
mailto:schw...@waikato.ac.nz>> wrote:

Hi Monika,

On 04/03/15 12:42, Monika C. Mevenkamp wrote:
I am trying to run upstream/master with code changes of mine inside dspace-api

I created a new database
did mvn package  and ran fresh_install
when going to home page I get the following error

http://localhost:8080/jspui/internal-error
-- Method: GET
-- Parameters were:

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [94] in the generated java file: 
[/usr/local/Cellar/tomcat/8.0.17/libexec/work/Catalina/localhost/jspui/org/apache/jsp/index_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest

My first suspect would be the version of servlet-api that comes with your 
tomcat install. A quick web search for "The method getDispatcherType() is 
undefined for the type HttpServletRequest" leads to this: 
http://stackoverflow.com/questions/26436463/getdispatchertype-is-undefined-for-the-type-httpservletrequest

>From this line in the top-level pom, it looks to me like DSpace expects 
>version 2.5 of servlet-api to be provided by your web application container:
https://github.com/DSpace/DSpace/blob/master/pom.xml#L1030

I don't know whether you can just swap out the servlet-api jar that comes with 
tomcat. One of the answers to the stackoverflow question suggests going the 
other direction, ie changing the version number in the DSpace pom file to what 
is provided by your web application container (3.1, it looks like?). I suspect 
in that case you'll get compile-time errors about the same thing.

The DSpace docs say we support Tomcat 7 or newer; if this problem persists for 
Tomcat 8 then this might be worth a Jira issue.

cheers,
Andrea


--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand

--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wik

[Dspace-tech] install error for upstream/master

2015-03-03 Thread Monika C. Mevenkamp
I am trying to run upstream/master with code changes of mine inside dspace-api

I created a new database
did mvn package  and ran fresh_install
when going to home page I get the following error

http://localhost:8080/jspui/internal-error
-- Method: GET
-- Parameters were:

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [94] in the generated java file: 
[/usr/local/Cellar/tomcat/8.0.17/libexec/work/Catalina/localhost/jspui/org/apache/jsp/index_jsp.java]
The method getDispatcherType() is undefined for the type HttpServletRequest

I am running with tomcat  which I installed via homebrew on my MAC

The offending line in the generated index.jsp.java file reads

if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && 
!"HEAD".equals(_jspx_method) && 
!javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {


It looks to me that I ended up with a bad version of something somewhere - can 
somebody I’ve a tip ?

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/___
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] HANDLE table entries without resource_id

2015-02-02 Thread Monika C. Mevenkamp
the query

SELECT HANDLE_ID, RESOURCE_TYPE_ID, RESOURCE_ID, HANDLE  FROM HANDLE WHERE 
RESOURCE_ID  IS NULL;

finds a couple entries

Is there a reason why I should not delete them ?

Monika


Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
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] running checker with --prune gives SQLException

2015-01-30 Thread Monika C. Mevenkamp
This is DSPACE 1.8 (with minimal changes in the checker code  - aka I pushed 
the DB connection up in the call stack so it is shared instead of being 
recreated each time the DB is touched)


/dspace/bin/dspace checker -p
Problem pruning results: ORA-30036: unable to extend segment by 8 in undo 
tablespace 'UNDOTBS'

java.sql.SQLException: ORA-30036: unable to extend segment by 8 in undo 
tablespace 'UNDOTBS'

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:447)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:951)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:513)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:227)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:208)
at 
oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1046)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1336)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3613)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3694)
at 
oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1354)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.dspace.checker.ChecksumHistoryDAO.deleteHistoryByDateAndCode(ChecksumHistoryDAO.java:230)
at org.dspace.checker.ChecksumHistoryDAO.prune(ChecksumHistoryDAO.java:258)
at org.dspace.checker.ResultsPruner.prune(ResultsPruner.java:245)
at org.dspace.app.checker.ChecksumChecker.main(ChecksumChecker.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:183)
Exception: Problem pruning results: ORA-30036: unable to extend segment by 8 in 
undo tablespace 'UNDOTBS'


Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
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] jruby dscriptor

2015-01-21 Thread Monika C. Mevenkamp
Hi Jacob

I think this is very cool

I figured out how to run a little program via

bundle exec jruby counts.rb

but I can’t get an interactive thing going

> jirb -I lib
or
>  bundle exec jirb

leads to a complaint about  cannot convert instance of class 
org.jruby.RubyObject to class org.dspace.core.Context

do you have any hints ?
I’d love to be able to do a bit of interactive work with this

Monika


jruby-1.7.15 :001 > require 'counts'
INFO: Loading provided config file: 
/Users/monikam/Installations/pri_devl/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /Users/monikam/Installations/pri_devl/config/log4j.properties
TypeError: cannot convert instance of class org.jruby.RubyObject to class 
org.dspace.core.Context
from /Users/monikam/Documents/GDSpace/jruby/counts.rb:9:in `(root)'
from org/jruby/RubyKernel.java:1065:in `require'
from 
/Users/monikam/.rvm/rubies/jruby-1.7.15/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in
 `(root)'
from 
/Users/monikam/.rvm/rubies/jruby-1.7.15/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in
 `require'
from org/jruby/RubyKernel.java:1101:in `eval'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1501:in `loop'
from org/jruby/RubyKernel.java:1264:in `catch'
from org/jruby/RubyKernel.java:1264:in `catch'
from /Users/monikam/.rvm/rubies/jruby-1.7.15/bin/jirb:13:in `(root)'



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Jan 21, 2015, at 12:27 PM, Brown, Jacob 
mailto:j.h.br...@tcu.edu>> wrote:

Hi Layale,

I don’t think there are really any built-in batch processes for working with 
bitstream permissions.

I’ve mentioned this before, and I don’t want to spam the list with it too much, 
but I’m working on a tool that helps set up a scripting environment for DSpace 
using the JRuby programming language. This tool allows one to access the DSpace 
core API and perform actions within a DSpace system.

The tool is available here: https://github.com/kardeiz/dscriptor

I’ve added an example script for your situation here (note that this file would 
require some modification, and I am not exactly sure what you mean by 
“[changing] according to the publication 
date”):https://github.com/kardeiz/dscriptor/blob/master/examples/change_policies_conditionally.rb.

The documentation is still somewhat sparse, and using the tool does require 
some programming knowledge, but if you are familiar with Java or Ruby (or a 
similar scripting language), I encourage you to take a look.

Please note that this tool has the potential to cause unwanted changes to your 
system, so please be careful. If you choose to use it, I encourage you to run 
the script on a test environment first and backup your database before running 
in production.

Jacob Brown
Digital Services Librarian
j.h.br...@tcu.edu
817-257-5339



From: Layale Bassil [mailto:l...@aub.edu.lb]
Sent: Wednesday, January 21, 2015 9:41 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Authorization of DSpace items...
Importance: High

Hello All,

As far as I know, authorizations in DSpace are usually set for a community, or 
collection, or even at the item level.  If we setup the authorization for a 
collection, then we load data, all items inherit that setup before loading, and 
we cannot globally change the authorization for those items.

Currently, on the DSpace instance I am working on (version 4.2), all item 
bitstreams are not accessible by users; however, I need to change the 
authorization of those bitstreams to be (Anonymous) according to the 
publication date.

How can this be done? Is there any add-on that can help me changing the access 
authorization of an item bitstream? Or any script to do so on a set of items 
instead of going at each item?

Your help is very much appreciated.
Regards.

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
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

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Complete

Re: [Dspace-tech] Solr Indexing Issue 3.2 to 4.2

2015-01-19 Thread Monika C. Mevenkamp
Maura

glad it worked 

> Out of curiosity, will the error with regards to null metadata values
> actually affect anything? Those are supposed to be non-existent (those
> items don't have metadata for those fields). A cursory overlook
> indicates it didn't but figured I'd ask.
> 

I am not sure what you are asking here. It has the effect that  browse does not 
show the items - but that is not what you are asking, right ?  

Our DSPACE instance  did not work with solr/discevry at all before.  We moved 
right from 1.8 to 4, without testing much in version 3. 

My hunch: Solr queries issued by DSPACE include the NOT(discoverable=false)  
when browsing but may not include that term when searching or may not have 
included it when searching in version 3. If you crank up logging to DEBUG for 
the rootCategory, you get lots lots of info in dspace.log including info on 
what GET/POST requests DSPACE issues to outside services - like solr. If you 
decode the solr url queries you can look whether  NOT(discoverable=false)  is 
included. At the end of the day - what you see in your UI in search or browse 
comes from solr via those url requests.

 
Monika


> Thank you again!
> Maura
> 
> On Thu, Jan 15, 2015 at 4:11 PM, Monika C. Mevenkamp
>  wrote:
>> Maura
>> 
>> I am working on upgrading from 1.8 to 4 and discovered that in my database 
>> all items
>> had the null value in the discoverable column.  Since  this value is 
>> propagated to the solr
>> index and queries tend to include  NOT(discoverable=false)  I never got any 
>> results.
>> 
>> The discoverable column was  introduced in version 3 - but you may have 
>> overlooked that
>> this happened if you did not use solr in your current version.
>> 
>> Anyways - just have a look at the DB values
>> 
>> Monika
>> 
>> 
>> Monika Mevenkamp
>> phone: 609-258-4161
>> 693 Alexander Road, Princeton University, Princeton, NJ 08544
> 
> --
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> ___
> 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


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
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] Version 4 and JSPUI

2015-01-19 Thread Monika C. Mevenkamp
Nah I am not
Because I have to do it in 2 days or not at all
looks like not at all

Plus now that v5 is around the corner - I probably wait

Ah well

Thanks for the link though

Monika


Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Jan 15, 2015, at 5:55 PM, Pottinger, Hardy J. 
mailto:pottinge...@missouri.edu>> wrote:

Hi, Monika, there are *tons* of Bootstrap design resources available online, 
just google around and see what you find. The new JSPUI and Mirage2 themes will 
feel a lot like playing, if you've ever done any theme work with earlier DSpace 
themes. You will have fun, I can practically guarantee it.

This is not an endorsement at all, but I found this list very quickly:

http://designgeekz.com/15-best-bootstrap-tools-for-designers/

There are probably many more just like it.


--Hardy (a bit jealous, you're at the good part)

________
From: Monika C. Mevenkamp [moni...@princeton.edu<mailto:moni...@princeton.edu>]
Sent: Thursday, January 15, 2015 3:21 PM
To: dspace-tech@lists.sourceforge.net<mailto:dspace-tech@lists.sourceforge.net> 
Tech
Subject: [Dspace-tech] Version 4 and JSPUI


I finally managed to merge my changes into version 4. Some of the changes I did 
are JSPUI changes. So functionally I arrived - I think - there is more testing 
to do.  But: the redesigned UI is nice but rather space consuming. Are there 
any users out there that tweaked the JSPUI ? Anybody willing to share a bit of 
CSS  ?

Monika

Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544

--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
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] Version 4 and JSPUI

2015-01-15 Thread Monika C. Mevenkamp

I finally managed to merge my changes into version 4. Some of the changes I did 
are JSPUI changes. So functionally I arrived - I think - there is more testing 
to do.  But: the redesigned UI is nice but rather space consuming. Are there 
any users out there that tweaked the JSPUI ? Anybody willing to share a bit of 
CSS  ?

Monika

Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet___
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] Solr Indexing Issue 3.2 to 4.2

2015-01-15 Thread Monika C. Mevenkamp
Maura 

I am working on upgrading from 1.8 to 4 and discovered that in my database all 
items 
had the null value in the discoverable column.  Since  this value is propagated 
to the solr 
index and queries tend to include  NOT(discoverable=false)  I never got any 
results. 

The discoverable column was  introduced in version 3 - but you may have 
overlooked that
this happened if you did not use solr in your current version.   

Anyways - just have a look at the DB values 

Monika
 

Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Jan 15, 2015, at 1:40 PM, Maura Carbone  wrote:

> (Apologies for Crossposting)
> 
> Thought I'd try here and the DSpace-tech listserv since this is
> frustrating the heck out of me.
> 
> I'm testing an upgrade from 3.2 to 4.2 of our DSpace install. However,
> upon upgrading to 4.2, almost all my items get marked as private in
> the WebUI (note that they are not actually private items and don't
> appear as such in the database). As far as I can tell, solr is having
> issues indexing things in 4.2 and my logs are filled with things like:
> 
> [java] 2015-01-13 11:45:59,325 ERROR
> org.dspace.browse.IndexBrowse @ Null metadata value for item 24289,
> field: dc.subject.aat
> 
> [java] 2015-01-13 11:45:09,171 ERROR
> org.dspace.browse.IndexBrowse @ Null metadata value for item 24343,
> field: dc.contributor
> 
> 
> or
> 
> [java] 2015-01-13 11:45:03,804 ERROR
> org.dspace.browse.BrowseCreateDAOOracle @ caught exception:
> 
> [java] java.sql.SQLSyntaxErrorException: ORA-00942: table or view
> does not exist
> 
> I have run the SQL upgrade scripts, re-indexed browse, and re-indexed
> Solr to no avail. We do not have this problem in 3.2. Did anyone else
> encounter this? It seems like something doesn't like that not every
> item shares the same metadata fields but that's absurd since not all
> items are alike. I looked in the dspace-tech archives but didn't see
> anything recent related to this (i.e Post 1.5). I could be totally off
> base about the issue though, as I said, we don't have this problem in
> 3.2. I'm guessing it is some sort of config change issue but haven't
> been able to figure out what.
> 
> Anyone encounter the same issue or have any suggestions?
> 
> 
> Thanks!
> Maura
> 
> -- 
> Maura Carbone
> Digital Initiatives Librarian
> Brandeis University
> Library and Technology Services
> 415 South Street, (MS 017/P.O. Box 549110)
> Waltham, MA 02454-9110
> email: mau...@brandeis.edu
> 
> --
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> ___
> 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


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
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] Discovery Indexing questions

2015-01-13 Thread Monika C. Mevenkamp
After some more investigation I found that all docs in my solr index with
"search.resourcetype:2"
are also
"discoverable:false"

I take it that those are the docs corresponding to dspace items.

What determines an item’s “discoverable” setting ?

We have a mix of openly accessible and restricted content and want all metadata 
indexed. We may want to turn off full text indexing completely.  We definitely 
want to exclude documents in a particular community from full text indexing or 
at least we want to make sure that the information from full text indexing is 
only shown to site visitors with the right credentials;
Is /dspace/bin/dspace index-discovery the way to go ?
Can its remove option be applied to communities / collections ?
Does that make the enclosed collections and  items invisible to all site 
visitors - including the admin user  ?

Is it true that the database browse indexes become obsolete when using 
discovery/solr ?

Some of the answers may be in the documentation - please point me there if I 
did overlook them


Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Jan 12, 2015, at 12:20 PM, Monika C. Mevenkamp 
mailto:moni...@princeton.edu>> wrote:


I upgraded to 4.0 (from 1.8), ran dspace index-discovery, can see lots of docs 
in the solar admin ui.

Running a query

/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2

gives a couple results, yet when I click on browse I get ‘No Entries in Index’ 
in the JSPUI.

The log below suggests otherwise as well.

What might be going wrong ?

Monika



2015-01-12 12:10:08,327 DEBUG org.dspace.app.webui.servlet.DSpaceServlet @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:http_request:--
 URL Was\colon; http\colon;//localhost\colon;8080/jspui/browse?type=dateissued
-- Method\colon; GET
-- Parameters were\colon;
-- type\colon; "dateissued"

2015-01-12 12:10:08,331 INFO  
org.dspace.app.webui.servlet.AbstractBrowserServlet @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse:type=dateissued,order=DESC,value=null,month=null,year=null,starts_with=null,vfocus=null,focus=-1,rpp=20,sort_by=2,community=n/a,collection=n/a,level=0,etal=-1
2015-01-12 12:10:08,335 DEBUG org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse:
2015-01-12 12:10:08,335 INFO  org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse_by_item:
2015-01-12 12:10:08,335 DEBUG org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:get_total_results:distinct=false
2015-01-12 12:10:08,342 DEBUG org.dspace.discovery.SolrServiceImpl @ Solr URL: 
http://localhost:8080/solr/search
2015-01-12 12:10:08,469 DEBUG 
org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection request: 
[route: {}->http://localhost:8080][total kept alive: 0; route allocated: 0 of 
32; total allocated: 0 of 128]
2015-01-12 12:10:08,484 DEBUG 
org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection leased: 
[id: 0][route: {}->http://localhost:8080][total kept alive: 0; route allocated: 
1 of 32; total allocated: 1 of 128]
2015-01-12 12:10:08,485 DEBUG 
org.apache.http.impl.conn.DefaultClientConnectionOperator @ Connecting to 
localhost:8080
2015-01-12 12:10:08,511 DEBUG org.apache.http.client.protocol.RequestAddCookies 
@ CookieSpec selected: best-match
2015-01-12 12:10:08,528 DEBUG org.apache.http.client.protocol.RequestAuthCache 
@ Auth cache not set in the context
2015-01-12 12:10:08,528 DEBUG 
org.apache.http.client.protocol.RequestTargetAuthentication @ Target auth 
state: UNCHALLENGED
2015-01-12 12:10:08,529 DEBUG 
org.apache.http.client.protocol.RequestProxyAuthentication @ Proxy auth state: 
UNCHALLENGED
2015-01-12 12:10:08,529 DEBUG 
org.apache.http.impl.client.SystemDefaultHttpClient @ Attempt 1 to execute 
request
2015-01-12 12:10:08,529 DEBUG org.apache.http.impl.conn.DefaultClientConnection 
@ Sending request: GET 
/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2
 HTTP/1.1
2015-01-12 12:10:08,529 DEBUG org.apache.http.wire @ >> "GET 
/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2
 HTTP/1.1[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "User-Agent: 
Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "Host: 
localhost:8080[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "Connection: 
Keep-Alive[\r][\n]"
2015-01-12 12:10:08,531 DEBUG org.apache.http.wire @ >> "[\r][\n]"
2015-01-12 12:10

Re: [Dspace-tech] [Dspace-general] How tp define IP-based policy?

2015-01-13 Thread Monika C. Mevenkamp
Oliver 

look for the IP Authentication chapter in the DSPACE documentation for your 
version for details 

We use IP authentication so that the system will try it first - before it moves 
on to the next method: 

This is done in dspace/config/modules/authentication.cfg

plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
 org.dspace.authenticate.IPAuthentication, \
 org.dspace.authenticate.PasswordAuthentication


You also need to define a GROUP in the admin web ui - we define Princeton_IPs

In addition you need to define the IP range for that group, in our case we 
added 

ip.Princeton_IPs = 0, xx.yyy.zzz, aaa.bbb 

to dspace/config/modules/authentication-ip.cfg


Last you have to set the policies on your items and bitstreams as need using 
the Princeton_IPs group 

Monika


Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Jan 13, 2015, at 3:38 AM, Olivier Nicole  wrote:

> Hi,
> 
> DSpace 4.x documentation mentions:
> 
> "For example, it is not unusual for content destined for DSpace to come
> with permanent restrictions on use or access based on license-driven or
> other IP-based requirements that limit access to institutionally
> affiliated users. Restrictions such as these are imposed and managed
> using standard administrative tools in DSpace, typically by attaching
> specific policies to Items, Collections, Bitstreams, etc."
> 
> But I cannot find the way to define such IP-based policies, while there
> are some bitstreams that I need to restrict to people browsing from
> withing our LAN.
> 
> How can I do that?
> 
> Best regards,
> 
> Olivier
> -- 
> 
> --
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> ___
> Dspace-general mailing list
> dspace-gene...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-general


--
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] after upgrade to 4 - no items found when browsing

2015-01-12 Thread Monika C. Mevenkamp

I upgraded to 4.0 (from 1.8), ran dspace index-discovery, can see lots of docs 
in the solar admin ui.

Running a query

/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2

gives a couple results, yet when I click on browse I get ‘No Entries in Index’ 
in the JSPUI.

The log below suggests otherwise as well.

What might be going wrong ?

Monika



2015-01-12 12:10:08,327 DEBUG org.dspace.app.webui.servlet.DSpaceServlet @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:http_request:--
 URL Was\colon; http\colon;//localhost\colon;8080/jspui/browse?type=dateissued
-- Method\colon; GET
-- Parameters were\colon;
-- type\colon; "dateissued"

2015-01-12 12:10:08,331 INFO  
org.dspace.app.webui.servlet.AbstractBrowserServlet @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse:type=dateissued,order=DESC,value=null,month=null,year=null,starts_with=null,vfocus=null,focus=-1,rpp=20,sort_by=2,community=n/a,collection=n/a,level=0,etal=-1
2015-01-12 12:10:08,335 DEBUG org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse:
2015-01-12 12:10:08,335 INFO  org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:browse_by_item:
2015-01-12 12:10:08,335 DEBUG org.dspace.browse.BrowseEngine @ 
anonymous:session_id=B034BADCB247333CEA51924C910AB7DF:ip_addr=0:0:0:0:0:0:0:1:get_total_results:distinct=false
2015-01-12 12:10:08,342 DEBUG org.dspace.discovery.SolrServiceImpl @ Solr URL: 
http://localhost:8080/solr/search
2015-01-12 12:10:08,469 DEBUG 
org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection request: 
[route: {}->http://localhost:8080][total kept alive: 0; route allocated: 0 of 
32; total allocated: 0 of 128]
2015-01-12 12:10:08,484 DEBUG 
org.apache.http.impl.conn.PoolingClientConnectionManager @ Connection leased: 
[id: 0][route: {}->http://localhost:8080][total kept alive: 0; route allocated: 
1 of 32; total allocated: 1 of 128]
2015-01-12 12:10:08,485 DEBUG 
org.apache.http.impl.conn.DefaultClientConnectionOperator @ Connecting to 
localhost:8080
2015-01-12 12:10:08,511 DEBUG org.apache.http.client.protocol.RequestAddCookies 
@ CookieSpec selected: best-match
2015-01-12 12:10:08,528 DEBUG org.apache.http.client.protocol.RequestAuthCache 
@ Auth cache not set in the context
2015-01-12 12:10:08,528 DEBUG 
org.apache.http.client.protocol.RequestTargetAuthentication @ Target auth 
state: UNCHALLENGED
2015-01-12 12:10:08,529 DEBUG 
org.apache.http.client.protocol.RequestProxyAuthentication @ Proxy auth state: 
UNCHALLENGED
2015-01-12 12:10:08,529 DEBUG 
org.apache.http.impl.client.SystemDefaultHttpClient @ Attempt 1 to execute 
request
2015-01-12 12:10:08,529 DEBUG org.apache.http.impl.conn.DefaultClientConnection 
@ Sending request: GET 
/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2
 HTTP/1.1
2015-01-12 12:10:08,529 DEBUG org.apache.http.wire @ >> "GET 
/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2
 HTTP/1.1[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "User-Agent: 
Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "Host: 
localhost:8080[\r][\n]"
2015-01-12 12:10:08,530 DEBUG org.apache.http.wire @ >> "Connection: 
Keep-Alive[\r][\n]"
2015-01-12 12:10:08,531 DEBUG org.apache.http.wire @ >> "[\r][\n]"
2015-01-12 12:10:08,531 DEBUG org.apache.http.headers @ >> GET 
/solr/search/select?q=search.resourcetype%3A2+AND+search.resourceid%3A1&wt=javabin&version=2
 HTTP/1.1
2015-01-12 12:10:08,531 DEBUG org.apache.http.headers @ >> User-Agent: 
Solr[org.apache.solr.client.solrj.impl.HttpSolrServer] 1.0
2015-01-12 12:10:08,531 DEBUG org.apache.http.headers @ >> Host: localhost:8080
2015-01-12 12:10:08,531 DEBUG org.apache.http.headers @ >> Connection: 
Keep-Alive
2015-01-12 12:10:08,580 DEBUG org.apache.http.wire @ << "HTTP/1.1 200 
OK[\r][\n]"
2015-01-12 12:10:08,582 DEBUG org.apache.http.wire @ << "Server: 
Apache-Coyote/1.1[\r][\n]"
2015-01-12 12:10:08,582 DEBUG org.apache.http.wire @ << "Content-Type: 
application/octet-stream[\r][\n]"
2015-01-12 12:10:08,582 DEBUG org.apache.http.wire @ << "Content-Length: 
7493[\r][\n]"
2015-01-12 12:10:08,582 DEBUG org.apache.http.wire @ << "Date: Mon, 12 Jan 2015 
17:10:08 GMT[\r][\n]"
2015-01-12 12:10:08,582 DEBUG org.apache.http.wire @ << "[\r][\n]"
2015-01-12 12:10:08,583 DEBUG org.apache.http.impl.conn.DefaultClientConnection 
@ Receiving response: HTTP/1.1 200 OK
2015-01-12 12:10:08,584 DEBUG org.apache.http.headers @ << HTTP/1.1 200 OK
2015-01-12 12:10:08,584 DEBUG org.apache.http.headers @ << Server: 
Apache-Coyote/1.1
2015-01-12 12:10:08,584 DEBUG org.apache.http.headers @ << Content-Type: 
application/octet-stream
2015-01-12 12:10:08,584 DEBUG org.apache.htt

[Dspace-tech] Client closed the connection before file download was complete' in log files

2014-12-31 Thread Monika C. Mevenkamp
I spent a bit of quality time with our log files; the main finding:
of the 331679 lines that contain ERROR
   143433 also say 'Client closed the connection before file download was 
complete’
These closures happen from all sorts of IP addresses.

According to the time command it takes 1.75sec (elapsed) to do a wget on a 18MB 
bitstream, which gives a speed of 10.6MB/sec. Speed test tells me that my 
connection has 95 Mbps, so I can’t really expect much more.

Are clients impatient ? Is my instances performance erratic ?

I have a reasonable amount of UNIX knowledge, but not necessarily the sys admin 
kind and no real experience performance tuning the 
apache/tomcat/jsp/java/oracle stack. The instance runs in a VM; Our asset store 
is mounted from a remote file system and our database is on a different remote 
server. The instance is in general not all that fast. No hard numbers, its just 
visibly sluggish.

How do I go about investigating performance issues ?  I recall seeing some info 
on the DSPACE wiki - but I could not rediscover it. Does anybody have tips or 
links to good HowTos ?


Monika

Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
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] upgrading from 1.8 to dspace 3

2014-12-30 Thread Monika C. Mevenkamp
Helix 

Good point - but still no inclusion 


There was  no dependency of dspace-api on ojdbc6 

After adding 

+
+com.oracle
+ojdbc6
+

To dspace-api ’s pom.xmlmvn copied the jar into the lib as it should 

Should I turn this into a mischevious feature report ? 

Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Dec 30, 2014, at 4:18 AM, helix84  wrote:

> Hi Monika,
> 
> just a guess, but I would try with -Dversion=11.2.0.4.0
> 
> That's what Maven Central has [1]. I admit it's strange that mvn
> install worked with 11.2.0.4.
> 
> [1] http://search.maven.org/#search%7Cga%7C1%7Cojdbc6
> 
> 
> Regards,
> ~~helix84
> 
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
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] enable statistics

2014-12-30 Thread Monika C. Mevenkamp
Trywget 'http://localhost/solr/statistics/select?q=*:*&wt=json&indent=true'

If that works solr is up and happy and knows about the statistics core

If not - try the same wget as the use that runs your DSPACE instance


Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Dec 30, 2014, at 4:14 AM, Ahmed Maher 
mailto:ama...@kwareict.com>> wrote:

thanks Monika,

the command returns http://localhost/solr/statistics

i use port 80 for tomcat

and the wget command return

Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:80... failed: Connection refused.
Connecting to localhost (localhost)|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2014-12-30 09:11:01 ERROR 404: Not Found.

although the command
 wget http://localhost/solr
 works successfully



On Mon, Dec 29, 2014 at 5:39 PM, Monika C. Mevenkamp 
mailto:moni...@princeton.edu>> wrote:
Ahmed,

Dspace uses the solar server as defined in  
/dspace/config/modules/solr-statistics.cfg

In our case we deployed the solr web app under tomcat such that it becomes 
accessible under

http://localhost:8080/solr

and we set the solar server in /dspace/config/modules/solr-statistics.cfg to

http://localhost:8080/solr/statistics


you can check on the solr server setting in your installation with

/dspace/bin/dspace dsprop  -module solr-statistics -property server


you can test your setting on the command line of the deployment server by 
running

wget  


I hope this helps

Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Dec 24, 2014, at 6:46 AM, Ahmed Maher 
mailto:ama...@kwareict.com>> wrote:

Hi All ,

i have problem when enabling statistics
when  running solr optimization command

dspace stats-util -o

it returns this error

 ERROR org.dspace.statistics.SolrLogger @ Server at 
http://localhost/solr/statistics returned non ok status:500, message:Internal 
Server Error

thanks
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net___<http://goparallel.sourceforge.net___/>
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net<mailto:DSpace-tech@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette



--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
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] upgrading from 1.8 to dspace 3

2014-12-29 Thread Monika C. Mevenkamp

I am using oracle and downloaded version 11.2.0.4 from the recommended page  
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html.

and did a manual mvm install  with  -Dversion=11.2.0.4
looking under ~/.m2 I find

> find ~/.m2/repository/com/oracle/ojdbc6 -type f
/Users/monikam/.m2/repository/com/oracle/ojdbc6/11.2.0.4/_remote.repositories
/Users/monikam/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.jar
/Users/monikam/.m2/repository/com/oracle/ojdbc6/11.2.0.4/ojdbc6-11.2.0.4.pom
/Users/monikam/.m2/repository/com/oracle/ojdbc6/maven-metadata-local.xml

I modified the root pom.xml file as follows:

com.oracle
ojdbc6
11.2.0.4
 

mvn -U clean packagefinished successfully
But it does not add the ojdbc6-11.2.0.4.jar file to 
dspace/target/dspace-3.3-SNAPSHOT-build/lib

When I manually add ojdbc6-11.2.0.4.jar and then do an ant update I end up with 
a functioning installation (at least as far as db connectivity is concerned). 
If I don’t I get a java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

For some reason mvm refuses to add the ojdbc6-11.2.0.4.jar even though it does 
add postgresql-9.1-901-1.jdbc4.jar. Where should I look for an explanation ?

Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
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] enable statistics

2014-12-29 Thread Monika C. Mevenkamp
Ahmed,

Dspace uses the solar server as defined in  
/dspace/config/modules/solr-statistics.cfg

In our case we deployed the solr web app under tomcat such that it becomes 
accessible under

http://localhost:8080/solr

and we set the solar server in /dspace/config/modules/solr-statistics.cfg to

http://localhost:8080/solr/statistics


you can check on the solr server setting in your installation with

/dspace/bin/dspace dsprop  -module solr-statistics -property server


you can test your setting on the command line of the deployment server by 
running

wget  


I hope this helps

Monika



Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


On Dec 24, 2014, at 6:46 AM, Ahmed Maher 
mailto:ama...@kwareict.com>> wrote:

Hi All ,

i have problem when enabling statistics
when  running solr optimization command

dspace stats-util -o

it returns this error

 ERROR org.dspace.statistics.SolrLogger @ Server at 
http://localhost/solr/statistics returned non ok status:500, message:Internal 
Server Error

thanks
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. 
http://goparallel.sourceforge.net___
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

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
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] Authorization Question

2014-12-17 Thread Monika C. Mevenkamp
I tested one of my Communities and gave it just one Policy:   READ for 
Administrator
Despite that  I can view the Community Home page without logging in.

The same happened when I tested this on a Collection.

This is JSPUI 1.8

Is this the expected behavior ?

Monika


Monika Mevenkamp
phone: 609-258-4161
693 Alexander Road, Princeton University, Princeton, NJ 08544


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Looking for feedback on bulk command line apps

2014-07-25 Thread Monika C. Mevenkamp

I developed a set of four related command line apps for dspace:
1) a lister / report generator
2) a policy tool, that adds / removes policies
3) a metada tool, that adds / removes specific metadata  values
4) a bitstream replacer tool

All expect 4 work on a set of dspace objects specified by two command line 
arguments:
--root  ROOT  - where ROOT is a handle  or  object type follow by an ID
--type  TYPE  - where TYPE is  one of  collection, item, bundle, or 
bitstream

—-root COLLECTION.10  --type BITSTREAM
means work on all bitstreams in collection with ID 10
--root handle/12345  --type ITEM
means work on all items contained in the object designated by handle

There is an additional argument, --doWorkFlowItems, that restricts sets to 
items in workflows and by extension to bundles or bitstreams in items in 
workflows.


The lister generates tsv or txt formatted output, printing properties of the 
selected set of DSpace objects. Its  --include option determines which 
properties are printed.  You can choose to print IDs and handles, as well as 
policy information, or specify select item metadata fields. You can include an 
items 'withdrawn' status or a bundle's embargo state. Bitstream reports may 
print mimeType, checksum, ...   When printing DSpace objects, you can choose to 
print properties of enclosing Dspace objects. For example when printing  
bitstreams in a collection, you can include bundle names,  item handles, even 
item metadata values by using options like these:
--include 
'object,name,mimeType,BUNDLE.name,ITEM.handle,ITEM.dc.contributor,author'

The lister works nicely with the other commands, since all four commands use 
the same mechanism to select the objects they work on. For example you might 
use the lister to review which DSpace objects need policy or metadata changes. 
After applying changes, it comes in handy, when making sure the changes 
performed are in fact the ones, that were intended.


The policy tool decides which action to apply to each DSpaceObject selected by 
the --root and --type parameters based on three options:
--action   [ADD | DEL ]  - whether to add or delete policies
--dspace_action  [READ | WRITE | REMOVE | ... ]
--who [group  | eperson]

For example
dspace bulk-pols -r handle/712657 -t BITSTREAM —action ADD  —dspace_action 
WRITE --who EPERSON.monikam
gives the eperson monikam WRITE priviledges  on all bitstreams 
contained in the object  behind the given handle, which may be a community, 
collection, or item.

dspace bulk-pols -r handle/712657 -t BITSTREAM -a DEL -d READ -w 
GROUP.Anonymous
removes the READ permission from the Anonymous group

The metadata tool works similar to the policy tool. Of cause it makes only 
sense to apply to item sets.

The bitstream replacer works on single bitstreams. It is related to the other 
tools in that it selects the bitstream to work on in the same fashion, aka with 
--root and --type arguments.

I developed these commands in connection with a project here at Princeton, 
where I needed to  add a cover page to all bitstreams in original bundles in a 
community. The lister gave me the list of bitstreams. Printing the list in txt 
format, allowed me to grep for name=ORIGINAL. I included the mimeType in the  
listing, so I would only work on pdf documents. Including the internalId 
allowed me to use the file right from the assetstore and stick it into my  ‘add 
the cover page’ script. I  replaced the old bitstream using the IDs, printed 
earlier, to define the —root parameter to  the bitstream replacer.  Finally I 
used the lister to check on the access policies of the bitstreams.  Right now I 
run the lister command in a cronjob to watch the submission progress in one of 
our communities.

I wrote more detailed documentation which is part of the pull request that I 
created for this code. Here at Princeton we are still running 1.8. The bulk-do 
code mostly lives in its own package and should play well with version 3 (I 
have not tried it). The PR is based on the master.  In other words unless you 
run pre 1.8,  merging this into your version should be relatively painless - 
and it goes without saying - I'd help sort out conflicts.

The PR is HERE and the documentation 
is 
THERE

I believe this code would be useful for many DSpace administrators.  It would 
be straight forward to add a JSON/XML output format to offer this functionally 
in the REST API.  So please have a look, send feedback, and possibly step up as 
a volunteer tester / reviewer.


Monika

—
Monika Mevenkamp
phone: 609-258-4161
123 693 Alexander Street, Princeton University, Princeton, NJ 08544
--
Want fast and easy access to all the code in your

Re: [Dspace-tech] Changing the link from "http://localhost:8080/xmlui" to "http://mydomain:8080/xmlui" in password reset email DSpace

2014-05-12 Thread Monika C. Mevenkamp
Please have a look at your dspace.cfg file  in your configuration directory
Make sure that the following settings refer to to the domain name values that 
you desire

# DSpace host name - should match base URL.  Do not include port number.
dspace.hostname = ${dspace.hostname}

# DSpace base host URL.  Include port number etc.
dspace.baseUrl = ${dspace.baseUrl}

# DSpace base URL.  Include port number etc., but NOT trailing slash
# Change to xmlui if you wish to use the xmlui as the default, or remove
# "/jspui" and set webapp of your choice as the "ROOT" webapp in
# the servlet engine.
dspace.url = ${dspace.baseUrl}/xmlui


Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On May 12, 2014, at 6:03 AM, Swati (CEPT Mail Admin) 
mailto:sw...@cept.ac.in>> wrote:

​We are yet to launch DSpace for our institution. I am using CentOs. I have 
configured smtp and my DSpace installation is able to send emails. While 
testing, I tried to reset my password from DSpace JSPUI. It sends an email to 
my email address with the following content :
--
To change the password for your DSpace account, please click the link
below:

  http://localhost:8080/xmlui/forgot?token=5a33ca84e52cbc7ed958e4d170a667cb​

--

In the above email content, I want the "localhost" to be replaced by my IP. For 
this I changed the relevant values in dspace.cfg file and restarted Tomcat but 
still the parameter in email message remains the same and shows localhost 
instead of my IP.

Kindly suggest me how to resolve this.

Thanks,
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
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

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
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] Global addition of a group or e-person to all submission workflow steps

2014-05-06 Thread Monika C. Mevenkamp
Hi

I developed custom Java code that I am planning to push out to GitHub. I just 
didn’t get to it yet.

I am working with version 1.8 but the code should be fine with version 3 and 4. 
 It implements a command line utility to

  1.  list things in dspace,
  2.  to add  and delete policies on listed entities,
  3.  to replace bitstream files
  4.  to replace individual metadata values


In your case you would do something like the following command, which traces 
which the resulting policy settings

> $DSPACE_HOME/bin/dspace bulk-pols -r  --type COLLECTION  -a 
> ADD -d  WORKFLOW_STEP_2 -w GROUP.irsubmitter
 object=COLLECTION.293 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35508(GROUP.irsubmitter)]
 object=COLLECTION.294 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35509(GROUP.irsubmitter)]
 object=COLLECTION.295 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35510(GROUP.irsubmitter)]
 object=COLLECTION.296 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35511(GROUP.irsubmitter)]
 object=COLLECTION.297 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35512(GROUP.irsubmitter)]
 object=COLLECTION.298 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35513(GROUP.irsubmitter)]
 object=COLLECTION.299 parent=COMMUNITY.37 
POLICY.WORKFLOW_STEP_2=[POLICY.35514(GROUP.irsubmitter)]
 ...

This ADDs   the irsubmitter group (which you need to create before using the 
command) to  WORKFLOW_STEP_2  on all collections that are part of the given 
community


The companion list command allows you to check on policies

> $DSPACE_HOME/bin/dspace bulk-list -r 88435/1096 -t COLLECTION --include 
> 'object,handle,POLICY.WORKFLOW_STEP_2,name'
 object=COLLECTION.293 handle=88435/1097 
POLICY.WORKFLOW_STEP_2=[POLICY.35508(GROUP.irsubmitter)] name=Aeronautical 
Engineering
 object=COLLECTION.294 handle=88435/1098 
POLICY.WORKFLOW_STEP_2=[POLICY.35509(GROUP.irsubmitter)] name=Anthropology
 object=COLLECTION.295 handle=88435/1099 
POLICY.WORKFLOW_STEP_2=[POLICY.35510(GROUP.irsubmitter)] name=Architecture 
School
 object=COLLECTION.296 handle=88435/1100 
POLICY.WORKFLOW_STEP_2=[POLICY.35511(GROUP.irsubmitter)] name=Art and 
Archaeology
 object=COLLECTION.297 handle=88435/1101 
POLICY.WORKFLOW_STEP_2=[POLICY.35512(GROUP.irsubmitter)] name=Astrophysical 
Sciences
 object=COLLECTION.298 handle=88435/1102 
POLICY.WORKFLOW_STEP_2=[POLICY.35513(GROUP.irsubmitter)] name=Biology
 object=COLLECTION.299 handle=88435/1103 
POLICY.WORKFLOW_STEP_2=[POLICY.35514(GROUP.irsubmitter)] name=Chemical and 
Biological Engineering
 …


If you are interested I can push the code in the next couple days.

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On May 6, 2014, at 3:55 AM, 
mailto:amutsik...@uzlib.uz.ac.zw>> 
mailto:amutsik...@uzlib.uz.ac.zw>> wrote:

Hi

Hope I found you well.  We are in the process of trying to improve the quality 
of our submission process. We would like to add a group called irsubmitter  for 
submission   as well as irreviewer to step 2 of the workflows of all  
collections in our repository. We have a number of collections so we do not 
intend to do this manually. We will appreciate  a global way through  may be an 
SQL statement to achieve that.


Kind Regards,

Admire Mutsikiwa
ICT Projects Manager
Libraries
University of Zimbabwe
Tel:+263-4-303276
“It is easy to dodge our responsibilities, but we cannot dodge the consequences 
of dodging our responsibilities.”  Josiah Charles Stamp, 1880-1941, former 
director of the Bank of England


--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce___
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

--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce___
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] itemupdate issue

2014-04-25 Thread Monika C. Mevenkamp

I stole code from  app.itemupdate | AddBitstreamsAction  trying to come up with 
a program that can replace the bitstream contents of an item with a new version 
of the bitstream. I got real close but noticed that deleting  the item after 
the addition of the bitstream fails. The error

ERROR: update or delete on table "item" violates foreign key constraint 
"bi_5_dmap_item_id_fkey" on table "bi_5_dmap"

When I ran out of ideas I tested the item updater directly:
/bin/dspace itemupdate -e 
moni...@princeton.edu -s dest -A

with a directory that I created with export. I did change the contents to 
include a new file for the item.  After the command I can see the new file just 
fine - along with the pre existing bitstream. But deleting/expunging fails with 
the above message.

Any ideas anybody  ?


Here an explanation why I am doing this: I want  to put a cronjob together that 
works on all pdf bitstreams in items that are in the workflow for a given 
community.  The cronjob is supposed to glue a cover page in front of all those 
bitstreams and replace the existing one with the new one.   I have the ‘list 
all interesting bitstreams’ code more or less in place. It is fairly generic 
and I will eventually send a PR.  I have a way of copying the bitstream files 
from the system, to a temp location. I know how to glue the cover page. The 
last step - insert the updated bitstream proofs to be challenging. I am tempted 
to copy the bitstream over the old one in the assetstore and adjust the shasum 
in the database directly. BUT … well it is not quite the right thing todo …

And just for reference the code snipped that I use to replace an item

Here is the code snipped I use to replace a bitstream:

private Bundle[] replaceBitstream() throws SQLException, IOException, 
AuthorizeException {
Item item = (Item) bit.getParentObject();
if (bit.getFormat().getMIMEType().equals(fileFormat) && 
!ignoreFormatMismatch) {
throw new RuntimeException("format mistmatch");
}

Bundle[] bundles = bit.getBundles();
for (Bundle bdl : bundles) {
Bitstream nBit = bdl.createBitstream(stream);
nBit.setName("cp:" + bit.getName());   // changed name to make sure 
this is not the cause of the error
nBit.setDescription(bit.getDescription());
nBit.setSource(bit.getSource());
nBit.setUserFormatDescription(bit.getFormatDescription());
nBit.setUserFormatDescription(bit.getFormatDescription());
bdl.removeBitstream(bit);
}
item.update();
context.commit();
return bundles;
}



Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform___
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] solr error

2014-04-14 Thread Monika C. Mevenkamp
I am getting an internal server error, due to error   for 
http://localhost:8080/solr/

There are no SolrCores running.
Using the Solr Admin UI currently requires at least one SolrCore.

I checked out the master branch which a few of my own changes
None of them involve any solar related stuff

What should I look at next ?

Monika


Monika Mevenkamp
mo.me...@gmail.com
http://mcmprogramming.com/mo.meven/potd/




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech___
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] changing name of custom metadata field

2014-04-04 Thread Monika C. Mevenkamp
I have the request to change  the metadata field

“pu.date.graduation” to “pu.date.classyear”

Is this simply a question of changing the name in the database and making sure 
that all references in config files are changed as well ?

Do I have to worry about rye search index ?

Monika




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, 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

Re: [Dspace-tech] Request copy - Internal server error - dspace 4.0

2014-04-01 Thread Monika C. Mevenkamp
You can get more information in the log file by setting the log level to DEBUG 
in dspace/config/log4j.properties

log4j.rootCategory=DEBU, A1

Once you restart tomcat you should see log lines showing SQL statement info. 
Look for lines

DEBUG org.dspace.storage.rdbms.DatabaseManager @ Running query  …

My hunch in your case is that you may not have defined a Group in your Database 
(via the admin UI) with the name you use in the authentication configuration 
file dspace/config/modules/authentication-ip.cfg. For each

ip.GROUPNAME = ….

you must create a corresponding group in the database with the same name.


Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Apr 1, 2014, at 4:50 AM, Pushkin Salim 
mailto:pushkinsa...@gmail.com>> wrote:

We have dspace 4.0 , and configured IP authentication and request copy. When 
"request copy" is used, following error is shown.

"Internal server error.
 The system has experienced an internal error. please try to do what you were 
doing again.."

Log

2014-04-01 15:12:59,460 INFO  org.dspace.app.webui.servlet.RequestItemServlet @ 
anonymous:session_id=45BC90E0D2370BE3BF50E93255A9E245:ip_addr=10.10.48.91:show_requestItem_form:problem=false
2014-04-01 15:13:10,188 WARN  org.dspace.app.webui.servlet.DSpaceServlet @ 
anonymous:session_id=45BC90E0D2370BE3BF50E93255A9E245:ip_addr=10.10.48.91:database_error:org.postgresql.util.PSQLException\colon;
 ERROR\colon; syntax error at or near ")"
  Position\colon; 27
org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
  Position: 27
at 
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2103)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1836)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:512)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
at 
org.dspace.storage.rdbms.DatabaseManager.doInsertPostgres(DatabaseManager.java:1754)
at 
org.dspace.storage.rdbms.DatabaseManager.insert(DatabaseManager.java:671)
at 
org.dspace.storage.rdbms.DatabaseManager.create(DatabaseManager.java:447)
at 
org.dspace.app.webui.util.RequestItemManager.getNewToken(RequestItemManager.java:83)
at 
org.dspace.app.webui.util.RequestItemManager.getLinkTokenEmail(RequestItemManager.java:127)
at 
org.dspace.app.webui.servlet.RequestItemServlet.processForm(RequestItemServlet.java:242)
at 
org.dspace.app.webui.servlet.RequestItemServlet.doDSGet(RequestItemServlet.java:83)
at 
org.dspace.app.webui.servlet.RequestItemServlet.doDSPost(RequestItemServlet.java:119)
at 
org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:115)
at 
org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
at 
org.apache.tomcat.util.net

[Dspace-tech] curious link behavior on search result page in dspace 3 / JSPUI

2014-03-27 Thread Monika C. Mevenkamp

the result of a search looks like this
Item hits:
Issue Date  Title   Author(s)
25-Mar-2014 Open 
Access O, Pen






when I click on the link:
I get an error page - document does not exist
When I open in new tab the page display just fine

This is due to the javascript in   
dspace-jspui/src/main/webapp/static/js/search-results.js doctoring the links in 
the table:

urls.click(function(){
var $this = $(this);
//Instead of redirecting us to the page, first send us to the 
statistics logger
//By doing this we ensure that we register the query to the result
var form = $('form#dso-display');
form.find('input[name="redirectUrl"]').val($this.attr('href'));
form.submit();
return false;
});


unfortunately for me  redirectUrl is empty in the form












for now I ‘fixed’ this by getting rid of the urls.click code
there are several other javascript functions that refer to redirectUrl
the particular instance I am running has  the solr  UI enabled (aka it is in 
the web apps directory) BUT it is accessible via localhost:8080/solr  only

any advise ?

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, 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

Re: [Dspace-tech] DSPACE version

2014-03-25 Thread Monika C. Mevenkamp
yes that does help - for now
and yes it is available in version 3 - I am almost done merging my changes

I think  it would make sense to include the version in the page footer -
something along the lines of

DSpace Software 3.0   Copyright © 2002-2010  Duraspace - Feedback

What do you think ?

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 25, 2014, at 2:54 PM, Pottinger, Hardy J. 
mailto:pottinge...@missouri.edu>> wrote:

Hi, Monika, if you "view source" on a page of the repository in question,
regardless of which UI it runs (jspui or xmlui) near the top you'll see a
tag that looks like:




or




If it says "4.0-SNAPSHOT," that repository is running a version of master,
from the 3.x era. Same goes for other SNAPSHOT versions (just subtract 1
from it to figure out what version of the source code it's based on).

Hope that helps.

--
HARDY POTTINGER mailto:pottinge...@umsystem.edu>>
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
https://MOspace.umsystem.edu/
"I am always doing that which I cannot do, in order that I may learn how
to do it." --Pablo Picasso





On 3/25/14 1:31 PM, "Monika C. Mevenkamp"  wrote:




is there a place where the  JSP-UI  displays the current software version
?


Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University,
Princeton, NJ 08544










--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
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] DSPACE version

2014-03-25 Thread Monika C. Mevenkamp
is there a place where the  JSP-UI  displays the current software version ?

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
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] Eperson cannot be deleted

2014-03-24 Thread Monika C. Mevenkamp
I get the following error

Cannot Delete EPerson

The EPerson XXX cannot be deleted because a reference to it exists in the 
following table(s):

  *   item


What is my best route to finding what Item this is ?

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
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] Linking from DSpace Object to External URL

2014-03-24 Thread Monika C. Mevenkamp
Stacy

It sounds like you have the url to the Dakota URL already stored as metadata on 
your DSPACE instance
and you have your item pages setup to show the url - ready for cut-and-paste, 
all you want is turn the url
into a link

You could write a javascript function itemDisplayDoctor and add it to 
dspace-jspui//src/main/webapp/utils.js
that ‘doctors’ the ‘itemDisplayTable’ DOM  such that it turns the Dakota  URL 
into an actual link

and then do
window.onload = itemDisplayDoctor();

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 21, 2014, at 5:25 PM, Pennington_Stacy 
mailto:penning...@rhodes.edu>> wrote:

Last week, I updated our DSpace from 1.8.2 to 4.1 without many (any?) issues. 
Kudos to everyone on this list that worked on the DSpace 4.x releases, whether 
as a developer, contributor, tester, or whatever. Your efforts are appreciated!

I'm wondering how to do something that seems pretty simple and can't find any 
leads in the DSpace docs or wiki on how to do it. I would like to provide a 
hyperlink from a DSpace object's page (we are using JSPUI) to an external 
location to showcase that object's bitstream using technology not associated 
with DSpace.

For example, I've got high-resolution images saved as objects in DSpace, so 
that the lossless TIFF (huge) and lossy JPEG (much smaller) are available in 
DSpace, complete with lovely DC metadata. I've now got a Djatoka server running 
with OpenSeaDragon as a viewer, and many of these large images can be viewed on 
the external Djatoka server using a custom URL for that image. I want to link 
to that external URL from within the DSpace JSPUI object page in the simplest 
way possible, without modifying DSpace code. Is this possible?

I know that this may be bad form for a repository, but I'm not interested in 
modifying the JSPUI template pages to load the Javascript viewer on the page or 
anything like that. I'm willing to store the URL to the zoomable viewer in the 
object's metadata, which of course I can do now in DC but it doesn't create a 
hyperlink; the user needs to copy/paste the URL to get to the zoomable viewer. 
I just need a simple link from the object page, and if that link stops working 
in the future, that's OK. I can remove it at that time. The bitstreams are the 
most important thing, but the user would get the most use out of the simple, 
zoomable, external URL.

Does anyone have any advice for me? Again, I'm interested in the simplest, 
easiest way to do this link, one with the least number of changes to the DSpace 
source code.

Thanks in advance for any ideas!

--
Stacy Pennington
Information Technology Services
Rhodes College
901-843-3968



--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
___
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

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Dspace read only permission on item

2014-03-20 Thread Monika C. Mevenkamp
Amu

you can fine tune access to items and bitstreams with the authorization system
See   
Authorization
   and  User 
Management
 documentation on the DSPACE wiki

Once you do allow a person to ‘see’ a document in their browser I do not see 
how you
can stop her from saving the document and hence forwarding, printing, copying

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Mar 20, 2014, at 8:57 AM, Amruta Patil 
mailto:amrutapatil198...@gmail.com>> wrote:

Dear all,

I installed dsoace 4.1 on ubuntu 12.04.
want to give read only permission on item for perticular group or e-person.
item should not be downloaded by e-person(doc or pdf)


Tahnks
Amu
--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
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

--
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech___
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] Changing Authentication behavior in JSPUI

2014-03-03 Thread Monika C. Mevenkamp
I am not entirely sure what to post where yet.  I tried asking on dspace-devel 
but did not hear back.
Maybe somebody on dspace-tech has on opinion/tip


On Feb 27, 2014, at 11:55 AM, Monika C. Mevenkamp 
mailto:moni...@princeton.edu>> wrote:


We use dspace-1.8  with  custom code that I would like to simplify

Here is what we would like to achieve in terms of behavior:

  *   administrators authenticate via org.dspace.authenticate.CASAuthentication
  *   bitstreams in some collections are restricted by network IPs; we use 
org.dspace.authenticate.IPAuthentication
  *   bitstreams in other collections are completely open access
  *   we do not ever want users with the ‘wrong’ IP address to be prompted for 
login via an explicit authentication mechanism
  *   we do not anticipate ever restricting bitstreams such that users will 
authenticate via an explicit mechanism

I looked around the code and noticed that the authentication manager offers 
authenticateImplicit() and authenticate().   If item,collection,community pages 
would trigger authenticateImplicit and admin pages authenticate, I believe 
we’ll end up with the behaviour described above.

So the obvious questions here:

  1.  am I right ?
  2.  where  do I need to change the code ? I envision a setting in dspace.cfg  
(either global or collection/community specific) that could be used in a few 
strategically placed if statements

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] Code to assist with DSpace Content Administration

2014-02-28 Thread Monika C. Mevenkamp
Hi Michael

I was not aware that Georgetown Batch tools custom UI - this looks great.

What I am looking for is a way to improve authorization management - does the 
tool help with this as well ?

A frequent question we have for example is :  does any bitstream in collection 
X have Anonymous READ; another  more general question - do all items/bitstreams 
in collection X have rights that correspond to the current authorization 
settings of the enclosing collection / community. And of course we would want 
to see a list of ‘violators’ and an easy way of changing settings in bulk.

As far as I am aware there is no easy way to check on this in the current 
DSPACE  via UI or command line.

Monika




Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Feb 27, 2014, at 6:50 PM, Michael Lastufka 
mailto:michael_lastu...@sil.org>> wrote:

Hi Terry, been trying to install the dspace batch tools.

The link to "install and customize"
(https://github.com/Georgetown-University-Libraries/batch-tools/wiki/Batch-tools-customization-steps)
seems to be fine for customization, but leaves a lot to be desired for
installation (at least for me).
After following the customization steps as much as I could, I still don't
get how this is supposed to work. I'm using customPostgres.php.

Where exactly are the files supposed to go - Near the bottom of the
customization page is a point "Copy scripts from bin-src to bin". There's
only one script in there - dspaceBatch.sh. Which "bin" should I copy it to?
Dspace\bin or tomcat\bin? Neither seem to do the trick, now it's in both.

Did not know exactly what this section of instructions means:
 Check your apache config for the PHP code   ?? Is this asking if php is
installed and working?? yes.
/web - all content editors
/auth - all content owners
?? These folders are in your distribution, I'll take your word for
it that they are editors and owners. I don't understand what I'm "checking"
for here...??
ensure that dspaceBatch.sh can be invoked from the web service
??Tomcat uses war files, so I should create one to invoke what? - I
at least need an html file??

I'm probably missing something fundamental as I've not played with php much
before and I'm using Quercus - tomcat compatible php in windows with BASH.

We'd sure like to get them working :-)



--
View this message in context: 
http://dspace.2283337.n4.nabble.com/Code-to-assist-with-DSpace-Content-Administration-tp4670411p4671799.html
Sent from the DSpace - Tech mailing list archive at 
Nabble.com.

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] error running dspace cleanup

2014-02-26 Thread Monika C. Mevenkamp
I ran‘dspace cleanup’ and noticed that quite  a few records were not 
cleaned out

Running with the verbose option I got the following error
(A nice improvement to the checker would be to print that error even in 
non-verbose mode)

Error: ORA-02292: integrity constraint (DSPACE.SYS_C003794) violated - child 
record found

after which the checker dies
(should the checker catch the exception and try to continue working on other 
records?)

according to DrGoogle:
CAUSE OF ERROR

You tried to DELETE a record from a parent table (as referenced by a foreign 
key), but a 
record in the child table exists.

It appears that this should never happen unless there is a database corruption 
issue   or maybe there is an issue in the  cleanup code  .. or .. or

I am including the dspace.log in the hope that somebody can shed light on this

Monika


2014-02-26 13:37:12,619 INFO  
org.springframework.beans.factory.support.DefaultListableBeanFactory @ 
Pre-instantiating singletons in 
org.springframework.beans.factory.support.DefaultListableBeanFactory@421fbfd6: 
defining beans 
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.dspace.servicemanager.spring.DSpaceBeanPostProcessor#0,org.dspace.discovery.configuration.DiscoveryConfigurationService,defaultConfiguration,searchFilterTitle,searchFilterAuthor,searchFilterSubject,searchFilterIssued,sidebarFacetAuthor,sidebarFacetSubject,sidebarFacetDateIssued,sortTitle,sortDateIssued,org.dspace.discovery.SearchService,org.dspace.services.CachingService,org.dspace.caching.ehcache.CacheManager,org.dspace.services.SessionService,org.dspace.services.EventService,claimactionAPI,reviewactionAPI,editactionAPI,finaleditactionAPI,singleuserreviewactionAPI,selectrevieweractionAPI,scorereviewactionAPI,evaluationactionAPI,autoassignactionAPI,noUserSelectionActionAPI,assignoriginalsubmitteractionAPI,reviewaction,editaction,finaleditaction,selectrevieweraction,singleuserreviewaction,scorereviewaction,evaluationaction,claimaction,autoassignAction,noUserSelectionAction,originalSubmitterAssignAction];
 root of factory hierarchy
2014-02-26 13:37:12,620 INFO  
org.dspace.servicemanager.spring.SpringServiceManager @ Spring Service Manager 
started up in 859 ms with 43 services...
2014-02-26 13:37:12,622 INFO  org.dspace.servicemanager.DSpaceKernelImpl @ 
DSpace kernel startup completed in 936 ms and registered as MBean: 
org.dspace:name=6138c157-087b-470a-8a1c-ccea4beb09ae,type=DSpaceKernel
2014-02-26 13:37:12,658 INFO  org.dspace.storage.bitstore.Cleanup @ Cleaning up 
asset store
2014-02-26 13:37:14,942 INFO  net.sf.ehcache.util.UpdateChecker @ New update(s) 
found: 2.4.7 
[http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.4]
2014-02-26 13:37:18,112 FATAL org.dspace.storage.bitstore.Cleanup @ Caught 
exception:
java.sql.SQLException: ORA-02292: integrity constraint (DSPACE.SYS_C003794) 
violated - child record found

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:745)
at 
oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at 
oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:966)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3423)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:105)
at 
org.dspace.storage.rdbms.DatabaseManager.updateQuery(DatabaseManager.java:421)
at 
org.dspace.storage.rdbms.DatabaseManager.deleteByValue(DatabaseManager.java:572)
at org.dspace.storage.rdbms.DatabaseManager.delete(DatabaseManager.java:536)
at 
org.dspace.storage.bitstore.BitstreamStorageManager.cleanup(BitstreamStorageManager.java:633)
at org.dspace.storage.bitstore.Cleanup.main(Cleanup.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.dspace.app.launcher.

Re: [Dspace-tech] mysterious mvn behavior

2014-02-04 Thread Monika C. Mevenkamp
OOPS   Java 1.6 did do the trick   - THANKS

How about my other question regarding  building JSPUI-API et al only  - how do 
I tell maven to forget about SWORD / LNI / OAI / …. ?

Monika



Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


On Feb 4, 2014, at 1:28 PM, helix84 
mailto:heli...@centrum.sk>> wrote:

You're trying to build DSpace 1.8.x using Java 7. Only Java 6 is
supported for that version of DSpace, see:

https://wiki.duraspace.org/display/DSDOC18/Installation#Installation-OracleJavaJDK6(standardSDKisfine,youdon'tneedJ2EE)


Regards,
~~helix84

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

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] are there checksum checker reports

2014-01-31 Thread Monika C. Mevenkamp
I am run-in the check sum checker on our production instance via the crontab.
I would like to generate same kind of report that lets me when bitstreams were
checked last (and the result of the check)
I understand that the checksum checker stores results in the database, so it
should be straight forward to put this together. Did anybody do this already ?

Monika


Monika Mevenkamp
phone: 609-258-4161
Lewis Library,Washington Road and Ivy Lane, Princeton University, Princeton, NJ 
08544


--
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

[Dspace-tech] Bullk Replacing PDF bitstreams

2014-01-17 Thread Monika C. Mevenkamp

We have a community in which we want to change all pdfs by adding a standard 
cover page. 

This takes 3 steps: 
   get the bitstreams 
   add cover page to each   - my plan: use pdftk command to add cover pages
   replace in dspace instance 

It seems fairly easy to use the rest api to get to the bistreams, but maybe 
somebody already has a handy little script that can list all bitstreams in 
items from a community. 

if I get the bitstreams and update them - how can I most easily replace them in 
DSPACE ? 

Monika





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] failing to install DSPACE on MacOS

2014-01-13 Thread Monika C. Mevenkamp

I agree (after reading maven doc) that at least some of my problems relate to 
system/maven settings.
I installed maven directly instead of through brew.

Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 
11:22:22-0400)
Maven home: /Users/monikam/Software/maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.1", arch: "x86_64", family: "mac"


Now I have a version that actually provides an initial settings.xml file. 
Looking inside reveals no settings though, just lots of empty xml elements.

Again mvm tried to download a non existing jar, so I changed dspace-api/pom.xml
-  
- edu.yale
- casclient
- 2.0.11
-  
+
+  cas
+casclient
+  2.0.11
+  
 

Now maven  works away until:

Downloading: 
http://repo.maven.apache.org/maven2/org/apache/pdfbox/pdfbox/1.6.0/pdfbox-1.6.0.jar

It downloads a couple 100 bytes and then hangs

any tips ?

Monika



On Jan 8, 2014, at 11:31 AM, Andrea Bollini 
mailto:a.boll...@cineca.it>> wrote:

The problem is related to the repositories used vy maven tp download the 
artifacts. You should check the "effective pom" (I don't remember the cmd but 
google can help here).
The standard repositories, as the central repo at maven.org, 
are normally defined in the settings.xml that come out of box with maven but 
you can edit it yourself.
You can also add additional repositories editing directly the dspace parent pom 
file but I suggeds to you to try to fix your maven environment first.
Hope this help,
Andrea




Inviato da Tablet Samsung

Monika Mevenkamp mailto:moni...@princeton.edu>> ha 
scritto:

I found something on stack overflow that some people have problems with maven 
3.1 so I installed 3.0.5
I am still running into the same problem - aka maven trying to get a jar that 
does not exist
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar

with maven2  I go a little further but then I get unable to find resource 
messages and the command appears to hang

[INFO] Unable to find resource 'org.apache.pdfbox:pdfbox:jar:1.6.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
Downloading: 
http://repo1.maven.org/maven2/org/apache/pdfbox/pdfbox/1.6.0/pdfbox-1.6.0.jar
[INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:4.4.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
[INFO] Unable to find resource 'org.apache.pdfbox:jempbox:jar:1.6.0' in 
repository sonatype-releases 
(http://oss.sonatype.org/content/repositories/releases/)
Downloading: 
http://repo1.maven.org/maven2/org/apache/pdfbox/jempbox/1.6.0/jempbox-1.6.0.jar
50K downloaded  (jempbox-1.6.0.jar)

I am fairly sure this has something to do with me coming from a MAC with some 
setting somewhere that directed maven to the wrong url
Do you have any tips where I should start looking ?
Or can I bypass this problem by running a few wgets ?

Monika



On Jan 8, 2014, at 7:18 AM, helix84 
mailto:heli...@centrum.sk>> wrote:

Hi Monika,

I wasn't able to reproduce your issue with DSpace 4.0 and Maven 2.2.1.
Maybe it's specific to maven 3.1, because I'm sure it also builds with
Maven 3.0. Or the issue is something else altogether...

On Tue, Jan 7, 2014 at 10:47 PM, Monika Mevenkamp 
mailto:moni...@princeton.edu>> wrote:
Downloading:
http://oss.sonatype.org/content/repositories/releases/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar
which in fact does not exists:

This doesn't seem right, the jar is located here:

http://repo1.maven.org/maven2/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3.jar

At least this is what I'm getting when I delete my ~/.m2:

...
[DEBUG] Unable to locate resource in repository
org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate
resource in repository
   at 
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:139)
   at 
org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
   at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
   at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:546)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:427)
   at 
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:382)
   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
   at 
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
   at 
org.apache.maven.artifact.resolve

[Dspace-tech] CC_LICENSE , IP Authentication / javascript or custom code ?

2014-01-10 Thread Monika C. Mevenkamp
I recently started to work at Princeton University as Digital Repository 
Programmer where I am working with their DataSpace/DSPACE instance, version 
1.8.2 using jspui. A couple years ago I was at Georgia tech working with 
SMARTech. Lots has changed and I am trying to get up to speed again.

>From reading DSpace 1.8 documentation I understand that CC_LICENSEs are part 
>of a items. They are meant to describe what a user can do with bitstreams.  As 
>I understand the CC_LICENSE is defined when submitting an item. It is either 
>set to the default or  to the license of the containing collection. Setting
webui.licence_bundle.show = true
changes the ItemTag display a bit. It appears that only admin users can then 
download bistreams.

Stepping back:  Our DSPACE instances has a community with collections which 
contain senior theses documents. Access to these is supposed to be restricted 
to University members and site visitors should be made very aware of what they 
can and can not do with these files: aka read, print, but do not share with 
outsiders.

For access restriction I am envisioning using IPAuthentication. I understand 
that I need to enter our specific values in  
dspace/config/modules/authentication-ip.cfg file. I am envisioning a stack, 
where first our custom authentication code is tried, then IP Authentication, 
and then the Anonymous user is ‘authorized’.  How do I tie a pseudo user 
account to IP authentication ?

We would like to make site users explicitly agree to our custom license when 
they download a bitstream from a senior theses collection. Ideally  DSPACE 
should remember that agreement acceptance for a specified duration. Looking at 
the code I came up with the following plan:


  *   use collection’s CC_LICENSE to define the license agreement to be shown
  *   change BitstreamServlet:DSGet method such that
 *   if item’s collection is not listed in in webui.confirm-license. 
collections  setting do as before
 *   else:
*   if session contains a time stamp for the given collection that is 
within webui.confirm-license-aftermin do as before
*   else redirect to /agreement with bitstream parameter
  *   add AgreemntServlet (is that what it would be - I am not much of JSP 
developer)
 *   DSGet:  display a custom jsp page that shows the agreement and a 
‘Cancel’, ‘Accept’ button, ‘Cancel’ just navigates back and Accept triggers 
POST /agreement with bitstream param
 *   DSPost:  sets agreement time stamp for community and  redirects to 
/bistream/….

So now - in theory this seems not a huge project. In practice, as I said I am 
not much of JSP/Servlet developer. How are redirects done for example - I have 
no idea. Maybe instead, I should go ahead and try to hack something up based in 
Javascript and cookies - which would involve exposing the bitstream url in the 
html page. Since there would be no changes server side a skilled user could 
peel that bitstream out of the HTML and just go ahead and download. So not 
quite as good a solution.

I’d appreciate some feedback in terms whether my general approach is sound and 
the effort that might be involved. At the moment: I still do not actually have 
a satisfactory development environment setup.

Thanks

Monika

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette