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.
Installing
Installation of SCDB is accomplished through a install script.
- Download SCDB. See the main SCDB page for the download link.
- Uncompress the file.
- Change into the scdb directory.
- Execute install.sh script.
- Follow the instructions.
Using XULRunner to run SCDB
XULRunner is a runtime package that allows the execution of XUL-based applications. It is available as source or as a binary installer on the Mozilla Developer Center site. However, all Linux 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:
- Install SCDB (see above).
- Change to the directory where SCDB is installed (default is /home/<user>/bin/scdb).
- Enter xulrunner application.ini and press Enter
Using Firefox 3.x and higher to run SCDB
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.
You will need to install the seperate XULRunner package to run SCDB.
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.
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 three ways to add a single entry to the inventory: using the Add toolbar menu option, the Add Next
popup menu option or the Add Previous 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
Simple Search
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 or Title Starts With....
1. In the Show Publisher menu, click on All to filter all entries in the data file or select a publisher 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.
1. Click on Filter and select By Search from the menu. This will open the Search dialog box.
Importing from a File
SCDB can import character 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.
1. In the data form, ensure the Title field is filled in.
1. Right-click on an entry in the inventory listing.
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.
Using Add Previou
This function works like the Add Next except that it adds the previous numerical issue.
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
You can filter or search the inventory through a simple keyword search or through a more complex series of filters and search terms.
To do a simple keyword search, click in the search field on the far right of the main window menu bar, type in your keyword then click on the Search button.
Filtering By Publisher
Filtering By Category
2. Click on the Filter button and select By Category 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 selected. 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 Show Publisher drop-down menu. If you want to see all Marvel comics that are a limited-series, select Marvel from the Show Publisher drop-down menu then select Filter->By Category->Type->Limited-Series.
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
2. If you want to search just the title field (versus every field) for each entry, check the box labeled "Search only title field." This will cause three options to appear: Match all of title, Match start of title and Match end of title. Hover over each of these to get a detailed explanation of what they do.
3. In the text field, enter the word or words that you want to search for. Example (without quotes): "Superman" or "Star Wars".
4. Click on Search to execute the search. The dialog box will disappear and the results will appear in the main window.
Backup/Restore the Data File
Backup
Restore
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."
Seaching GCD from the Data Form
This option is available when adding or editing a comic. It is intended to get the proper formatting of the title in the GCD database for entry into the form. It will only search the first word of the title. For example, for the title Gotham Nights only the word Gotham will be used for the search. See the note below for why this is done.
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.
Searching the GCD via Right-Click Menu
This option allows you to search with a bit more accuracy. If the Publisher, Title, and Series field data was entered as it was found in the GCD the entry was first created, then only the specific title will appear in the GCD search results.
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.
NOTE: If the results return nothing found, then the problem most likely lies in how the Title is formatted. The GCD search function considers non-alphanumeric characters as part of the Title. So All-Star Squadron will return a result but All Star Squadron will not. This is due to limitations in the flexibility of searches that can be performed on the GCD database. For full information on what searches can and cannot contain, see the Advanced Search page on the GCD web site.
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.