Index: openacs-4/packages/bookshelf/bookshelf.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bookshelf/bookshelf.info,v diff -u -r1.3 -r1.4 --- openacs-4/packages/bookshelf/bookshelf.info 25 Mar 2004 16:03:26 -0000 1.3 +++ openacs-4/packages/bookshelf/bookshelf.info 1 Jun 2004 15:46:34 -0000 1.4 @@ -7,7 +7,7 @@ f f - + oracle postgresql @@ -17,38 +17,12 @@ Store commentary on books with an interface to amazon to retrieve thumbnails and other book data + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Index: openacs-4/packages/bookshelf/tcl/bookshelf-install-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/bookshelf/tcl/bookshelf-install-procs.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/bookshelf/tcl/bookshelf-install-procs.tcl 1 Jun 2004 15:46:34 -0000 1.1 @@ -0,0 +1,39 @@ +ad_library { + Bookshelf install callbacks + + @creation-date 2004-05-20 + + @author Jeff Davis davis@xarg.net + @cvs-id $Id: bookshelf-install-procs.tcl,v 1.1 2004/06/01 15:46:34 jeffd Exp $ +} + +namespace eval bookshelf::install {} + +ad_proc -private bookshelf::install::package_install {} { + package install callback +} { + bookshelf::book::search::register_implementations +} + +ad_proc -private bookshelf::install::package_uninstall {} { + package uninstall callback +} { + bookshelf::book::search::unregister_implementations +} + +ad_proc -private bookshelf::install::package_upgrade { + {-from_version_name:required} + {-to_version_name:required} +} { + Package before-upgrade callback +} { + apm_upgrade_logic \ + -from_version_name $from_version_name \ + -to_version_name $to_version_name \ + -spec { + 0.4d1 0.4d2 { + # just need to install the bookshelf_bookshelf callback + bookshelf::book::search::register_implementations + } + } +}