Closed (fixed)
Project:
Millennium OPAC Integration
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
31 Oct 2009 at 00:01 UTC
Updated:
9 Mar 2010 at 16:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tituomin commentedThis would be a good feature. Also, importing the items from an RSS (a simple regexp would be able to extract bib-ids from an RSS feed or any other web source for that matter).
I'm not sure how well Millennium supports crawling from a search, though. At least the record ids are not visible in the search results.. Maybe using the cart somehow could enable this..
Comment #2
janusman commentedOn first look, search seems simple enough, too. The "Add to cart" button or checkbox contains the required bib number, so again, it's just a matter of a regexp. Finding the "Next page" link also seems [relatively] straightforward. =)
Extra points: I'd love a bookmarklet to say, "import all items on the current page", or maybe "Import my current bookcart's contents" =)
Comment #3
janusman commentedA first patch to kick things off. Rough, a bit slow, but works in my testing =)
Comment #4
janusman commentedCommitted following patch.
TODO: import from just any given URL (which could include an FTList)
Comment #5
janusman commentedThis still has some issues with non-UTF characters messing up during import:
For instance if this record is in the import results:
http://sabio.library.arizona.edu/search~S9/?searchtype=X&searcharg=educa...
which is titled
Jovens lideranças comunitárias e direitos humanos.this message appears in watchdog; note lideranças is cut off...
Comment #6
janusman commentedFixed this by centralizing all requests to a new function millennium_http_request() which is a proxy for drupal_http_request(); the new function converts to UTF-8 depending on the response's charset.
TODO: Add UI to allow admins to import from an arbitrary URL.
Comment #7
janusman commentedCommitted this patch.
This is a screenshot for the UI.

Comment #8
janusman commented