[Dspace-tech] WIthdrawn items are searched after update-discovery-index

2014-10-17 Thread Ruben
Hi everyone,

I'm working on DSpace XMLUI, and I had many problems this week with 
duplicated harvested items in one community. I decided to withdraw these 
items modifying 'withdrawn' and 'in_archive' flags directly on database 
( I applied this workaround before completely delete because the 
repository is in production and I should be sure that deleted items are 
duplicated).

After this I ran index-update and all of these items no longer appear in 
'Items in this collection by title' list, but if I searched them, they 
appears. Then I applied update-discovery-index -d to delete all indexes 
and rebuild them, but nothing changes.

My question is, which option of bin dspace script I should run to drop 
(hide) all withdrawn items from all places of the repository?

Thanks in advance

-- 


Rubén Boada
Tècnic de Càlcul i Aplicacions
Consorci de Serveis Universitaris de Catalunya (CSUC)

Gran Capità, 2 (Edifici Nexus)•08034 Barcelona
T.93 551 62 13•ruben.bo...@csuc.cat
www.csuc.cat •Twitter @CSUC_info•Facebook•Linkedin
Subscriu-te al butlletí; (www.csuc.cat/butlleti)



--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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 Navigation buttons

2014-10-17 Thread Tatevik Zargaryan
Hi how can I add navigation buttons (next page, previous page, end) for
each collection in the UI.

Thanks in advance


Tatevik
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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 Statistics still not working DSpace 4.1

2014-10-17 Thread Hilton Gibson
Hi Keir

Without knowing which DSpace version, try to check:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/SOLR_Statistics
The link is based on DSpace 3.2 and Ubuntu 12.04 LTS as per RA-02-2014 in:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Reference_Architecture

Cheers

hg

*Hilton Gibson*
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758

On 16 October 2014 22:52, Keir Vaughan-Taylor k...@physiol.usyd.edu.au
wrote:

 Here is the system and software  version information.



 LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
 Red Hat Enterprise Linux Server release 6.6 (Santiago)

 psql (PostgreSQL) 8.4.20
 dspace-4.1-src-release

 Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9;
 2014-02-15T04:37:52+10:00)
 Maven home: /usr/local/maven
 Java version: 1.7.0_71, vendor: Oracle Corporation
 Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.71.x86_64/jre
 Default locale: en_US, platform encoding: UTF-8
 OS name: linux, version: 2.6.32-431.29.2.el6.x86_64, arch: amd64,
 family: unix

 Apache Ant(TM) version 1.8.2 compiled on May 13 2011

 Tomcat7




 On Thu, 2014-10-16 at 10:16 +0200, Hilton Gibson wrote:
  Hi Keir
 
 
  Can you tell us what architecture you are using.
  See:
 http://wiki.lib.sun.ac.za/index.php/SUNScholar/Reference_Architecture
  This will help us to help you.
  If you have already sent the info to the list then my apologies.
 
 
  Cheers
 
 
  hg
 
  Hilton Gibson
  Ubuntu Linux Systems Administrator
  JS Gericke Library
  Room 1025C
  Stellenbosch University
  Private Bag X5036
  Stellenbosch
  7599
  South Africa
 
 
  Tel: +27 21 808 4100 | Cell: +27 84 646 4758
 
  On 16 October 2014 05:37, Keir Vaughan-Taylor
  k...@physiol.usyd.edu.au wrote:
  Still Can't get the Solr stats to work.
  Eliminating items without handles made no difference.
 
  One problem that might be related is something web based.
  A recommended test is to run:
 
  wget http://127.0.0.1/solr/statistics/select?q=*:*
 
  and I get
 
  --2014-10-16 14:30:20--
  http://127.0.0.1/solr/statistics/select?q=*:*
  Connecting to 127.0.0.1:80... connected.
  HTTP request sent, awaiting response... 500 Internal Server
  Error
  2014-10-16 14:30:20 ERROR 500: Internal Server Error.
 
  This is also the error when trying to run optimise in the
  nightly run.
  I've checked the config files, the server names, I've done a
  rebuild
  from source, (restarted httpd and Tomcat of course).
 
  I've gone through the /etc/httpd/conf files and even
  substituted a
  directory from another Solr working instance of DSpace.
 
  I tried replacing the entire /dspace/config directory with
  that from the
  working instance (although changing the nameserver entries)
 
  Somebody must have been down this path - throw me a clue
  please.
 
 
 
  --
  Keir Vaughan-Taylor
  ERA DSpace Administrator
  Rm:123 Fisher Library University of Sydney
  k...@physiol.usyd.du.au
  ph:+61 2 9351 7408
  mb:+61 434 606 885
 
 
 
  
 --
  Comprehensive Server Monitoring with Site24x7.
  Monitor 10 servers for $9/Month.
  Get alerted through email, SMS, voice calls or mobile push
  notifications.
  Take corrective actions from your mobile device.
  http://p.sf.net/sfu/Zoho
  ___
  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
 
 
 
 --
  Comprehensive Server Monitoring with Site24x7.
  Monitor 10 servers for $9/Month.
  Get alerted through email, SMS, voice calls or mobile push notifications.
  Take corrective actions from your mobile device.
  http://p.sf.net/sfu/Zoho
  ___
  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

 --
 Keir Vaughan-Taylor
 ERA DSpace Administrator
 Rm:123 Fisher Library University of Sydney
 k...@physiol.usyd.du.au
 ph:+61 2 9351 7408
 mb:+61 434 606 885



 --
 Comprehensive Server Monitoring with Site24x7.
 

[Dspace-tech] Adding Users/Researchers to Organization Unit

2014-10-17 Thread Mary Choi
Dear all,
I would like to know how to add users/researchers to a Organization unit. If I 
want to add a researcher to a unit and link to his/her profile, what should I 
add to the Metadata for Researcher Profile reference field? Thank you very much 
for your time.
Best Regards,Mary --
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] Adding Users/Researchers to Organization Unit

2014-10-17 Thread Andrea Bollini

Hi Mary,
what version of DSpace-CRIS are you using?
have you load the basic configuration or are you configuring a custom 
domain model?


in the basic configuration
https://github.com/Cineca/DSpace/blob/dspace-cris-master/dspace/etc/postgres/base-configuration-crismodule.sql#L232
you have the attribute dept (label: Department) for ResearcherPage that 
allow you to link the Researcher to a single orgunit.
If needed, you can make it repeable as well using the admin UI or you 
can add more field to manage relation with other kind of orgunit 
(research group, etc.)


If you want define the field from the admin UI see the technical 
documentation, PDF pag 61

http://cineca.github.io/dspace-cris/doc/technical-documentation.pdf

the widget configuration that we use for the orgunit link in the basic 
configuration is here

https://github.com/Cineca/DSpace/blob/dspace-cris-master/dspace/etc/postgres/base-configuration-crismodule.sql#L327

Hope this help,
Andrea


Il 17/10/2014 10.53, Mary Choi ha scritto:

Dear all,

I would like to know how to add users/researchers to a Organization 
unit. If I want to add a researcher to a unit and link to his/her 
profile, what should I add to the Metadata for Researcher Profile 
reference field? Thank you very much for your time.


Best Regards,
Mary


--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho


___
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



--
Andrea Bollini
Soluzioni per la Ricerca Istituzionale
Cineca

Via dei Tizii, 6
00185 Roma, Italy
tel. +39 06 44 486 087 - mob. +39 348 82 77 525
http://www.cineca.it

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] OAI Web app throwing exception in Dspace 4.2

2014-10-17 Thread Nason Bimbe
Hi,
I have just upgraded my production box with DSpace 4.2 from 3.1. All works
well on my dev box but I getting the following exception when I hit the oai
webapp on the browser. Has anyone encountered this problem and how did they
resolve it.

Thanks
Nason

HTTP Status 500 - Servlet.init() for servlet oai threw exception
--

*type* Exception report

*message* *Servlet.init() for servlet oai threw exception*

*description* *The server encountered an internal error that prevented it
from fulfilling this request.*

*exception*

javax.servlet.ServletException: Servlet.init() for servlet oai threw exception

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)

*root cause*

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

org.apache.http.impl.client.AbstractHttpClient.init(AbstractHttpClient.java:187)

org.apache.http.impl.client.DefaultHttpClient.init(DefaultHttpClient.java:127)

org.apache.http.impl.client.SystemDefaultHttpClient.init(SystemDefaultHttpClient.java:113)

org.apache.solr.client.solrj.impl.HttpClientUtil.createClient(HttpClientUtil.java:104)

org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:154)

org.apache.solr.client.solrj.impl.HttpSolrServer.init(HttpSolrServer.java:127)

org.dspace.xoai.solr.DSpaceSolrServer.getServer(DSpaceSolrServer.java:34)

org.dspace.xoai.DSpaceOAIDataProvider.init(DSpaceOAIDataProvider.java:62)
javax.servlet.GenericServlet.init(GenericServlet.java:158)

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:193)

org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)

org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)

java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:745)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/7.0.54 logs.*
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] Using OCR to make scanned documents searchable by content

2014-10-17 Thread Mckeane Thomas
Hello,
   Does Dspace allow for scanned documents to be searchable by content or
is there a way to do this using OCR if it is not supported.
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] Using OCR to make scanned documents searchable by content

2014-10-17 Thread Peter Dietz
Hi Thomas,

Before you upload your content to DSpace, ensure that your have your
PDF-creation-software OCR the scanned files. Acrobat should be able to do
that. http://blogs.adobe.com/acrobat/acrobat_ocr_make_your_scanned/

Once that OCR'ed PDF gets uploaded to DSpace, DSpace will be able to
extract the OCR'ed text, and make it searchable within DSpace. (Ensure your
media filter is scheduled to run regularly).

If you upload PDF's that don't get OCR checked, you'd have to build a
custom media filter tool, to convert unOCR'edPDF to an OCR'ed PDF, and then
extract the text.


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

On Fri, Oct 17, 2014 at 3:20 PM, Mckeane Thomas mckeane.tho...@gmail.com
wrote:

 Hello,
Does Dspace allow for scanned documents to be searchable by content or
 is there a way to do this using OCR if it is not supported.




 --
 Comprehensive Server Monitoring with Site24x7.
 Monitor 10 servers for $9/Month.
 Get alerted through email, SMS, voice calls or mobile push notifications.
 Take corrective actions from your mobile device.
 http://p.sf.net/sfu/Zoho
 ___
 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

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] Using DSpace with https

2014-10-17 Thread Carlos Walter Blandon Alvarez
Hi Hilton.

My question is because I see the next error:

[blocked] The page at 'https://repository.eafit.edu.co/' was loaded over HTTPS, 
but ran insecure content from 
'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js': this content 
should also be loaded over HTTPS.

I think is by Google Analytics but I followed the recommendation of Google 
about this case.


Regards,

[http://www.eafit.edu.co/firmadigital/logo-EAFIT-color-peq-01.jpg]

Walter Blandón

Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cblan...@eafit.edu.comailto:cblan...@eafit.edu.co



Carrera 49  N 7 sur – 50, Medellín - Colombia
Línea de atención al usuario: (57 4) 4489500  
www.eafit.edu.cohttp://www.eafit.edu.co/



De: Hilton Gibson [mailto:hilton.gib...@gmail.com]
Enviado el: jueves, 16 de octubre de 2014 10:36 a.m.
Para: Carlos Walter Blandon Alvarez
CC: dspace-tech@lists.sourceforge.net
Asunto: Re: [Dspace-tech] Using DSpace with https

Hi Carlos

Not as far as I know.
See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Secure_Internet_Connections

Cheers

hg

Hilton Gibson
Ubuntu Linux Systems Administrator
JS Gericke Library
Room 1025C
Stellenbosch University
Private Bag X5036
Stellenbosch
7599
South Africa

Tel: +27 21 808 4100 | Cell: +27 84 646 4758

On 16 October 2014 16:19, Carlos Walter Blandon Alvarez 
cblan...@eafit.edu.comailto:cblan...@eafit.edu.co wrote:
Dear DSpace Team,

We implemented https in DSpace 4.1, xmlui interface.

Is necessary to update dspace.baseUrl variable in dspace.cfg?

Also in oai.cfg, solr-statistics.cfg, discovery.cfg and others configuration 
files?


Regards,

[http://www.eafit.edu.co/firmadigital/logo-EAFIT-color-peq-01.jpg]

Walter Blandón

Profesional-Analista Gestión Tecnológica
Centro Cultural Biblioteca LEV
Teléfono (57 4) 261 9500, extensión 9365
cblan...@eafit.edu.comailto:cblan...@eafit.edu.co



Carrera 49  N 7 sur – 50, Medellín - Colombia
Línea de atención al usuario: (57 4) 4489500  
www.eafit.edu.cohttp://www.eafit.edu.co/




--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.netmailto:DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] Using DSpace with https

2014-10-17 Thread helix84
On Fri, Oct 17, 2014 at 11:15 PM, Carlos Walter Blandon Alvarez
cblan...@eafit.edu.co wrote:

 [blocked] The page at 'https://repository.eafit.edu.co/' was loaded over 
 HTTPS, but ran insecure content from 
 'http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js': this 
 content should also be loaded over HTTPS.


Hi Carlos,

you were right, you do need to update dspace.baseUrl. See

https://github.com/DSpace/DSpace/blob/dspace-4.1/dspace-xmlui/src/main/webapp/themes/Mirage/lib/xsl/core/page-structure.xsl#L671-681


Regards,
~~helix84

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

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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] WIthdrawn items are searched after update-discovery-index

2014-10-17 Thread helix84
On Fri, Oct 17, 2014 at 8:20 AM, Ruben ruben.bo...@csuc.cat wrote:
 After this I ran index-update and all of these items no longer appear in
 'Items in this collection by title' list, but if I searched them, they
 appears. Then I applied update-discovery-index -d to delete all indexes
 and rebuild them, but nothing changes.

There's no -d flag, but you probably meant -b.

 My question is, which option of bin dspace script I should run to drop
 (hide) all withdrawn items from all places of the repository?

Which DSpace version is this?

Try running update-discovery-index -f. It will take a long time,
depending on the size of your repo, but you can run it while DSpace
runs and it should run without interruption of your service.


Regards,
~~helix84

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

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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] OAI Harvesting of Collection Containing Withdrawn Items

2014-10-17 Thread Terry Brady
I am encountering an error in DSpace 3 and DSpace 4 code when I attempt to
harvest a collection containing a withdrawn item.

I have started my investigation, and I am curious to understand the
intention of this query

https://github.com/DSpace/DSpace/blob/dspace-4_x/dspace-oai/src/main/java/org/dspace/xoai/data/DSpaceItemDatabaseRepository.java#L227-L231


Can you explain the purpose of the following test of withdrawn=TRUE?

public ListItemIdentifiersResult getItemIdentifiers(
ListFilter filters, int offset, int length)
{
ListObject parameters = new ArrayListObject();
ListObject countParameters = new ArrayListObject();
String query = SELECT i.* FROM item i ;
String countQuery = SELECT COUNT(*) as count FROM item i;
ListString whereCond = new ArrayListString();
for (Filter filter : filters)
{
if (filter.getFilter() instanceof DSpaceFilter)
{
DSpaceFilter dspaceFilter = (DSpaceFilter)
filter.getFilter();
DatabaseFilterResult result =
dspaceFilter.getWhere(_context);
if (result.hasResult())
{
if (filter.getScope() == FilterScope.MetadataFormat)
whereCond.add((i.withdrawn=TRUE OR (
+ result.getWhere() + )));
else
whereCond.add(( + result.getWhere() + ));
parameters.addAll(result.getParameters());
countParameters.addAll(result.getParameters());
}
}
}


-- 
Terry Brady
Applications Programmer Analyst
Georgetown University Library Information Technology
https://www.library.georgetown.edu/lit/code
425-298-5498
--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho___
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] OAI Harvesting of Collection Containing Withdrawn Items

2014-10-17 Thread helix84
Hi Terry,

I'm just speaking from memory here, not checking the code as I go, so
take it with a grain of salt.

In XOAI, filter is something that narrows down the result set. So you
get all items, then you filter out some. You want to filter out
withdrawn items (item.withdrawn=TRUE), but xoai configuration may
specify additional filters, e.g. filter out items without bitstreams
or filter out items without anonymously accessible bitstreams.

Hope that helps a bit.


Regards,
~~helix84

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

--
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
___
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