Index: copyright.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/copyright/copyright.module,v
retrieving revision 1.2
diff -B -w -U3 -r1.2 copyright.module
--- copyright.module	31 Dec 2004 21:00:05 -0000	1.2
+++ copyright.module	5 Jan 2005 17:39:39 -0000
@@ -288,6 +288,24 @@
   db_query('DELETE FROM {copyright_node} WHERE nid = %d', $nid);
 }
 
+/** 
+ * Create the form
+ */
+function copyright_node_form($node) {
+  $licenses = copyright_get_license_names();
+  $default =  variable_get('copyright_default', 0); 
+  $licenses[$default] .= ' (Site default)';
+  $paths = copyright_get_license_local_paths();
+  foreach ($licenses as $lid => $title) {
+    $group .= form_radio(t($title) . " " . ($paths[$lic]['source_url'] ? l($paths[$lic]['source_url'], t('View licence')) : NULL), 'cpyd', 1, ($node->cpyid == $lid) ? 1 : ($default == $lid ? 1 : 0));
+  }
+  $form = form_group(t('Copyright'), $group);
+  if ($node->type == 'book') {
+    $form .= form_checkbox(t('Show this copyright for children (if different than site default)'), 
+    'copyright_show_children', 1, $node->copyright_show_children);
+  }
+  return $form;
+}
 
 /******************************************************************
  * Copyrights/licenses retrieves
@@ -484,16 +502,8 @@
 function copyright_nodeapi(&$node, $op, $arg = 0) {
   if (in_array($node->type, explode(',', variable_get('copyright_nodetypes', '')))) {
     switch ($op) {
-      case 'form post':
-        $licenses = copyright_get_license_names();
-        $default =  variable_get('copyright_default', 0); 
-        $licenses[$default] .= ' (Site default)';
-        $form = form_select(t('Copyright'), 'cpyid', ($node->cpyid ? $node->cpyid : $default), $licenses);
-        if ($node->type == 'book') {
-          $form .= form_checkbox(t('Show this copyright for children (if different than site default)'), 
-          'copyright_show_children', 1, $node->copyright_show_children);
-        }
-        return $form;
+      case 'form pre':
+        return copyright_node_form($node);
       case 'load':
         $license = copyright_get_node_license($node->nid);
         if ($license->cpyid) {
@@ -506,7 +516,7 @@
         if ($node->cpyid <>  variable_get('copyright_default', -1)) {
           $node->body .= theme('copyright_footer', copyright_notice(copyright_get_license($node->cpyid), $node));
         }
-        else if ($node->type == 'book') {
+        else if ($node->type == 'book') { //this is na incorrect assumption IMO. Any type can be in a book.
           $cpyid = copyright_from_book_parent($node->parent);  // $node->parent set at node load time by book.module
           if ($cpyid <> 0) {
             $node->body .= theme('copyright_footer', copyright_notice(copyright_get_license($cpyid), $node));
