Difference between revisions of "Hack Fest 2010"

From Jon's Wiki
Line 13: Line 13:
 
== Moodle Project ==
 
== Moodle Project ==
 
;PLAN: To get Moodle working with Koha.
 
;PLAN: To get Moodle working with Koha.
;First Step: Let's start with a simple Moodle search block which can query a Koha library system and display records of Koha books.
+
;First Step: Let's start by extending the Moodle [http://cvs.moodle.org/contrib/plugins/blocks/extsearch/ External Search block] to query a Koha library system and display the returned records of Koha books.
  
 
=== Koha Search ===
 
=== Koha Search ===
# Here's a Koha already set up we can use - http://opac.koha.workbuffer.org:9998/
+
# Here's a Koha already set up we can use - no Koha set up required (phew!):
# Koha uses an open standard from the US [http://loc.gov Library of Congress] called [http://www.loc.gov/standards/sru/ SRU] - Search/Retrieval by URL.
+
#* http://opac.koha.workbuffer.org:9998/
# Using the [http://www.loc.gov/z3950/agency/ Z39.50] [http://explain.z3950.org/ Explain] protocol, we can "self-discover" the Koha catalog search interface, by parsing the XML returned from
+
# Koha uses an open standard from the [http://loc.gov Library of Congress] called [http://www.loc.gov/standards/sru/ SRU] - Search/Retrieval by URL.
#* http://opac.koha.workbuffer.org:9998/?version=1.1&operation=explain
+
# Using the [http://www.loc.gov/z3950/agency/ Z39.50] [http://explain.z3950.org/ Explain] protocol, we can "self-discover" the Koha catalog search interface:
# using the <database> element, we can construct a search URL:
+
#* [http://opac.koha.workbuffer.org:9998/?version=1.1&operation=explain http://opac.koha.workbuffer.org:9998/?version=1.1&'''operation=explain''']
#* http://opac.koha.workbuffer.org:9998/biblios?version=1.1&operation=searchRetrieve&query=fish
+
# by parsing the XML response, we can use the <database> element (in this case, ''"biblios"'') to construct a search URL:
 +
#* [http://opac.koha.workbuffer.org:9998/biblios?version=1.1&operation=searchRetrieve&query=fish http://opac.koha.workbuffer.org:9998/'''biblios'''?version=1.1&'''operation=searchRetrieve&query=fish''']
 
#which will return the number of results:
 
#which will return the number of results:
 
#* <zs:numberOfRecords>178</zs:numberOfRecords>
 
#* <zs:numberOfRecords>178</zs:numberOfRecords>
 
# Then we can grab (e.g.) records 5 and 6, in Dublin Core, like this:
 
# Then we can grab (e.g.) records 5 and 6, in Dublin Core, like this:
#* http://opac.koha.workbuffer.org:9998/biblios?version=1.1&operation=searchRetrieve&query=fish&startRecord=5&maximumRecords=2&recordSchema=dc
+
#* [http://opac.koha.workbuffer.org:9998/biblios?version=1.1&operation=searchRetrieve&query=fish&startRecord=5&maximumRecords=2&recordSchema=dc http://opac.koha.workbuffer.org:9998/biblios?version=1.1&operation=searchRetrieve&query=fish'''&startRecord=5&maximumRecords=2&recordSchema=dc''']
  
 
=== Useful Links ===
 
=== Useful Links ===

Revision as of 05:31, 23 July 2010

PHP Hackfest Cheat Sheet

Mahara Project

PLAN
To integrate Identi.ca, the open-source "host-your-own" Twitter, into Mahara, an open source e-portfolio system.

Useful Links

Moodle Project

PLAN
To get Moodle working with Koha.
First Step
Let's start by extending the Moodle External Search block to query a Koha library system and display the returned records of Koha books.

Koha Search

  1. Here's a Koha already set up we can use - no Koha set up required (phew!):
  2. Koha uses an open standard from the Library of Congress called SRU - Search/Retrieval by URL.
  3. Using the Z39.50 Explain protocol, we can "self-discover" the Koha catalog search interface:
  4. by parsing the XML response, we can use the <database> element (in this case, "biblios") to construct a search URL:
  5. which will return the number of results:
    • <zs:numberOfRecords>178</zs:numberOfRecords>
  6. Then we can grab (e.g.) records 5 and 6, in Dublin Core, like this:

Useful Links