From: Steve F. <sfi...@pc...> - 2005-06-06 20:11:24
|
ok, now i think i've cracked it. and its simple simple simple. any plugin that uses a dinky CV takes a mapping file from the input to the GUS CV. the case where the input is identical to the GUS CV is not given special handling. i will write a method in Plugin.pm: checkControlledVocab($cvMappingFile, $table, $column); it throws an exception (dies) unless every entry in the GUS column of the file is found in the db. the message will include every entry not found. then the user of the plugin has to update the table with the cv, or change the mapping file. as far as consistency across applications within a site: the user of the plugin will dump the table to see the allowed values. that will serve as the authoritative version from which to make the mapping file. steve |