Re: [Dspace-tech] Setting up Solr Statistics

2011-07-21 Thread Louw Venter
I am also interested in this as we are experiencing the same problems.
 
am able to access the admin page (http://localhost/solr/statistics/admin/) so 
my guess is that the webapp is running fine.
 
Does anyone have any suggestions for us?
 
Regards
 

Vrywaringsklousule / Disclaimer: 
http://www.nwu.ac.za/it/gov-man/disclaimer.html 

 On 20 July 2011 at 15:44, Lewatle Phaladi lewatle.phal...@wits.ac.za 
 wrote:

Hi All
 
I am in the process of setting up SOLR statistics on DSpace 1.7.2 and I have 
done some changes on dspace.cfg but when I try to view statistics there is no 
results, bellow is part of my configuration file please advise.
 
#---#
#--SOLR STATISTICS CONFIGURATIONS---#
#---#
# These configs are only used by the SOLR interface/webapp to   #
# track usage statistics.   #
#---#

# Usage Logging #
# set this to be the port you run the dspace solr webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080
solr.log.server = http://www.nameofir.ac.za/solr/statistics 

# The location for the Geo Database retrieved on update/installation
solr.dbfile = /home/dspace/dspace1.7.2/config/GeoLiteCity.dat

#added 
useProxies = false

# Timeout for the resolver in the dns lookup
# Time in milliseconds, defaults to 200 for backward compatibility
# Your systems default is usually set in /etc/resolv.conf and varies
# between 2 to 5 seconds, to high a value might result in solr exhausting
# your connection pool
solr.resolver.timeout = 200

# Control if the statistics pages should be only shown to authorized users
# If enabled, only the administrators for the DSpaceObject will be able to
# view the statistics.
# If disabled, anyone with READ permissions on the DSpaceObject will be able
# to view the statistics.
statistics.item.authorization.admin=true

# Enable/disable logging of spiders in solr statistics.
# If false, and IP matches an address in solr.spiderips.urls, event is not 
logged.
# If true, event will be logged with the 'isBot' field set to true
# (see solr.statistics.query.filter.* for query filter options)
# Default value is true.
#solr.statistics.logBots = true

# control solr statistics querying to filter out spider IPs
# false by default
#solr.statistics.query.filter.spiderIp = false

# control solr statistics querying to look at isBot field to determine
# if record is a bot. true by default.
#solr.statistics.query.filter.isBot = true

# URLs to download IP addresses of search engine spiders from
solr.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, \
 
 
Regards,
Lewatle


This communication is intended for the addressee only. It is confidential. If 
you have received this communication in error, please notify us immediately and 
destroy the original message. You may not copy or disseminate this 
communication without the permission of the University. Only authorized 
signatories are competent to enter into agreements on behalf of the University 
and recipients are thus advised that the content of this message may not be 
legally binding on the University and may contain the personal views and 
opinions of the author, which are not necessarily the views and opinions of The 
University of the Witwatersrand, Johannesburg. All agreements between the 
University and outsiders are subject to South African Law unless the University 
agrees in writing to the contrary.
--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Browse List Configuration

2011-07-21 Thread Waqas Khalid Awan
Hello Everybody. I have been using the dspace 1.7 on window platform. I want
to change the outlook of the browsing data that has been shown by clicking
on the browse by title link. i want to change it like the site given below.
Kindly tell me the solution.
http://repository.tamu.edu/handle/1969.1/5671/browse?type=title
Thanks in advance.
--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Fwd: Browse List Configuration

2011-07-21 Thread Waqas Khalid Awan
-- Forwarded message --
From: Waqas Khalid Awan wick.ma...@gmail.com
Date: Thu, Jul 21, 2011 at 12:54 PM
Subject: Browse List Configuration
To: Dspace general dspace-gene...@lists.sourceforge.net, Dspace Tech 
DSpace-tech@lists.sourceforge.net, Dspace developer 
dspace-de...@lists.sourceforge.net


Hello Everybody. I have been using the dspace 1.7 on window platform with
jspui. I want to change the outlook of the browsing data that has been shown
by clicking on the browse by title link. i want to change it like the site
given below. Kindly tell me the solution.
http://repository.tamu.edu/handle/1969.1/5671/browse?type=title
Thanks in advance.
--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Setting up Solr Statistics

2011-07-21 Thread Lewatle Phaladi
Hi Hilton and Team

 

I have managed to set up solr statistics and I  want to display my old report 
from dspace 1.6.2 that we were running, what is the easiest way of using solr 
stats from 1.6.2 to dspace 1.7.2. 

 

Regards,

Lewatle 

 

From: Hilton Gibson [mailto:hilton.gib...@gmail.com] 
Sent: 20 July 2011 04:26 PM
To: Lewatle Phaladi
Subject: Re: [Dspace-tech] Setting up Solr Statistics

 

Try: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics

 

On 20 July 2011 15:44, Lewatle Phaladi lewatle.phal...@wits.ac.za wrote:

Hi All

 

I am in the process of setting up SOLR statistics on DSpace 1.7.2 and I have 
done some changes on dspace.cfg but when I try to view statistics there is no 
results, bellow is part of my configuration file please advise.

 

#---#
#--SOLR STATISTICS CONFIGURATIONS---#
#---#
# These configs are only used by the SOLR interface/webapp to   #
# track usage statistics.   #
#---#

# Usage Logging #
# set this to be the port you run the dspace solr webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080
solr.log.server = http://www.nameofir.ac.za/solr/statistics

# The location for the Geo Database retrieved on update/installation
solr.dbfile = /home/dspace/dspace1.7.2/config/GeoLiteCity.dat

#added 
useProxies = false

# Timeout for the resolver in the dns lookup
# Time in milliseconds, defaults to 200 for backward compatibility
# Your systems default is usually set in /etc/resolv.conf and varies
# between 2 to 5 seconds, to high a value might result in solr exhausting
# your connection pool
solr.resolver.timeout = 200

# Control if the statistics pages should be only shown to authorized users
# If enabled, only the administrators for the DSpaceObject will be able to
# view the statistics.
# If disabled, anyone with READ permissions on the DSpaceObject will be able
# to view the statistics.
statistics.item.authorization.admin=true

# Enable/disable logging of spiders in solr statistics.
# If false, and IP matches an address in solr.spiderips.urls, event is not 
logged.
# If true, event will be logged with the 'isBot' field set to true
# (see solr.statistics.query.filter.* for query filter options)
# Default value is true.
#solr.statistics.logBots = true

# control solr statistics querying to filter out spider IPs
# false by default
#solr.statistics.query.filter.spiderIp = false

# control solr statistics querying to look at isBot field to determine
# if record is a bot. true by default.
#solr.statistics.query.filter.isBot = true

# URLs to download IP addresses of search engine spiders from
solr.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, \

 

 

Regards,

Lewatle

This communication is intended for the addressee only. It is confidential. If 
you have received this communication in error, please notify us immediately and 
destroy the original message. You may not copy or disseminate this 
communication without the permission of the University. Only authorized 
signatories are competent to enter into agreements on behalf of the University 
and recipients are thus advised that the content of this message may not be 
legally binding on the University and may contain the personal views and 
opinions of the author, which are not necessarily the views and opinions of The 
University of the Witwatersrand, Johannesburg. All agreements between the 
University and outsiders are subject to South African Law unless the University 
agrees in writing to the contrary.


--
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks  Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech




-- 
Hilton Gibson
Systems Administrator
JS Gericke Library

Room 1025D
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Cell: +27 846 464 758 | Phone: +27 21 808 4100

 


htmlpfont face = verdana size = 0.8 color = navyThis communication 
is intended for the addressee only. It is confidential. If you have received 
this communication in error, please notify us immediately and destroy the 
original message. You may not copy 

Re: [Dspace-tech] Setting up Solr Statistics

2011-07-21 Thread Lewatle Phaladi
Hi All

 

I have fixed the problem by putting

solr.dbfile = /home/dspace/config/GeoLitefordspace1.6.2

and in tomcat webapps  I have pasted solr directory for dspace1.6.2

 

Thanks,

Lewatle 

 

 

From: Lewatle Phaladi [mailto:lewatle.phal...@wits.ac.za] 
Sent: 21 July 2011 10:45 AM
To: Hilton Gibson
Cc: dspace-tech@lists.sourceforge.net
Subject: Re: [Dspace-tech] Setting up Solr Statistics

 

Hi Hilton and Team

 

I have managed to set up solr statistics and I  want to display my old report 
from dspace 1.6.2 that we were running, what is the easiest way of using solr 
stats from 1.6.2 to dspace 1.7.2. 

 

Regards,

Lewatle 

 

From: Hilton Gibson [mailto:hilton.gib...@gmail.com] 
Sent: 20 July 2011 04:26 PM
To: Lewatle Phaladi
Subject: Re: [Dspace-tech] Setting up Solr Statistics

 

Try: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Asset_Statistics

 

On 20 July 2011 15:44, Lewatle Phaladi lewatle.phal...@wits.ac.za wrote:

Hi All

 

I am in the process of setting up SOLR statistics on DSpace 1.7.2 and I have 
done some changes on dspace.cfg but when I try to view statistics there is no 
results, bellow is part of my configuration file please advise.

 

#---#
#--SOLR STATISTICS CONFIGURATIONS---#
#---#
# These configs are only used by the SOLR interface/webapp to   #
# track usage statistics.   #
#---#

# Usage Logging #
# set this to be the port you run the dspace solr webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080
solr.log.server = http://www.nameofir.ac.za/solr/statistics

# The location for the Geo Database retrieved on update/installation
solr.dbfile = /home/dspace/dspace1.7.2/config/GeoLiteCity.dat

#added 
useProxies = false

# Timeout for the resolver in the dns lookup
# Time in milliseconds, defaults to 200 for backward compatibility
# Your systems default is usually set in /etc/resolv.conf and varies
# between 2 to 5 seconds, to high a value might result in solr exhausting
# your connection pool
solr.resolver.timeout = 200

# Control if the statistics pages should be only shown to authorized users
# If enabled, only the administrators for the DSpaceObject will be able to
# view the statistics.
# If disabled, anyone with READ permissions on the DSpaceObject will be able
# to view the statistics.
statistics.item.authorization.admin=true

# Enable/disable logging of spiders in solr statistics.
# If false, and IP matches an address in solr.spiderips.urls, event is not 
logged.
# If true, event will be logged with the 'isBot' field set to true
# (see solr.statistics.query.filter.* for query filter options)
# Default value is true.
#solr.statistics.logBots = true

# control solr statistics querying to filter out spider IPs
# false by default
#solr.statistics.query.filter.spiderIp = false

# control solr statistics querying to look at isBot field to determine
# if record is a bot. true by default.
#solr.statistics.query.filter.isBot = true

# URLs to download IP addresses of search engine spiders from
solr.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, \

 

 

Regards,

Lewatle

This communication is intended for the addressee only. It is confidential. If 
you have received this communication in error, please notify us immediately and 
destroy the original message. You may not copy or disseminate this 
communication without the permission of the University. Only authorized 
signatories are competent to enter into agreements on behalf of the University 
and recipients are thus advised that the content of this message may not be 
legally binding on the University and may contain the personal views and 
opinions of the author, which are not necessarily the views and opinions of The 
University of the Witwatersrand, Johannesburg. All agreements between the 
University and outsiders are subject to South African Law unless the University 
agrees in writing to the contrary.


--
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks  Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech




-- 
Hilton Gibson
Systems Administrator
JS Gericke 

Re: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson who is also a previous Item submitter (item.submitter_id)

2011-07-21 Thread George S Kozak
Susan:

I have run into the same problem, but in my case I was trying to delete the ids 
of graduate students who left the University, but who had submitted Theses and 
Dissertations to DSpace.  I ended up disabling their logins, but could find no 
way to actually delete them.

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

From: Thornton, Susan M. (LARC-B702)[LITES] [mailto:susan.m.thorn...@nasa.gov]
Sent: Wednesday, July 20, 2011 6:33 PM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson who is also 
a previous Item submitter (item.submitter_id)

I ran into a problem I wanted to report in one of our DSpace instances.  I was 
trying to delete an Eperson record as an Administrator, and I kept getting an 
Internal Server Error.  The error message in the dspace.log file didn’t really 
give me too much to go on, but I finally figured out that I couldn’t delete 
that person because that person (me!) was the person who had added every Item 
to the repository and every single row in the Item table had that eperson_id in 
column “submitter_id”.  I don’t think there should be any referential integrity 
between eperson.eperson_id and item.submitter_id, because it would certainly be 
possible and appropriate that the person who originally loaded the Items might 
eventually leave.  I suppose something would have to be done in that case or 
you might end up with an eperson_id in “submitter_id” in the Item rows that no 
longer exists in the eperson table, but maybe in that instance a generic 
eperson_id could be used.  Does anyone have thoughts on this?  I’m not sure if 
this has been addressed in a subsequent release of DSpace (we’re in the process 
of implementing version 1.7.1 in our main Production DSpace instance).

Thanks and Best regards,
Sue



Sue Walker-Thornton
Software Developer/Database Administrator
NASA Langley Research Center|LITES Contract
SGT, Inc.|130 Research Drive
Hampton, Va.  23666
Office: (757) 224-4074
Mobile: (757) 506-9903
Fax: (757) 224-4001
susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] from aspect to theme

2011-07-21 Thread Blanco, Jose
The aspect aspect.artifactbrowser.ItemViewer prepares a DRI that is later 
processed by the theme General-Handler.xsl.  How does the system know to go to 
General-Handler.xsl?  

I've created a new aspect called aspect.artifactbrowser.ItemViewerNew, and I 
changed the aspect sitemap to go to either ItemViewer aspect or ItemViewerNew 
depending on a condition.  Now I want to create a new theme for ItemViewerNew.  
How do I connect my new aspect with a new theme?

Thank you!
Jose

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] indexing error: too many open files

2011-07-21 Thread Joshua Gomez
Andrea, yes that worked. thanks. Of course I believe it has nothing to do with 
my original indexing problem, but at least I'm removing possibilities.

 Andrea Schweer schw...@waikato.ac.nz 7/20/2011 7:01 PM 
Hi Joshua,

On 21/07/11 02:36, Joshua Gomez wrote:
 I installed java-6-sun jdk and made it the default, but I am still 
 getting the error with the index, though it now references the
 sunJDK instead of the OpenJDK.  However, when I run a list of open
 files, I see several files opened by jsvc (with dspace as the user)
 that are from the openjdk library. I don't understand why it would
 still be using those .jar and .so files if the sunjdk is the
 default.

Try putting the Sun JDK into /etc/default/tomcat6 and restarting tomcat
-- does that work for you?

JAVA_HOME=/usr/lib/jvm/java-6-sun

The tomcat 6 init script on Ubuntu has some 'clever' logic to determine
which JDK to use. Helpfully, this logic completely ignores what's set as
the system default.

cheers,
Andrea

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

--
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks  Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/ 
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/dspace-tech
--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson who is also a previous Item submitter (item.submitter_id)

2011-07-21 Thread Brian Freels-Stendel
Morning,

There doesn't seem to be a solid reason in the codebase that epeople
who've submitted can't be deleted; it seems to be something that was
decided on a database level.  It makes sense, though, to keep it, on
that level.  Otherwise, you have database fields that point nowhere, and
that can't be good.

For general mass submissions, a workaround might be to use the original
admin account (assuming that's not a person who might later want to be
deleted.)  

For things like theses/dissertations, I think we have to be stuck with
having those one-shot accounts pile up year after year.  There might be
some filter feature added so we don't have to look at accounts that are
locked, but with the search functionality, I'm not sure that would be
necessary.

B--



 On 7/21/2011 at 7:32 AM, in message
a3e58c957c81584e933f5da65fd9680606494fe...@mbxa.exchange.cornell.edu,
George
S Kozak g...@cornell.edu wrote:
 Susan:
 
 I have run into the same problem, but in my case I was trying to
delete the 
 ids of graduate students who left the University, but who had
submitted 
 Theses and Dissertations to DSpace.  I ended up disabling their
logins, but 
 could find no way to actually delete them.
 
 George Kozak
 Digital Library Specialist
 Cornell University Library Information Technologies (CUL-IT)
 501 Olin Library
 Cornell University
 Ithaca, NY 14853
 607-255-8924
 
 From: Thornton, Susan M. (LARC-B702)[LITES] 
 [mailto:susan.m.thorn...@nasa.gov] 
 Sent: Wednesday, July 20, 2011 6:33 PM
 To: dspace-tech@lists.sourceforge.net 
 Subject: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson
who is 
 also a previous Item submitter (item.submitter_id)
 
 I ran into a problem I wanted to report in one of our DSpace
instances.  I 
 was trying to delete an Eperson record as an Administrator, and I
kept 
 getting an Internal Server Error.  The error message in the
dspace.log file 
 didn’t really give me too much to go on, but I finally figured out
that I 
 couldn’t delete that person because that person (me!) was the
person who had 
 added every Item to the repository and every single row in the Item
table had 
 that eperson_id in column “submitter_id”.  I don’t think there
should be any 
 referential integrity between eperson.eperson_id and
item.submitter_id, 
 because it would certainly be possible and appropriate that the
person who 
 originally loaded the Items might eventually leave.  I suppose
something 
 would have to be done in that case or you might end up with an
eperson_id in 
 “submitter_id” in the Item rows that no longer exists in the
eperson table, 
 but maybe in that instance a generic eperson_id could be used.  Does
anyone 
 have thoughts on this?  I’m not sure if this has been addressed in
a 
 subsequent release of DSpace (we’re in the process of implementing
version 
 1.7.1 in our main Production DSpace instance).
 
 Thanks and Best regards,
 Sue
 
 
 
 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 SGT, Inc.|130 Research Drive
 Hampton, Va.  23666
 Office: (757) 224-4074
 Mobile: (757) 506-9903
 Fax: (757) 224-4001
 susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Allowing users to edit their own submissions

2011-07-21 Thread Lemann, Alexander Bernard
Is there a way to allow users to edit their own submissions without giving them 
access to edit everything in a collection?  Is there a philosophical or 
technical reason to not allow this?  I guess this would be sort of like setting 
DEFAULT_ITEM_WRITE to the user who is submitting.

Thanks,
Alex Lemann

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem launching Handle Server in Dspace 1.6.1

2011-07-21 Thread Stan Orlov
Thanks a lot, Helix 84!

I have restarted the computer and the Handle server started working!

Cheers,
Stan



On Wed, Jul 20, 2011 at 3:25 PM, helix84 heli...@centrum.sk wrote:

 On Wed, Jul 20, 2011 at 19:49, Stan Orlov stan.or...@msvu.ca wrote:
  2011/07/20 02:27:33 ADT 100 class net.handle.server.HdlUdpInterface:
 Error
  setting up server socket: java.net.BindException: Address already in use:
  Cannot bind

 That means that a program is already listening on the port you're
 trying to bind. Usually you're trying to run another instance of the
 same application (possibly the first one is hung and needs to be
 killed).

 You can either restart the computer to get rid of the old processes, or
 you can find them using the netstat command and looking at listening
 services at ports 2641 and 8000 (which handle server uses, IIRC),
 then kill them manually and restart the service.

 Regards,
 ~~helix84

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Reporting/Repository metrics

2011-07-21 Thread Pottinger, Hardy J.
Hi, my repository managers are looking for reports on the contents of
communities and collections, total items, kinds of items (articles,
dissertations, web sites, etc.), formats of bitstreams, etc. I know:
curation tasks are good for this sort of thing (in fact, one task already
does bitstream format profiling), but, I'm thinking, if much of this data
is in a DB, why not just run some SQL queries and get it that way? There
used to be a Perl script (dspace-info.pl) that did this, but it didn't
survive the move to a single DSpace script. So, anyway, before I go
reinventing the wheel, I figured I'd better ask what everyone else is
doing for this kind of reporting on the contents of their repositories?
The audience for these reports would be the repository managers
themselves, as well as community and collection managers, and other
stakeholders, as well as for promotional purposes.

AND, if someone has a bundle of curation tasks that kinda-sorta fit the
bill, it would be totally awesome to hear about that.

Thanks!

--
HARDY POTTINGER pottinge...@umsystem.edu
University of Missouri Library Systems
http://lso.umsystem.edu/~pottingerhj/
No matter how far down the wrong road you've gone,
turn back. --Turkish proverb





--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] from aspect to theme

2011-07-21 Thread Blanco, Jose
OK, After looking at the code some more today, I kind of see how this works.  
The dri2xhtml.xsl file imports:

Structural.xsl
DIM-Handler.xsl
General-Handler.xsl

And if you look at these xsl carefully you can see that they call the 
appropriate template based on the DRI and mets XML.  

I'm still stuck though, because what I would ideally like is for my new aspect 
to create some sort of flag that would tell the theme to go to a particular 
template, but I can't figure out how to do this. 

In DIM-Handler.xsl  there is some code that looks like this:

xsl:template 
match=mets:METS[mets:dmdSec/mets:mdWrap[@OTHERMDTYPE='DIM']] 
mode=summaryList
xsl:choose
xsl:when test=@LABEL='DSpace Item'
xsl:call-template name=itemSummaryList-DIM/
/xsl:when
xsl:when test=@LABEL='DSpace Collection'
xsl:call-template name=collectionSummaryList-DIM/
/xsl:when
xsl:when test=@LABEL='DSpace Community'
xsl:call-template name=communitySummaryList-DIM/
/xsl:when
xsl:otherwise
i18n:textxmlui.dri2xhtml.METS-1.0.non-conformant/i18n:text
/xsl:otherwise
/xsl:choose
/xsl:template

And I would like to add a new new case that would look like this:

xsl:when test=@LABEL='DSpace Item 2'
xsl:call-template name=itemSummaryList-DIM-2/
/xsl:when


But how do I get LABEL set to 'Dspace Item 2' from the aspect code?

How do I create a new type of item?  Any help would be greatly appreciated.

-Jose

-Original Message-
From: Blanco, Jose [mailto:blan...@umich.edu] 
Sent: Thursday, July 21, 2011 10:19 AM
To: dspace-tech@lists.sourceforge.net
Subject: [Dspace-tech] from aspect to theme

The aspect aspect.artifactbrowser.ItemViewer prepares a DRI that is later 
processed by the theme General-Handler.xsl.  How does the system know to go to 
General-Handler.xsl?  

I've created a new aspect called aspect.artifactbrowser.ItemViewerNew, and I 
changed the aspect sitemap to go to either ItemViewer aspect or ItemViewerNew 
depending on a condition.  Now I want to create a new theme for ItemViewerNew.  
How do I connect my new aspect with a new theme?

Thank you!
Jose

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace suggestions?

2011-07-21 Thread Peter Dietz
Hi Andrea,

I do actually have use for the bot prefix wildcard, so it would be useful if
you could send me how you've built it. We're planning on using that for
similar bot-detecting.

Peter Dietz



On Thu, Jul 14, 2011 at 5:52 PM, Andrea Schweer schw...@waikato.ac.nzwrote:

 Hi,

 On 15/07/11 05:13, Peter Dietz wrote:
  However, there could be a way for people to pool effort to work on
  common needs.

 I like what you describe in terms of sharing information / pooling
 efforts to work on common needs. Though I have no idea for a good
 platform for that, other than the mailing list or IRC.

 As to one of the specific points you mentioned:

  Another group has figured out how to search in SOLR for having a
  wildcard at the start of a query.

 I have a working but hackish solution for this that is probably not
 efficient enough for production use (I needed it for a one-off query
 only). I'm happy to share this if anyone is interested.

 cheers,
 Andrea

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


 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson who is also a previous Item submitter (item.submitter_id)

2011-07-21 Thread Stuart Lewis
Hi all,

Yes - this is constrained via database foreign key rules.  You can, if you want 
to, update the relevant user id for the item, but of course you'd lose the 
submitter / owner information.  

What we've done at the University of Auckland is to make all theses (which are 
the biggest source of stale accounts) be submitted via SWORD.  This means the 
actual deposits are made with a single user account, while our SWORD client 
(http://easydeposit.swordapp.org/) takes care of the user authentication.  It 
also has the benefit of students not having how to learn the DSpace submission 
system for a single one-off deposit.

Likewise, all our research outputs are deposited via a CRIS system 
(http://www.symplectic.co.uk/) which means our repository is now just a 
downstream system, with all its data being fed from more specialized systems.  
This model seems to work well for us.

Thanks,


Stuart Lewis
Digital Development Manager
Te Tumu Herenga The University of Auckland Library
Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand
Ph: +64 (0)9 373 7599 x81928


On 22/07/2011, at 2:53 AM, Brian Freels-Stendel wrote:

 Morning,
 
 There doesn't seem to be a solid reason in the codebase that epeople
 who've submitted can't be deleted; it seems to be something that was
 decided on a database level.  It makes sense, though, to keep it, on
 that level.  Otherwise, you have database fields that point nowhere, and
 that can't be good.
 
 For general mass submissions, a workaround might be to use the original
 admin account (assuming that's not a person who might later want to be
 deleted.)  
 
 For things like theses/dissertations, I think we have to be stuck with
 having those one-shot accounts pile up year after year.  There might be
 some filter feature added so we don't have to look at accounts that are
 locked, but with the search functionality, I'm not sure that would be
 necessary.
 
 B--
 
 
 
 On 7/21/2011 at 7:32 AM, in message
 a3e58c957c81584e933f5da65fd9680606494fe...@mbxa.exchange.cornell.edu,
 George
 S Kozak g...@cornell.edu wrote:
 Susan:
 
 I have run into the same problem, but in my case I was trying to
 delete the 
 ids of graduate students who left the University, but who had
 submitted 
 Theses and Dissertations to DSpace.  I ended up disabling their
 logins, but 
 could find no way to actually delete them.
 
 George Kozak
 Digital Library Specialist
 Cornell University Library Information Technologies (CUL-IT)
 501 Olin Library
 Cornell University
 Ithaca, NY 14853
 607-255-8924
 
 From: Thornton, Susan M. (LARC-B702)[LITES] 
 [mailto:susan.m.thorn...@nasa.gov] 
 Sent: Wednesday, July 20, 2011 6:33 PM
 To: dspace-tech@lists.sourceforge.net 
 Subject: [Dspace-tech] Problem in DSpace 1.5.1 deleting an eperson
 who is 
 also a previous Item submitter (item.submitter_id)
 
 I ran into a problem I wanted to report in one of our DSpace
 instances.  I 
 was trying to delete an Eperson record as an Administrator, and I
 kept 
 getting an Internal Server Error.  The error message in the
 dspace.log file 
 didn’t really give me too much to go on, but I finally figured out
 that I 
 couldn’t delete that person because that person (me!) was the
 person who had 
 added every Item to the repository and every single row in the Item
 table had 
 that eperson_id in column “submitter_id”.  I don’t think there
 should be any 
 referential integrity between eperson.eperson_id and
 item.submitter_id, 
 because it would certainly be possible and appropriate that the
 person who 
 originally loaded the Items might eventually leave.  I suppose
 something 
 would have to be done in that case or you might end up with an
 eperson_id in 
 “submitter_id” in the Item rows that no longer exists in the
 eperson table, 
 but maybe in that instance a generic eperson_id could be used.  Does
 anyone 
 have thoughts on this?  I’m not sure if this has been addressed in
 a 
 subsequent release of DSpace (we’re in the process of implementing
 version 
 1.7.1 in our main Production DSpace instance).
 
 Thanks and Best regards,
 Sue
 
 
 
 Sue Walker-Thornton
 Software Developer/Database Administrator
 NASA Langley Research Center|LITES Contract
 SGT, Inc.|130 Research Drive
 Hampton, Va.  23666
 Office: (757) 224-4074
 Mobile: (757) 506-9903
 Fax: (757) 224-4001
 susan.m.thorn...@nasa.govmailto:susan.m.thorn...@nasa.gov
 
 --
 5 Ways to Improve  Secure Unified Communications
 Unified Communications promises greater efficiencies for business. UC can 
 improve internal communications as well as offer faster, more efficient ways
 to interact with customers and streamline customer service. Learn more!
 http://www.accelacomm.com/jaw/sfnl/114/51426253/
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech





Re: [Dspace-tech] indexing error: too many open files

2011-07-21 Thread Andrea Schweer
Hi Joshua,

On 22/07/11 02:20, Joshua Gomez wrote:
 Andrea, yes that worked. thanks. Of course I believe it has nothing
 to do with my original indexing problem, but at least I'm removing 
 possibilities.

Good to hear it works and thanks for confirming -- I'll update the wiki
page.

So you're still getting your too many open files error with the Sun
JDK? The original error message you posted very much looked like a JDK
problem.

If you suspect it's actually related to Tomcat's memory settings, you
could try increasing its memory. There are some hints here:
https://wiki.duraspace.org/display/DSPACE/HowToPerformanceTuneForDspace.
You'd change JAVA_OPTS in /etc/default/tomcat6.

cheers,
Andrea

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

--
5 Ways to Improve  Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can 
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] DSpace suggestions?

2011-07-21 Thread Andrea Schweer
Hi Peter,

On 22/07/11 09:16, Peter Dietz wrote:
 I do actually have use for the bot prefix wildcard, so it would be 
 useful if you could send me how you've built it. We're planning on 
 using that for similar bot-detecting.

I added a custom query parser to solrconfig.xml:

queryParser name=wildcard
class=nz.ac.lconz.irr.solr.CleanupQParserPlugin /

My CleanupQParserPlugin extends org.apache.solr.search.QParserPlugin; I
copied most of the code out of
org.apache.solr.search.LuceneQParserPlugin and added a
setAllowLeadingWildcard(true). I'm attaching my plugin code but I don't
know if this will make it to the mailing list.

You can then use this plugin in queries like this:
http://127.0.0.1:8080/solr/statistics/select/?defType=wildcardq=userAgent:*bot*+OR+*crawler*+OR+*spider*rows=0

You can't seem to be able to use it in delete queries though. My
workaround for that is to do a userAgent facet query for all user agents
that match the query above, then go through the list of user agents
found and explicitly delete all hits by this particular user agent. I'm
attaching my code for this too (I really need to get this on github).

I used this to remove the user agents *crawler*, *bot* and *spider* with
a one-off query; it seems to have worked nicely on my test data
(~120,000 item/bitstream hits) but I haven't run it on my production
servers yet. To keep these user agents out of the data from this point
forward, I customised SolrLoggerUsageEventListener to not log views by
these user agents (and to omit other events, eg to non-public bitstreams).

It's all not the most elegant solution in the world but it seems to work
ok for my purpose.

cheers,
Andrea

-- 
Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
package nz.ac.lconz.irr.solr;

import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.queryParser.QueryParser;
import org.apache.lucene.search.Query;
import org.apache.solr.common.params.CommonParams;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.common.util.NamedList;
import org.apache.solr.request.SolrQueryRequest;
import org.apache.solr.search.QParser;
import org.apache.solr.search.QParserPlugin;
import org.apache.solr.search.QueryParsing;
import org.apache.solr.search.SolrQueryParser;

/**
 * Query parser plugin for solr that allows leading wildcards in queries.
 * Pretty much copy/paste from existing solr/lucene code.
 */
public class CleanupQParserPlugin extends QParserPlugin {
	@Override
	public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req) {
		return new WildcardLuceneQParser(qstr, localParams, params, req);
	}

	public void init(NamedList args) {
		// nothing to do
	}

	class WildcardLuceneQParser extends QParser {

		String sortStr;
		SolrQueryParser lparser;

		public WildcardLuceneQParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req) {
			super(qstr, localParams, params, req);
		}

		public Query parse() throws ParseException {
			String qstr = getString();

			String defaultField = getParam(CommonParams.DF);
			if (defaultField==null) {
defaultField = getReq().getSchema().getDefaultSearchFieldName();
			}
			lparser = new SolrQueryParser(this, defaultField);

			// these could either be checked  set here, or in the SolrQueryParser constructor
			String opParam = getParam(QueryParsing.OP);
			if (opParam != null) {
lparser.setDefaultOperator(AND.equals(opParam) ? QueryParser.Operator.AND : QueryParser.Operator.OR);
			} else {
// try to get default operator from schema
String operator = getReq().getSchema().getQueryParserDefaultOperator();
lparser.setDefaultOperator(AND.equals(operator) ?
		   QueryParser.Operator.AND : QueryParser.Operator.OR);
			}
			lparser.setAllowLeadingWildcard(true);
			return lparser.parse(qstr);
		}


	}
}
package nz.ac.lconz.irr.statsimport;

import nz.ac.lconz.irr.solr.SolrUtils;
import org.apache.solr.client.solrj.SolrQuery;
import org.apache.solr.client.solrj.SolrServer;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.response.FacetField;
import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.client.solrj.util.ClientUtils;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Andrea Schweer schw...@waikato.ac.nz
 */
public class RemoveBots {


	static public void main(String[] argv) {

		if (argv.length  1) {
			System.out.println(Usage: RemoveBots solrServer);
			System.exit(1);
		}

		SolrServer solr = SolrUtils.setupSolrServer(argv[0]);

		try {
			ListString userAgents = findUserAgents(solr);

			for (String userAgent : userAgents) {
removeAgentHits(solr, userAgent);
			}

			solr.commit();

		} catch (SolrServerException e) {
			e.printStackTrace(System.err);
		} catch (IOException e) {
			

Re: [Dspace-tech] Allowing users to edit their own submissions

2011-07-21 Thread Mark Diggory
Alex,

Theres a philosophical reason

1.) During submission, the licensing being agreed passes rights to the
repository for dissemination and management of the attached content.

2.) After the review phase, the Collection Managers have reviewed the item
and determined it worthy of being in the archive.

So if the submitter were to be able to change it after that point, it would
be without the Reviewers observing those changes.  I do not necessarily
think this means that Items shouldn't be able to be updated by the
original submitter.  But from the standpoint of repository content
management policies, its best if it were to be properly documented and
reviewed when it happens.  NESCent and @mire have been recently working on
an Item versioning add-on for DSpace that enables new versions of items to
be generated and inserted back into the submission workflow, where they can
be altered and passed onto the curators again for review, then the version
history of the item can be tracked and possibly multiple versions of an item
be retained and all be citable.  We hope to see it be a feature added to a
future version of DSpace.

Best,
Mark Diggory

On Thu, Jul 21, 2011 at 9:52 AM, Lemann, Alexander Bernard ablem...@bsu.edu
 wrote:

 Is there a way to allow users to edit their own submissions without giving
 them access to edit everything in a collection?  Is there a philosophical or
 technical reason to not allow this?  I guess this would be sort of like
 setting DEFAULT_ITEM_WRITE to the user who is submitting.

 Thanks,
 Alex Lemann


-- 
Mark R. Diggory
@mire - www.atmire.com
2888 Loker Avenue East - Suite 305 - Carlsbad - CA - 92010
Esperantolaan 4 - Heverlee 3001 - Belgium
--
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks  Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech