SCDB - Simple Comics Database - Starting and Using
Basic Program ConstructionAll files used by SCDB are contained in the scdb directory. There are three types of files. *.xul are the static XUL files that provide the GUI. *.js files are contain the Javascript that do all the dynamic actions required (filling forms, etc). *.txt are text files containing the information needed to build lists within forms.
Starting
For Firefox 3.x Users
Since SCDB is written in XUL, it requires XULRunner to work. Firefox 3.0 and later contain a built-in XULRunner package
that allows you to run XUL-based applications without downloading the seperate XULRunner package.
You start SCDB much like you would your browser, except you add -app switch to the command line. Using the -app switch assumes permission is granted to run SCDB scripts and runs it as a standalone application without the normal browser controls (back button, location bar, etc).
To start SCDB you would execute this command on the command line (or use as the target in a
desktop shortcut of some sort):
firefox -app <path to install dir>/application.ini
So if I installed SCDB in /opt/scdb I would start it like this:
firefox -app /opt/scdb/application.ini
For Users of Firefox 1.x/2.x and Seamonkey
Unlike Firefox 3.x, older versions of Firefox and all Seamonkey versions do not have the built-in XULRunner package.
You will need to install the seperate package to run SCDB. XULRunner is available as source at
on the Mozilla Developer Center site. However, all
distros should have pre-built packages in their repositories.
Once XULRunner is installed, you can run SCDB by doing the following from the command line:
- Change to the directory where SCDB is installed (default is /opt/scdb).
- Enter xulrunner application.ini and press Enter
First Use
Upon starting SCDB for the first time, you will be presented with the main window. If you installed SCDB via
installation script, you should not need to set any of the preferences. However, if you managed to install SCDB
manually, these preferences will need to be set before you can use it.
Setting Configuration Preferences
To access the Configuration form in Preferences, click on Other --> Prefs --> Configuration.
In the Preferences form, you will see four fields:
- Data Directory - The location of the file that will contain the inventory data. Default is /home/
/Documents/SCDB-Data - Data File - The name of the file that will contain the inventory data. Default is comix.txt
- Install Directory - The location that SCDB was installed. The default is /home/
/bin/scdb - Backup Directory - The location where backup copies of the data file will be kept. The default is /home/
/Documents/SCDB-Data/backups - Max Inv Size - The maximum number of comics allowed in the inventory. Inventory numbers are generated by SCDB based on a comparison between the numbers used and the numbers not used. This setting sets the ceiling for the comparison; ie - SCDB will calculate all of the unused numbers between 1 and the number entered here. Because of this, setting this number too high can cause a slow down in the response times of certain dialogs in SCDB. This number should be set to something that will give you a good balance between current and future comics inventory size and something that will allow for reasonable dialog response times.
- Sort List By - Display the inventory sorted by Publisher, Title, Series, Type or Grade.
- Sort Order - Display the list in ascending or descending order.
Once this information has been updated, click on Save. This will save the data in a configuration file called .scdb.config in your home directory.
Once saved, you will be returned to the main listing screen. Click on one of the publishers buttons to reload the preferences. SCDB is now ready for use.
Adding to the Inventory
There are two ways to add to the inventory: one entry at a time or a series of sequential entries (for example,
Atari Force issues 1 through 10).
Adding a Single Entry
There are two ways to add a single entry to the inventory: using the Add toolbar menu option or using the Add Next
popup menu option in the listing.
Using Add Single
Using Add Next
Note: You can also double-click on the entry in the inventory to open it in the data form.
Deleting Multiple Entries
Filtering By Publisher
By selecting a publisher from the Show Publisher menu, you will see only the entries in the data file for that publisher. Clicking on All returns to the full listing.
This function filters the inventory using one or more of the following fields: Type, Reprint, CGC Graded.
1. Click on All to filter all entries in the data file or select a publisher from the Show Publisher menu to filter only those entries by that publisher.
This function provides a method of searching the database by one or more keywords. Whatever is typed in
the search field is what will be searched for. The search is case insensitive, so searching for marvel will return
inventory entries containing Marvel and marvel.
Importing from a File
SCDB can import comma seperated value (CSV) data. However, this requires the data to be in a certain format in
the CSV file. Specifically, the first line of the file must contain something other than data and cannot be a
blank line.
The data on the following lines must be in the following format.
Note that there is nothing entered into the Inv Number position in the example. This position should always remain
blank when importing as SCDB will assign inventory numbers during the import process.
Once the data file has been formatted, you can import it into SCDB by following these steps:
SCDB can export to CSV or simple HTML files.
This function adds a single issue to the inventory using the menu on the toolbar. This allows for
complete data entry using the Data Entry Form.
NOTE: If an entry already exists in the inventory that matches the new one, a message will appear stating so. You
will be given the option of adding the entry as a second copy or not adding it at all.
This function adds the next single issue in a series based on what is selected from the inventory listing.
This function is located in the popup menu when you right-click on an entry in the list. It allows for quick data
entry by copying the Publisher, Title, Series, Issue and Type data from the selected entry then incrementing the
issue number by one.
Adding Sequential Entries
Deleting an Inventory Entry
Deleting a Single Entry
Printing the Inventory or an Inventory Entry
Printing a Single Entry
Filter the Inventory
There are three ways to filter the inventory: by publisher, by category or by simple keyword search.
Filtering By Category
2. Click on the List button and select Filter from the menu. This will open the filter form.
3. Select the fields you want to use as a filter. Hover over each field to see notes on what can/should be entered. You must select at least one field to use as a filter. You may select more than one. For instance, if you want to see all Marvel comics in the inventory select Marvel from the Publisher drop-down menu. If you want to see all Marvel comics that are mini-series, select Marvel from the Publisher drop-down menu and Mini-Series from the Type drop-down menu.
4. Click on the Filter button to filter the inventory. You will be returned to the main listing screen which will show the filtered results.
5. To return to the full inventory list, click on the List button and select Reload.
Filtering by Keyword Search
Backup/Restore the Data File
Backup
Importing and Exporting Data
It is highly encouraged that you backup your data file before importing
Publisher,Title,Series,Issue,Type,Grade,CGC Graded?,CGC Number,Reprint?,Notes,Inv Number
For example:
DC,Atari Force,1984,20,Regular,,No,,No,Last issue,
Exporting to a File
Getting Statistics
SCDB can provide basic stats for the inventory. These stats are:
To see the stats, select Other-->Stats from the menu. You will be presented with a window like the one shown at left.
Searching for Info on the GCD Site
About the GCD
The Grand Comic-Book Database (GCD) is a non-commercial online database of comic books. From the GCD wiki: "The Grand
Comic-Book Database (GCD) is an ongoing international project to build a detailed comic-book database that will be
easy to use and understand, and also easy for contributors to add information to it."
Searching the GCD via Right-Click Menu
1. Right-click on an entry in the inventory listing.
2. Select "Search GCD" from the pop-up menu. This will open a modified browser window and load the search results
for that title from the GCD website.
3. View the results of the information.
4. When finished, close the browser window.
Seaching GCD from the Data Form
This option is available when adding or editing a comic.
1. In the data form, ensure the Title field is filled in.
2. Click on the "Title" label next to the field. This will open a modified browser window and load the search results for that title from the GCD web site.
3. View the results of the information.
4. When finished, close the browser window.
Setting Preferences
Certain preferences for SCDB can be modified through the Edit Preferences dialog. The preferences that can be updated are:
To view or modify these preferences, do the following:
WARNING - Be careful about changing the Configuration entries. They can break the operation of SCDB if not set correctly.
Online Help
This help information is available within SCDB. Click on Help and select Help from the menu. A new menu dialog will
appear with the each of the help topics listed. Select the help topic you wish to view by clicking on it.
About SCDB
A small bit of information about SCDB can be found by clicking Help --> About in the menu.