re: 05/23/02
The resource library will have many different types of items in it including
books, videos, computer software, magazines, etc.
In order to store all these different types of items, the
database was designed to be as flexible as possible.
The items will be stored in a series of
eight database tables as depicted below.
A summary of the table definitions depicted in the ER diagram above, is listed below. The complete definition of these tables can be found on the Max Mart, Inc. project web site and will be included in the final RS documentation.
There are three groupings of tables. The RS_MEDIA_TYPE, RS_CATEGORY, and RS_ISSUE_CATEGORY are used to describe a resource center object. The RS_COMMENT and RS_CONTENT tables add information about a resource center object. The RS_ITEM, RS_ISSUE, and RS_COPY tables make up a resource center object.
Description: Holds the categories resources are grouped by in the book. This table is recursive because it holds sub-categories. The category id is a number that is generated by the system. The user will usually not ever see this number. The UTITLE column is the Upper Case of the TITLE column. This allows searching on the category easier. Also, automatic ordering in alphabetical order is possible.
Columns:
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
ID |
NUMBER |
6 |
Generated ID for the category. |
|
|
PARENT_ID |
NUMBER |
6 |
Indicates a sub category of the parent category. |
|
|
UTITLE |
VARCHAR2 |
50 |
NOT NULL |
Upper case of title |
|
TITLE |
VARCHAR2 |
50 |
NOT NULL |
Category's title. |
Description:
Intersecting table between Category and issue. Category the Issue belongs
to. An ISSUE can be in many CATEGORIES but in a category only one time.
The part of a resource item that is tied to the category structure
is the ISSUE. The user will never
see these values directly.
Columns :
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
RS_CATEGORY_ID |
NUMBER |
6 |
NOT NULL |
The category the item is indexed under. |
|
RS_ISSUE_ID |
VARCHAR2 |
10 |
NOT NULL |
The item under this category. |
Description:
Holds the type of media, such as vhs, books, slide, lesson plan, report
of the ITEM.The user will determine
the ID value of the column.
The ID will always be stored in Upper Case.
The UNITS column holds a description of the units that will
be used to enter CONTENT records about the ISSUE.
Columns :
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
ID |
VARCHAR2 |
15 |
Abbreviation of media type. |
|
|
UNITS |
VARCHAR2 |
10 |
NOT NULL |
The units of measure for the length of item. I.e. minutes, pages |
Description:
Holds the items available in the resource center.
An ITEM is a classification of possible many physical copies
available for check out.An
ITEM is the main classification level, followed by an ISSUE, and finally
by a COPY.
Columns :
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
ID |
NUMBER |
10 |
Generated ID from a sequence. |
|
|
RS_MEDIA_TYPE_ID |
VARCHAR2 |
15 |
NOT NULL |
media type of the item |
|
TITLE |
VARCHAR2 |
50 |
NOT NULL |
Title of the item. |
|
DESCRIPTION |
VARCHAR2 |
2000 |
NOT NULL |
|
|
AUTHOR |
VARCHAR2 |
50 |
Author of item. |
Description:
Holds the ISSUE (Volume) information about a particular ISSUE of an ITEM.
The ISSUE.ID must be unique to distinguish between issues. This
table is for items that are published annually, monthly, etc.
If an ITEM is a book that has only one ISSUE, it must still have
a record in the ISSUE table.
Columns :
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
ID |
VARCHAR2 |
10 |
NOT NULL |
GENERATED ID for each issue. |
| V_NUMBER |
VARCHAR2 |
10 |
NOT NULL |
User Provided STOCK number for each ISSUE |
|
RS_ITEM_ID |
NUMBER |
10 |
NOT NULL |
The parent ITEMof this issue. |
|
TITLE |
VARCHAR2 |
50 |
NOT NULL |
This will be used to uniquely distinguish this ISSUE from other ISSUEs in of this item type. |
|
DESCRIPTION |
VARCHAR2 |
2000 |
The description of this particular issue of this item. |
|
|
VOLUME |
VARCHAR2 |
30 |
NOT NULL |
Volume information for this issue of an item. May be a month/year or a number.... Anything that the user wants. |
|
PUBLISHED |
DATE |
. |
Date issue was published. |
Description:
This is the physical item loaned out.
The COPY is what is stored on the shelf in the resource library.
It will (may) have a BARCODE on it.
The BARCODE value is required for the item.
BARCODES can never be duplicated.
An ISSUE may have many COPIES.
Columns :
|
NAME |
TYPE |
WIDTH |
PREC |
NULL |
DESCRIPTION |
|
ID |
NUMBER |
10 |
. |
|
generated id |
|
RS_ISSUE_ID |
VARCHAR2 |
10 |
. |
NOT NULL |
ISSUE of this copy. |
|
PURCHASED |
DATE |
. |
. |
NOT NULL |
Date this copy was purchased. |
|
PRICE |
NUMBER |
6 |
2 |
NOT NULL |
Purchase price of copy. |
|
STATUS |
VARCHAR2 |
7 |
. |
NOT NULL |
Status of copy. Only GOOD can be used in reservation / checkout / catalog report |
|
REORDER_INFO |
VARCHAR2 |
2000 |
. |
Information on reordering this copy. Where it came from, how to get it, etc. |
|
|
BARCODE |
VARCHAR2 |
10 |
. |
NOT NULL |
Used when checking out/in items. |
Description:
Holds the content of this issue of an item. An issue can have multiple
segments for example, a vhs tape that has 10 minutes on one topic and
35 on another. The DURATION is in the units that are specified for the
RS_MEDIA_TYPE.UNITS column.An
ISSUE can have as many CONTENT records as MFS would like.
Each CONTENT record is for exactly one ISSUE.
Columns :
|
NAME |
TYPE |
WIDTH |
PREC |
NULL |
DESCRIPTION |
|
ID |
NUMBER |
10 |
. |
Generated ID. |
|
|
RS_ISSUE_ID |
VARCHAR2 |
10 |
. |
NOT NULL |
Links to the issue with this content. |
|
TITLE |
VARCHAR2 |
50 |
. |
NOT NULL |
Title of this content section |
|
DESCRIPTION |
VARCHAR2 |
2000 |
. |
NOT NULL |
Describes the content in this section. |
|
DURATION |
NUMBER |
6 |
2 |
The length of the segment that has this content. |
|
|
LIST_ORDER |
NUMBER |
3 |
. |
The order to list the content records
when displayed. A NULL value means that order doesn't matter. All NULL
valued entries will come at the end of the list. |
Description:
Contains users comments.A user
can have one comment on each issue for each day.
Columns :
|
NAME |
TYPE |
WIDTH |
NULL |
DESCRIPTION |
|
PS_PERSON_ID |
NUMBER |
10 |
NOT NULL |
Person that made the comment. |
|
RS_ISSUE_ID |
VARCHAR2 |
10 |
NOT NULL |
The issue this comment is for. |
|
DAY |
DATE |
. |
NOT NULL |
Date the comment was entered. |
|
NOTE |
VARCHAR2 |
4000 |
NOT NULL |
The comment the user made on this issue. |
To store a book in the database, MFS will need to create an ITEM record. The ITEM has a title and a description. Once the ITEM is entered, you will need to create an ISSUE record for the book. This also has a title and a description. You will then create a COPY record for the book. The COPY record has the book’s ID and BARCODE. If desired, you could enter CONTENT records for this book indicating the chapter titles and descriptions of what the chapter covered. Below is a block diagram of what would be entered into the database to store this book. The book has a two copies and two content records. One copy is GOOD, which allows it to be reserved and checked out. The other is marked as lost so it is not available.
| ITEM: Title: Pump Maintenance Desc: The maintenance of typical pumps installed on fire trucks is covered in this text. |
|||
|
ISSUE: ID: B2918 Title: Pump Maintenance Desc: (left blank) Volume: ONE |
|||
|
COPY: |
|||
| Barcode: 321321 Purchased: 12-OCT-1978 Price: 34 Status: GOOD |
|||
| Barcode: 432432 Purchased: 15-NOV-1978 Price: 34 Status: LOST |
|||
|
CONTENT: |
|||
| Title: Chapter 1 Duration: 35
pages Desc: This chapter describes the basics of all positive displacement pumps. |
|||
| Title: Chapter 2 Duration: 29 pages Desc: This chapter describes the common failures found in positive displacement pumps. |
|||
To store a video library consisting of multiple issues (one for each
month) and multiple copies (2 tapes each), you will have to start with
an ITEM record.The ITEM record
will hold the title and description of the entire VHS library series.
You will then make a record in the ISSUE table for each month’s
release of the video. Finally,
you need to make COPY records for each physical VHS tape that you have
for that month. In order to
distinguish the different ISSUES, you may want to enter CONTENT records
for each one. These would describe
the topics covered that month.
Below is a block diagram of what this may look like when entered into
the Resource Library database.
|
ITEM: Desc: This monthly VHS series documents wildfires
that have been fought. It
includes causes, tactics used, and lessons learned. |
|||
|
ISSUE : ID: V1034 Title:Grass Range Fire Volume: July 2001 Desc:The Grass Range fire of 1998 is documented. |
|||
|
COPY: |
|||
|
Barcode: 8788
Purchased : 10-JUL-2001 |
|||
|
Barcode: 8787
Purchased : 10-JUL-2001 |
|||
|
CONTENT: |
|||
|
Title: Causes
Duration : 12 minutes |
|||
|
Title: Lessons Learned
Duration : 30 minutes |
|||
|
ISSUE: ID: V1036 |
|||
|
COPY: |
|||
|
Barcode: 3569
Purchased : 10-AUG-2001 |
|||
|
Barcode: 3570
Purchased : 10-AUG-2001 |
|||
|
CONTENT: |
|||
|
Title: Causes
Duration : 35 minutes |
|||
|
Title: Lessons Learned Duration : 30 minutes Desc: Mistakes made during fighting of this fire are discussed. |
|||
When the above items are listed in the resource library catalog, they will have an entry for each ISSUE. The ITEM information will be listed with the ISSUE. This will work nicely for the VHS library example above as each ISSUE will be listed with the title of Wildfire VHS Library and the description, along with each ISSUE’s title and description. The BOOK, however, may have its title and description listed twice.
For example, the Wildfire VHS library will have two entries, one for each ISSUE:
| Item: | Wildfire VHS Library | This monthly VHS series documents wildfires that have been fought. It includes causes, tactics used, and lessons learned. | |
| Issue: | Grass Range Fire | Volume: July 2001 | The Grass Range fire of 1998 is documented. |
| Contents: | Causes | 15 minutes. | The causes discovered for this fire are discussed. |
| Lessons Learned | 30 minutes. | Mistakes made during fighting of this fire are discussed. | |
|
Item: |
Wildfire VHS Library |
This monthly VHS series documents wildfires that have been fought. It includes causes, tactics used, and lessons learned. | |
| Issue: | Wild Horse Creek Fire | Volume: August 2001 | The Wild Horse Creek fire of 1968 is remembered. |
| Contents: |
Causes |
35 minutes | The causes discovered for this fire are discussed along with the circumstances that led to its massive destruction |
| Lessons Learned |
30 minutes. |
Mistakes made during fighting of this fire are discussed. | |
The BOOK entry on the other hand would look like:
| Item: | Pump Maintenance | The maintenance of typical pumps installed on fire trucks is covered in this text. | |
| Issue: | Pump Maintenance | Volume: ONE | |
| Contents: | Chapter 1 | 35 pages | This chapter describes the basics of all positive displacement pumps. |
| Chapter 2 | 29 pages. | This chapter describes the common failures found in the positive displacement pumps. | |