logoKiva's Export - on steroids


History

The first step to use Kiva's Export was to use offline programmes such as Microsoft Excel and OpenOffice.org Calc - Analysis Spreadsheets for both can be found here - to better analyse your portfolio of loans.

The next logical step was to find an online solution where the data in Kiva's Export could be displayed on an interactive sortable, filterable web page.  My first thought was just to replicate the functions within the Analysis Spreadsheets, but using Exhibit 2.0 ajax / javascript from MIT it was going to be much more useful as a way to publicly display a collection of Kiva loans.

Description

As before, all you have to do is cut and paste the data from Kiva's export into your specially published Google Docs Spreadsheet (this is mine), and have a special page on your website to display the data (this is a basic example).  Here is the Kiva Shopping Club version.
There are a few steps that are needed to setup this system, but once completed any updates of export data can easily be cut and pasted into the Google Docs Spreadsheet - and change are reflected on the web page almost instantly.
If you have any suggestions for modifications or additions please let me know via Kivafriends.org and I will try an incorporate them.

Requirements

You will need the following:

Setup stage 1 (with test data)

  1. Goto Google Docs and create a new spreadsheet by uploading the specially prepared OpenOffice.org Calc Spreadsheet - by either:
  2. Next we need to publish the Details sheet using the Publish tab in the top right corner and selecting 'Publish now'
  3. I suggest you then select the 'Automatically re-publish when changes are made' checkbox - and select 'Sheet "Details" only' from the dropdown
  4. Select the 'More publishing options' link at the section so we can generate the feed url needed:
  5. Download this zip file, and extract the 2 html files (loanlist.html and __history__.html)
  6. Open loanlist.html in your favourite html editor and insert the following over the test data settings:
  7. __history__.html does not need any attention (it is used by the ajax scripts to ensure the browser back and next fuctions work)
  8. Upload the 2 html files to your server and view loanlist.html in your favourite browser - you should hopefully see a working page with some of my loans

Setup stage 2 (with your data)

  1. Open a copy of your data using Kiva's export button: http://www.kiva.org/app.php?page=account&action=loans&export_excel=1 (will open in your web browser and ask you to log in to Kiva.org if you are not already)
  2. Copy the entire 'My loans' sheet and paste over the data in the 'My loans' tab within your Google Docs Spreadsheet
  3. Ensure that the 'Details' tab matches the number of rows within the 'My loans' tab:
  4. Edit the formula is cell C2 so that it points to a directory of your images eg:
    =CONCATENATE("http://path_to_your_image_directory", B2, ".jpg")
    copy the formula down the column.
    If you don't want to have images delete column C
  5. If you want to have a map of your loans enter the latitude and longitude values in column Q {latlng}
    they must be in the format 'latitude,longitude' with no spaces eg 25.502785,-99.470215
    otherwise delete column Q
  6. If you are using images and want a map you have finished, refresh and review your loanlist.html web page - you should see your loans.

Setup stage 3 (customising listloans.html)

  1. If you have deleted column C or Q, or wish to change how the page looks you need to open up listloans.html and tinker around
  2. To remove the images eradicate all references to: <img ex:src-content=".imageURL"/>
    and delete the section marked: <!--thumbnails--> (as this will be pretty much useless to you without images)
  3. To remove the map delete the section marked: <!--map-->
The layout and format of loanlist.html is entirely changeable and can be easily modified.  Check out the full references into how Exhibit 2.0 works on its website.

Setup too much?

  1. Contact me via my Kivafriends.org profile and I can try to assist you.

Credits

Copyright 2007- Christopher Weddell
This work is licenced under a Creative Commons Licence
You are free:
Under the following conditions:
For any reuse or distribution, you must make clear to others the licence terms of this work.
Any of these conditions can be waived if you get permission from the copyright holder.
Nothing in this license impairs or restricts the author's moral rights.
http://creativecommons.org/licenses/by-nc-sa/2.0/uk/