Re: [Dspace-tech] OAI-PMH - item visible through XMLUI not visible through OAI
Thank you all so much! Since all of these messages are available online I just wanted to correct helix84's answer (I guess it was just a lapsus calami). There is no: [dspace]/bin/dspace solr command. But, as Hilton and Claudia pointed out, you should run: [dspace]/bin/dspace oai which gives you a nice listing of available actions and parameters. This is what I've done and what the result looks like: [root@server bin]# ./dspace oai import -o -v OAI 2.0 manager action started There are no indexed documents, using full import. Full import Item with handle 123456789/3 indexed Total: 1 items Optimizing Index Index optimized Purging cached OAI responses. OAI 2.0 manager action ended. It took 2 seconds. It took 2 seconds. :-) Thanks again. Kind regards, Vladimir -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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-PMH - item visible through XMLUI not visible through OAI
Dear everyone, I'm trying to better understand the OAI-PMH aspects of DSpace. I've setup two instances of DSpace, OAI-PMH server (this is where I deposit files) and OAI-PMH client (harvester). On the server I've deposited an item (with all the metadata), in a single collection in a single community. It's the only item/file available in that DSpace and it's visible and downloadable for everyone. When I access the server's OAI-PMH url in a web browser: http://localhost:8080/oai-server/request?verb=Identify http://localhost:8080/oai-server/request?verb=ListMetadataFormats it works fine, but when I list all the identifiers or records: http://localhost:8080/oai-server/request?verb=ListIdentifiersmetadataPrefix=oai_dc http://localhost:8080/oai-server/request?verb=ListRecordsmetadataPrefix=oai_dc it returns No matches for the query. Should it automatically return my only item? I've already performed: dspace index-discovery -b Am I missing a step like enabling harvesting for community/collection/item? Thanks! Kind regards, Vladimir Tomić Software Architect RCUB Belgrade University Computer Center Kumanovska 7, 126119 Belgrade Serbia Phone: +381 11 3031258 Fax: +381 11 3031259 Email: vladimir.to...@rcub.bg.ac.rs Web: http://www.rcub.bg.ac.rs -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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-PMH - item visible through XMLUI not visible through OAI
Hi Vladimir, if you're using DSpace 3 or 4 with the default OAI backend (Solr), you have to run [dspace]/bin/dspace solr import to populate/update the OAI index. It's best to put this command into cron and run it e.g. nightly. Regards, ~~helix84 Compulsory reading: DSpace Mailing List Etiquette https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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-PMH - item visible through XMLUI not visible through OAI
Hi Vladimir Did you initialise the database? See: http://wiki.lib.sun.ac.za/index.php/SUNScholar/Harvesting/4.X#Initialise_OAI_database Cheers hg *Hilton Gibson* Ubuntu Linux Systems Administrator JS Gericke Library Room 1025D Stellenbosch University Private Bag X5036 Stellenbosch 7599 South Africa Tel: +27 21 808 4100 | Cell: +27 84 646 4758 http://scholar.sun.ac.za http://bit.ly/goodir http://library.sun.ac.za http://za.linkedin.com/in/hiltongibson On 21 August 2014 15:33, Vladimir Tomić vladimir.to...@rcub.bg.ac.rs wrote: Dear everyone, I'm trying to better understand the OAI-PMH aspects of DSpace. I've setup two instances of DSpace, OAI-PMH server (this is where I deposit files) and OAI-PMH client (harvester). On the server I've deposited an item (with all the metadata), in a single collection in a single community. It's the only item/file available in that DSpace and it's visible and downloadable for everyone. When I access the server's OAI-PMH url in a web browser: http://localhost:8080/oai-server/request?verb=Identify http://localhost:8080/oai-server/request?verb=ListMetadataFormats it works fine, but when I list all the identifiers or records: http://localhost:8080/oai-server/request?verb=ListIdentifiersmetadataPrefix=oai_dc http://localhost:8080/oai-server/request?verb=ListRecordsmetadataPrefix=oai_dc it returns No matches for the query. Should it automatically return my only item? I've already performed: dspace index-discovery -b Am I missing a step like enabling harvesting for community/collection/item? Thanks! Kind regards, Vladimir Tomić Software Architect RCUB Belgrade University Computer Center Kumanovska 7, 126119 Belgrade Serbia Phone: +381 11 3031258 Fax: +381 11 3031259 Email: vladimir.to...@rcub.bg.ac.rs Web: http://www.rcub.bg.ac.rs -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ 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-PMH - item visible through XMLUI not visible through OAI
Hello Vladimir, you got to populate your oai index with data via the comman line [dspace]/bin/dspace oai import This will index all newly added items but not update existing items which have been changed. In order to create a complete new index run: [dspace]/bin/dspace oai import -c Furthermore [dspace]/bin/dspace oai clean-cache will remove the cached responses in [dspace]/var/oai/requests You can set this up as a cron job. Hope this helps Claudia Jürgen Am 21.08.2014 um 15:33 schrieb Vladimir Tomić: Dear everyone, I'm trying to better understand the OAI-PMH aspects of DSpace. I've setup two instances of DSpace, OAI-PMH server (this is where I deposit files) and OAI-PMH client (harvester). On the server I've deposited an item (with all the metadata), in a single collection in a single community. It's the only item/file available in that DSpace and it's visible and downloadable for everyone. When I access the server's OAI-PMH url in a web browser: http://localhost:8080/oai-server/request?verb=Identify http://localhost:8080/oai-server/request?verb=ListMetadataFormats it works fine, but when I list all the identifiers or records: http://localhost:8080/oai-server/request?verb=ListIdentifiersmetadataPrefix=oai_dc http://localhost:8080/oai-server/request?verb=ListRecordsmetadataPrefix=oai_dc it returns No matches for the query. Should it automatically return my only item? I've already performed: dspace index-discovery -b Am I missing a step like enabling harvesting for community/collection/item? Thanks! Kind regards, Vladimir Tomić Software Architect RCUB Belgrade University Computer Center Kumanovska 7, 126119 Belgrade Serbia Phone: +381 11 3031258 Fax: +381 11 3031259 Email: vladimir.to...@rcub.bg.ac.rs Web: http://www.rcub.bg.ac.rs -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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 -- Claudia Juergen Eldorado Technische Universität Dortmund Universitätsbibliothek Vogelpothsweg 76 44227 Dortmund Tel.: +49 231-755 40 43 Fax: +49 231-755 40 32 claudia.juer...@ub.tu-dortmund.de www.ub.tu-dortmund.de Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und vernichten Sie diese Mail. Vielen Dank. Unbeschadet der Korrespondenz per E-Mail sind unsere Erklärungen ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform (mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen Schriftstücks per Telefax erfolgen. Important note: The information included in this e-mail is confidential. It is solely intended for the recipient. If you are not the intended recipient of this e-mail please contact the sender and delete this message. Thank you. Without prejudice of e-mail correspondence our statements are only legally binding when they are made in the conventional written form (with personal signature) or when such documents are sent by fax. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ 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