On Wed, Sep 18, 2013 at 10:46 AM, Joachim Bingel <bin...@ids-mannheim.de> wrote:
> I'm looking to implement a function to obtain the list of an author's
> publications in XML, given the author's name. The OAI webapp can output
> the whole set of publications to one big XML, and I could parse that by
> author name, but it seems like this is some overhead and also that only
> chunks of 100 items can be returned at a time.

Hi Joachim,

OAI-PMH is not meant for searching, but for batch-harvesting.

Solr is great for this use-case. It's fast and it will do author
searches (?q=author:"Bingel, Joachim")

You can find out most of what you need here [1].

> I've been thinking of a PHP script to query the DB given the author's
> name as an URL variable, but the [dspace]/webapps/xmlui/static directory
> can only seem to handle HTML, not PHP. The former works fine, the latter
> gives me a 404.
>
> Any ideas why a PHP script cannot be found? Any other suggestions to
> reach my goal are also welcome. :)

Feel free to use PHP, but do not use the direct database access - it
will be slower than Solr. You can use e.g. SimpleXML to process the
Solr XML response. Solr also has a native response format for PHP
(&wt=php).

Assuming you have an Apache HTTPD configured in front of Apache Tomcat
(which doesn't care abot PHP) via AJP [1] and you have mod_php or PHP
via fcgi, configure a handler for PHP files in a separate directory.
Then use a ProxyPass directive for that directory to tell HTTPD to
bypass the AJP connector and call the PHP handler instead. If you have
a different setup than AJP, let me know, but it will be similar.

[1] https://wiki.duraspace.org/display/DSPACE/Solr
[2] https://wiki.duraspace.org/display/DSPACE/DspaceOnStandardPorts


Regards,
~~helix84

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

------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&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

Reply via email to