Goal: One-click capture of interesting items of information from web pages, with a reference back to that page.
Method: Catch information thrown from a bookmarklet, and append that information to an existing ZhurnalyWiki page. See Scrapbook Bookmarklet Version 0.1 for background on what a "bookmarklet" is.
When clicked, this produces a URL that looks like:
Wiki Extension Code: To append information to a page on ZhurnalyWiki, which uses the Oddmuse wiki engine, the following Perl script is an Oddmuse extension module. It puts the reference page URL (from which the highlighted scrap comes) into double-square-brackets, so there's no problem with a trailing "." in a URL. (The Oddmuse parser apparently does what's usually the right thing and doesn't include a period at the end of a URL in the link, since generally it's the end of a sentence.) The code changes newlines into double-newlines so that the copy/paste scrap looks more reasonable in the wiki.
Next Step: Consider how to allow the user to create a new ZhurnalyWiki page out of a highlighted selection, perhaps by creating a dialog box to put that new page name into (instead of defaulting to the same SandBox (or whatever) page every time).
Acknowledgements: Many thanks to Alex Schroeder and comrades on http://oddmuse.org for writing the Oddmuse wiki engine and sharing their enthusiastic expertise in extending it.
(cf. Scrapbook Bookmarklet Version 0.1, http://www.oddmuse.org/cgi-bin/oddmuse/Comments_on_Clipping_Bookmarklet, ...) - ^z - 2012-01-11