Move Author into separate module

peterx - January 9, 2007 - 07:30
Project:Book Review
Version:4.7.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Separate the author information from Book Review so authors can be described in discrete nodes and those author nodes reused across books.

I developed an Author module to create nodes of type Author and I will make it available to anyone who wants to maintain it as an official Drupal module. I also made changes to Book Review to use Author and can supply those changes. The two are related by a slight change to bookreview_authors to hold an id instead of an author name.

Things still to do:
Change 4.7 to 5.0.
Make author name a link in book review.

#1

rup3rt - January 12, 2007 - 13:30

I did this by adding them Authors as a taxonomy. This was while views was underdeveloped. I am still happy with this - it allows multiples, autocomplete, summaries.

It would be great to see the multiple values fuctionality from Authors available to CCK.

R3

#2

peterx - January 14, 2007 - 02:58

My copy of Bookreview now uses CCK without my Author module. Some Author code went into Bookreview which stops the code being available to other modules. I will move the code back to Author so Author is available to all modules.

The potential performance of CCK is a worry because it will increase overheads to provide more functionality than need for the simple Author requirement. I reported one indexing problem for CCK. CCK is not needed for this one change to separate out the Author information.

Drupal 5.0 provides user defined node types without CCK, which simplifies the Author module. I will switch my site to Drupal 5.0, stop using CCK, and use the separate simplified Author module. The 5.0 version of Bookreview could easily feature a separate Author module because Drupal 5.0 lets modules specify prerequisites.

#3

csc4 - January 21, 2007 - 21:12

This sounds really interesting - is it possible to do something similar for publishers?

#4

peterx - January 22, 2007 - 01:49

I switched my site to Drupal 5.0 and went back to using the Author module without CCK to reduce overheads. 5.0 lets a module define node types which removes the need for CCK in my modules. I enclose author.zip which needs admin.zip and Drupal 5.0 hook_node_info.

AttachmentSize
author.zip 4.18 KB

#5

peterx - January 22, 2007 - 01:50

Here is admin.zip

AttachmentSize
admin.zip 3.09 KB

#6

peterx - January 22, 2007 - 01:52

Here is publisher.zip which is just a slight modification of author.zip. Will work on using Publisher in bookreview in Drupal 5.0.

AttachmentSize
publisher.zip 4.31 KB

#7

csc4 - January 24, 2007 - 01:05

Thanks a lot for these - very handy!

#8

Summit - February 12, 2007 - 19:40

Hi,

Do you also give a link to your 4.7 author module please?
Thanks in advance.

greetings,
Martijn

#9

Benjamin Melançon - March 11, 2007 - 14:22

Tracking this issue... my interest is getting book review to work with the hreview microformat or other accepted semantic markup... separating the author seems a step in that direction, getting a separate author module to use the hcard/vcard markup is probably the easiest part of it.

~ ben :: http://AgaricDesign.com

 
 

Drupal is a registered trademark of Dries Buytaert.