Drupal and Databasing

Joined: 12/01/2008

Quick question for anyone out there who may have some knowledge:

I have been working on a project for some time cataloging archived material for a university collection. I am now moving to a website stage, where we will be making the catalog available to the public through the web. How could something like be best deployed in Drupal? Anyone have any experiences they would care to share? I will need a "back-end" to enter the records and be able to edit them as a super user. Otherwise, it would be a relatively static site that contained a database of the cataloged records that could be searchable.

Any suggestions are welcome...even other platform besides Drupal...

Cheers,
Cole

Joined: 12/20/2008
I am thinking you will have

I am thinking you will have to create a script that will tell drupal that you have all those records there. For editing them you may have to create a separate module depending on how complex your records are (i.e. text only or attachments,etc).

This might help you out a bit

http://bensangeorge.com/2009/06/drupal-bits-migrat...

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
Database info

Doing something like what you are doing is pretty common. Let me ask you a few questions before I dive in with a recommendation.

Is all this info in a database already? If so, what kind?

Does the existing database setup need to remain the same? Are there any other applications working with it?

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 12/01/2008
Doesn't Exist

The database currently does not exist. However, I would like to use Drupal as a front-end for a database (i.e. I could use it to enter information and modify records). The database need not be complicated. It is a simple database catalog - nothing relational other than categories to which certain documents belong.

Thanks for getting back with me.

Cheers,
Cole

Joined: 12/20/2008
This sounds very simple. In

This sounds very simple. In drupal you can create a new content type to hold your data. If you need any additional fields you can add them using CCK and you can categorize the data by creating a taxonomy type and adding the different categories as taxonomy terms. When you create the taxonomy type you can associate it with the content type you created.

Then you can go into the user permissions settings and make sure that anonymous and logged in users can view the data but not edit,create or delete it.

If you are familiar with drupal the above is not hard to do, but if you are not then just keep updating this thread and we'll help you through it.

Joined: 12/20/2008
Oh, forgot to add this: You

Oh, forgot to add this:

You can create lists of the data (i.e. a list of all the categories and how many items in each category) using the view2 module.

Joined: 12/01/2008
Thank you

This was the approach I was considering. I need to get more familiar with taxonomy. Care to explain it to me in some detail? Or point to me some resources that explain it any way you may recommend?

One final question: can you tell me where the raw data is stored for each node that is created? That would be helpful. I would like to be able to have maximum control over backing up this data and that would be helpful.

Thanks...

Cheers,
Cole

Joined: 12/20/2008
I just installed drupal in a

I just installed drupal in a sandbox so I will try to create you a screencast tonight if I have time.

Joined: 12/01/2008
Thanks

That would be radical. Appreciate the guidance.

Cheers,
Cole

Joined: 12/20/2008
Drupal stores each

Drupal stores each item/webpage as a node. So when you add new content it creates a new node and will create an entry in the node table that lists what kind of node it is (blog, static page, etc), when it was created, when it was last edited, etc but it doesn't include any of the content of the node. Node content (such as the text in the body) is stored in the node_revisions table.

If you want me to make a screencast showing this in phpmyadmin just let me know.

Joined: 12/20/2008
I am uploading the screencast

I am uploading the screencast to blip.tv right now so it should be there soon.

http://samplett.blip.tv/

I hope it makes sense I went through it pretty quick and it still took 8 minutes :)

Joined: 12/20/2008
You can watch the video

You can watch the video here

http://blip.tv/file/2364113

Joined: 12/01/2008
Thanks

Thanks again - I take a look this weekend and give you feedback.

Cheers,
Cole