DLXS Metadata Databases

From DLXS Documentation

(Difference between revisions)
Jump to: navigation, search
Current revision (14:34, 27 August 2007) (edit) (undo)
 
(9 intermediate revisions not shown.)
Line 5: Line 5:
==Database schema==
==Database schema==
-
<p>The <a href="collmgr.html">Collection Manager</a> (collmgr program) maintains all collection and group information in tables. These tables are the following:</p>
+
<p>The [[Working with the Collection Manager|Collection Manager]] (collmgr program) maintains all collection and group information in tables. These tables are the following:</p>
     <table border="1">
     <table border="1">
         <tr><td>No</td><td>Table</td><td>Description</td>
         <tr><td>No</td><td>Table</td><td>Description</td>
         </tr>
         </tr>
-
         <tr><td>1</td><td>Collection</td><td>This table contains all the collection parameters common to all the classes.  
+
         <tr><td>1</td><td>Collection</td><td>This table contains all the collection parameters common to all the classes. In some cases, a particular parameter may not currently be used by a class, but may be in future releases.</td>
-
            In some cases, a particular parameter may not currently be used by a  
+
-
            class, but may be in future releases.</td>
+
         </tr>
         </tr>
-
         <tr><td>3</td><td>BibClass</td><td>This table contains all the collection parameters that are specific to  
+
         <tr><td>3</td><td>BibClass</td><td>This table contains all the collection parameters that are specific to a bib class collection.</td>
-
            a bib class collection.</td>
+
         </tr>
         </tr>
-
         <tr><td>5</td><td>TextClass</td><td>This table contains all the collection parameters that are specific to  
+
         <tr><td>5</td><td>TextClass</td><td>This table contains all the collection parameters that are specific to a text class collection.</td>
-
            a text class collection.</td>
+
         </tr>
         </tr>
-
         <tr><td>7</td><td>ImageClass</td><td>This table contains all the collection parameters that are specific to  
+
         <tr><td>7</td><td>ImageClass</td><td>This table contains all the collection parameters that are specific to an image class collection.</td>
-
            an image class collection.</td>
+
         </tr>
         </tr>
-
         <tr><td>9</td><td>GroupData</td><td>This table contains all the group parameters that are common to all the  
+
         <tr><td>9</td><td>GroupData</td><td>This table contains all the group parameters that are common to all the classes. In some cases, the parameter is not currently being used by a class, but may be in future releases.</td>
-
            classes. In some cases, the parameter is not currently being used by  
+
-
            a class, but may be in future releases.</td>
+
         </tr>
         </tr>
-
         <tr><td>11</td><td>BibClassGroup</td><td>This table contains all the group parameters that are specific to bib  
+
         <tr><td>11</td><td>BibClassGroup</td><td>This table contains all the group parameters that are specific to bib class.</td>
-
            class.</td>
+
         </tr>
         </tr>
-
         <tr><td>13</td><td>TextClassGroup</td><td>This table contains all the group parameters that are specific to text  
+
         <tr><td>13</td><td>TextClassGroup</td><td>This table contains all the group parameters that are specific to text class.</td>
-
            class.</td>
+
         </tr>
         </tr>
Line 44: Line 35:
         </tr>
         </tr>
-
         <tr><td>17</td><td>GroupColl</td><td>This table contains the relationship between groups and collections.  
+
         <tr><td>17</td><td>GroupColl</td><td>This table contains the relationship between groups and collections. It tells which collections are in which groups.</td>
-
            It tells which collections are in which groups.</td>
+
         </tr>
         </tr>
Line 66: Line 56:
      
      
     <p>Some of the columns contain data that are required; others contain optional data. Multiple values, which are allowed in some fields, are entered through collmgr, into the appropriate fields one value per line.</p>
     <p>Some of the columns contain data that are required; others contain optional data. Multiple values, which are allowed in some fields, are entered through collmgr, into the appropriate fields one value per line.</p>
-
   
+
 
-
   
+
-
   
+
==User IDs==
==User IDs==
     <p>All but Version table have a field called <i>userid</i>. <i>userid</i> can take on several values with very specific meaning. One is that of the <i>dlxsadm</i>. The other important value is <i>production</i>. Finally, another value might be that of a specific developer logged into collmgr, say <i>smith</i>. These are explained here.</p>
     <p>All but Version table have a field called <i>userid</i>. <i>userid</i> can take on several values with very specific meaning. One is that of the <i>dlxsadm</i>. The other important value is <i>production</i>. Finally, another value might be that of a specific developer logged into collmgr, say <i>smith</i>. These are explained here.</p>
-
   
+
<p>The userid <i>dlxsadm</i> is referred to as the <i>release user</i>. The middleware will read rows keyed by userid <i>dlxsadmn</i> from these tables when the following are true:</p>
-
    <p>The userid <i>dlxsadm</i> is referred to as the <i>release user</i>. The middleware will read rows keyed by userid <i>dlxsadmn</i> from these tables when the following are true:</p>
+
      
      
     <ul>
     <ul>
       <li> the userid is <i>dlxsadm</i></li>
       <li> the userid is <i>dlxsadm</i></li>
-
       <li> the environment variable <a href="#dlpsdevenv">DLPS_DEV</a> is set to 1  
+
       <li> the environment variable DLPS_DEV is set to 1  
       </li>
       </li>
-
       <li>a DLXS CGI program is being run from the release directory; e.g; <a href="../intro/dirstruct.html#dlxsrootenv">$DLXSROOT</a>/b/bib/.</li>
+
       <li>a DLXS CGI program is being run from the release directory; e.g; [[Directory Structure#DLXSROOT|$DLXSROOT]]/b/bib/.</li>
     </ul>
     </ul>
      
      
Line 93: Line 80:
       <li> the userid is <i>smith</i></li>
       <li> the userid is <i>smith</i></li>
-
       <li>when the environment <a href="#dlpsdevenv">DLPS_DEV</a> is set to <i>smith</i></li>
+
       <li>when the environment DLPS_DEV is set to <i>smith</i></li>
       <li>the executable used to run the middleware is located in  <i>smith</i>'s development directory which corresponds to the value of the DLXSROOT environment variable (e.g., /l1/dev/smith) normally set by  <i>smith</i>'s virtual host, e.g.  <i>smith.dev.umdl.umich.edu</i></li>
       <li>the executable used to run the middleware is located in  <i>smith</i>'s development directory which corresponds to the value of the DLXSROOT environment variable (e.g., /l1/dev/smith) normally set by  <i>smith</i>'s virtual host, e.g.  <i>smith.dev.umdl.umich.edu</i></li>
     </ul>
     </ul>
-
     <p>This will allow <i>smith</i> to perform testing based on collections and groups of his choice that he can set up using the <a href="collmgr.html">Collection Manager</a>. Most institutions will not need to use this third type of user because there will not be a need to have several users work against the same collections. For those institutions, it will only be necessary to log in to the Collection Managmer as <i>dlxsadm</i>. All data management can happen through that userid.</p>
+
     <p>This will allow <i>smith</i> to perform testing based on collections and groups of his choice that he can set up using the [[Working with the Collection Manager|Collection Manager]]. Most institutions will not need to use this third type of user because there will not be a need to have several users work against the same collections. For those institutions, it will only be necessary to log in to the Collection Managmer as <i>dlxsadm</i>. All data management can happen through that userid.</p>
-
   
+
 
-
   
+
==Additional privilege for <i>dlxsadm</i>==
==Additional privilege for <i>dlxsadm</i>==
Line 129: Line 115:
===Middleware===
===Middleware===
-
     <p>The middleware can be set to look at either the <i>release rows </i>(for testing and subsequent release) or the <i>production rows</i> (rows actually being used by the production system). This is accomplished through the setting of the environment variable <b><a name="dlpsdevenv"></a>DLPS_DEV</b>. If set to 1, the <i>release rows</i> and their values are used by the middleware. If set to 0 or not present, the <i>production rows</i> are used by the middleware. </p>
+
     <p>The middleware can be set to look at either the <i>release rows </i>(for testing and subsequent release) or the <i>production rows</i> (rows actually being used by the production system). This is accomplished through the setting of the environment variable <b>DLPS_DEV</b>. If set to 1, the <i>release rows</i> and their values are used by the middleware. If set to 0 or not present, the <i>production rows</i> are used by the middleware. </p>
     <p>Therefore, two environments need to be set up: one for release and one for production. These can be set up as separate <i>virtual hosts</i> on a web server, each defining its own environment variables, or as servers on two <i>separate machines</i>. At DLPS, we have a separate development machine and more than one production machine, but it seems to be the case that most DLXS partners have one machine where both development and production are done.</p>
     <p>Therefore, two environments need to be set up: one for release and one for production. These can be set up as separate <i>virtual hosts</i> on a web server, each defining its own environment variables, or as servers on two <i>separate machines</i>. At DLPS, we have a separate development machine and more than one production machine, but it seems to be the case that most DLXS partners have one machine where both development and production are done.</p>
-
     <p>In either case, the situation is that there are <i>two sets of rows</i> in the database and two servers (whether they are virtual hosts or actual separate physical hosts is irrelevant).  (In addition there is an <a href="../program/devenvironment.html">extension</a> to this scheme whereby each individual developer can have his/her own set of rows in order to develop without disturbing the database values in the release and production rows.)  </p>
+
     <p>In either case, the situation is that there are <i>two sets of rows</i> in the database and two servers (whether they are virtual hosts or actual separate physical hosts is irrelevant).  (In addition there is an [[DLPS's Development Environment for DLXS Software|extension]] to this scheme whereby each individual developer can have his/her own set of rows in order to develop without disturbing the database values in the release and production rows.)  </p>
-
     <p>For example, assume there is one machine with two virtual hosts (<i>dev.domain.edu</i> and <i>prod.domain.edu</i>). The configuration for the virtual host <i>dev.domain.edu</i> should have a SetEnv directive setting <a href="#dlpsdevenv">DLPS_DEV</a> to 1. The configuration for the <i>prod.domain.edu</i> virtual host should not include this environment variable setting.</p>
+
     <p>For example, assume there is one machine with two virtual hosts (<i>dev.domain.edu</i> and <i>prod.domain.edu</i>). The configuration for the virtual host <i>dev.domain.edu</i> should have a SetEnv directive setting DLPS_DEV to 1. The configuration for the <i>prod.domain.edu</i> virtual host should not include this environment variable setting.</p>
     <p>When the <i>dev.domain.edu</i> server is asked to run the middleware it will access the <i>release rows</i> in the database and use their values.</p>
     <p>When the <i>dev.domain.edu</i> server is asked to run the middleware it will access the <i>release rows</i> in the database and use their values.</p>
-
     <p><b>Note</b>: As mentioned, if you want to run the cgi programs on the command line or within a debugger, you'll need to set your own shell environment to include a <a href="#dlpsdevenv">DLPS_DEV</a> variable set to 1.</p>
+
     <p><b>Note</b>: As mentioned, if you want to run the cgi programs on the command line or within a debugger, you'll need to set your own shell environment to include a DLPS_DEV variable set to 1.</p>
     <p>Likewise, the <i>production rows</i> and their values will be used for any cgi call to the <i>prod.domain.edu</i> virtual host because the user that the web server runs as (e.g., <i>nobody</i>) will not have the DLPS_DEV environment variable set. This is because no SetEnv directive in the <i>prod.domain.edu</i>'s virtual host configuration will have been set.</p>
     <p>Likewise, the <i>production rows</i> and their values will be used for any cgi call to the <i>prod.domain.edu</i> virtual host because the user that the web server runs as (e.g., <i>nobody</i>) will not have the DLPS_DEV environment variable set. This is because no SetEnv directive in the <i>prod.domain.edu</i>'s virtual host configuration will have been set.</p>
-
   
 
===Collection Manager===
===Collection Manager===
-
     <p>When running the <b><a href="collmgr.html[[Working with the Collection Manager|Collection Manager cgi, you should log in as user <i>dlxsadm </i>in order to add, remove, edit rows that are the <i>release rows</i>. When you want the working production system to actually use your changes, the Collection Manager lets you "move release rows to production", which actually copies the rows keyed by the user <i>dlxsadm</i> to rows keyed by the user <i>production</i>. You cannot directly manipulate the production rows. This layer of protection is something akin to "checking in" data. Click here for more on the <a href="collmgr.html#workflow">collmgr workflow</a>.</p>
+
     <p>When running the [[Working with the Collection Manager|Collection Manager]] cgi, you should log in as user <i>dlxsadm </i>in order to add, remove, edit rows that are the <i>release rows</i>. When you want the working production system to actually use your changes, the Collection Manager lets you "move release rows to production", which actually copies the rows keyed by the user <i>dlxsadm</i> to rows keyed by the user <i>production</i>. You cannot directly manipulate the production rows. This layer of protection is something akin to "checking in" data. Click here for more on the [[Working with the Collection Manager|collmgr workflow]].</p>
     <table border="1">
     <table border="1">
Line 156: Line 141:
         </tr>
         </tr>
     </table>
     </table>
-
   
+
 
-
   
+
 
===Three or more rows: Release, Production and individual developers===
===Three or more rows: Release, Production and individual developers===
-
     <p>If you do work where different users require individualized versions of the database rows, as we do at DLPS, the databases can also be set up with, in addition to the <i>release</i> and <i>production</i> rows described above, rows keyed by <i>username</i>.  In addition to the material below, please refer also to the instructions related to configuring this <i>username</i> <a href="../program/devenvironment.html">extension</a>. </p>
+
     <p>If you do work where different users require individualized versions of the database rows, as we do at DLPS, the databases can also be set up with, in addition to the <i>release</i> and <i>production</i> rows described above, rows keyed by <i>username</i>.  In addition to the material below, please refer also to the instructions related to configuring this <i>username</i> [[DLPS's Development Environment for DLXS Software|extension]]. </p>
-
 
+
 
-
   
+
     <p>Here, there are at least three sets of rows: the same two as before, but with additional sets for individual developers. A user can:</p>
     <p>Here, there are at least three sets of rows: the same two as before, but with additional sets for individual developers. A user can:</p>
     <ul>
     <ul>
Line 170: Line 154:
         by the user name, overwriting <i>release</i>'s previous rows for those collections)</li>
         by the user name, overwriting <i>release</i>'s previous rows for those collections)</li>
-
       <li>later, using the <a href="collmgr.html">Collection Manager</a>, logged in as dlxsadm, one can "move" release to production as described above</li>
+
       <li>later, using the [[Working with the Collection Manager|Collection Manager]], logged in as dlxsadm, one can "move" release to production as described above</li>
     </ul>
     </ul>
-
   
+
 
-
   
+
===Middleware===
===Middleware===
     <p>The middleware can be set to use the release rows or the user name rows. This is accomplished by:</p>
     <p>The middleware can be set to use the release rows or the user name rows. This is accomplished by:</p>
     <ul>
     <ul>
-
       <li>Having the <a href="#dlpsdevenv">DLPS_DEV</a> variable set to 1, as in the  
+
       <li>Having the DLPS_DEV variable set to 1, as in the  
         two row scenario explained above. If running through a browser, the host web server will  
         two row scenario explained above. If running through a browser, the host web server will  
         have to be configured to have the DLPS_DEV variable set, or if on a  
         have to be configured to have the DLPS_DEV variable set, or if on a  
Line 185: Line 168:
       <li>Running the middleware CGI programs.</li>
       <li>Running the middleware CGI programs.</li>
     </ul>
     </ul>
-
     <p><a name="symlink"></a>The middleware can also be set to use the user specific rows. This is generally done to test new functionality in the middleware or to try out potential changes to the database field values. This is accomplished  
+
     <p>The middleware can also be set to use the user specific rows. This is generally done to test new functionality in the middleware or to try out potential changes to the database field values. This is accomplished  
       by:</p>
       by:</p>
     <ul>
     <ul>
-
       <li>Having the <a href="#dlpsdevenv">DLPS_DEV</a> variable set to  <i>username</i>. If running through a browser, the developer's virtual host will  
+
       <li>Having the DLPS_DEV variable set to  <i>username</i>. If running through a browser, the developer's virtual host will  
         have to have been configured to have the DLPS_DEV variable set, or if on a  
         have to have been configured to have the DLPS_DEV variable set, or if on a  
         command line or in a debugger, the user will have to have the variable set  
         command line or in a debugger, the user will have to have the variable set  
Line 195: Line 178:
        
        
     </ul>
     </ul>
-
   
+
 
-
   
+
===Collection Manager===
===Collection Manager===
-
     <p>When running the <b>Collection Manager</b> cgi, in order to make changes to the rows keyed by your user name, you should log in as <i>username</i>. This allows you to check out rows from the release rows, view and edit your own rows, and check them back in to release. Click here for more on the <a href="collmgr.html#workflow">Collection Manager
+
     <p>When running the <b>Collection Manager</b> cgi, in order to make changes to the rows keyed by your user name, you should log in as <i>username</i>. This allows you to check out rows from the release rows, view and edit your own rows, and check them back in to release. Click here for more on the [[Working with the Collection Manager|Collection Manager
-
         workflow</a>.</p>
+
         workflow]].</p>
     <table border="1">
     <table border="1">
         <tr><td><i>to use</i></td><td>collmgr</td>
         <tr><td><i>to use</i></td><td>collmgr</td>
Line 216: Line 198:
     <p>Later, when ready, logging in as dlxsadm, one can "move" release to production.</p>
     <p>Later, when ready, logging in as dlxsadm, one can "move" release to production.</p>
      
      
-
   
+
 
-
    <br />
+
[[#top|Top]]
-
      <br />
+
-
        <br />
+
-
          <br />
+
-
            <br />
+
-
              <br />
+
-
[[#top|Top]]
+

Current revision

Main Page > Working with DLXS Components > Working with the Collection Metadata Database > DLXS Metadata Databases

This document describes some of the metadata used by the DLXS middleware. The dlxs database contains metadata about the collections and the collection groups.

Contents

[edit] Database schema

The Collection Manager (collmgr program) maintains all collection and group information in tables. These tables are the following:

NoTableDescription
1CollectionThis table contains all the collection parameters common to all the classes. In some cases, a particular parameter may not currently be used by a class, but may be in future releases.
3BibClassThis table contains all the collection parameters that are specific to a bib class collection.
5TextClassThis table contains all the collection parameters that are specific to a text class collection.
7ImageClassThis table contains all the collection parameters that are specific to an image class collection.
9GroupDataThis table contains all the group parameters that are common to all the classes. In some cases, the parameter is not currently being used by a class, but may be in future releases.
11BibClassGroupThis table contains all the group parameters that are specific to bib class.
13TextClassGroupThis table contains all the group parameters that are specific to text class.
15ImageClassGroupThis table contains all the group parameters that are specific to image class collections.
17GroupCollThis table contains the relationship between groups and collections. It tells which collections are in which groups.
19CheckinCollectionThis table is used to maintain a record of which user checked in which collection and at what time.
20CheckoutCollectionThis table is used to maintain a record of which user checked out which collection and at what time.
21CheckinGroupThis table is used to maintain a record of which user checked in which group and at what time.
22CheckoutGroupThis table is used to maintain a record of which user checked out which group and at what time.
24VersionThis table maintains the version number of the database.

These tables serve to identify and locate the various modules, objects, and search restrictions that are used by the class middleware to serve each collection available in the various classes. See more on the tables in the database in the collmgr documentation.


Some of the columns contain data that are required; others contain optional data. Multiple values, which are allowed in some fields, are entered through collmgr, into the appropriate fields one value per line.

[edit] User IDs

All but Version table have a field called userid. userid can take on several values with very specific meaning. One is that of the dlxsadm. The other important value is production. Finally, another value might be that of a specific developer logged into collmgr, say smith. These are explained here.

The userid dlxsadm is referred to as the release user. The middleware will read rows keyed by userid dlxsadmn from these tables when the following are true:

  • the userid is dlxsadm
  • the environment variable DLPS_DEV is set to 1
  • a DLXS CGI program is being run from the release directory; e.g; $DLXSROOT/b/bib/.

The userid production is referred to as the production user. The middleware will read rows keyed by userid production from these tables when:

  • when the environment DLPS_DEV is not set

The userid smith, for example, is referred to as the development user. The middleware will read rows keyed by this userid when:

  • the userid is smith
  • when the environment DLPS_DEV is set to smith
  • the executable used to run the middleware is located in smith's development directory which corresponds to the value of the DLXSROOT environment variable (e.g., /l1/dev/smith) normally set by smith's virtual host, e.g. smith.dev.umdl.umich.edu

This will allow smith to perform testing based on collections and groups of his choice that he can set up using the Collection Manager. Most institutions will not need to use this third type of user because there will not be a need to have several users work against the same collections. For those institutions, it will only be necessary to log in to the Collection Managmer as dlxsadm. All data management can happen through that userid.

[edit] Additional privilege for dlxsadm

In addition to being able to delete, add, or edit collections and groups associated with the dlxsadm user, this administrative login userid has other privileges. The dlxsadm will be able to add fields to classes, and delete fields from classes. This will change the structure of the tables associated with the classes.

Note that when the userid dlxsadm deletes a collection or group, a backup of the deleted collection or group is kept in the appropriate backup tables.

The user dlxsadm also has privileges to release classes to production. "Releasing to production" effectively copies every dlxsadm row to a row keyed by the userid production. This distinction between dlxsadm and production, allows you to work on collections and groups independent of the collections and groups that are accessible by the version of the middleware that is running in production.



[edit] Database fields

For information on the individual fields, please see the help file used by the Collection Manager (collmgr).


[edit] Interaction between database rows, users, DLXS Middleware and the Collection Manager

[edit] Two rows: Release and Production

Most users of DLXS Middleware will likely have the following situation. A collection manager will be making changes to the collection information database, changing, adding or deleting collections. Then at some point, the new set of collections to be delivered will need to go into production. The database holds both sets of rows.

  • One set of rows containing collections and groups as they are tested in a development environment. When ready, these will be moved to production.
  • One set of rows containing collections and groups that are used by the production environment.


[edit] Middleware

The middleware can be set to look at either the release rows (for testing and subsequent release) or the production rows (rows actually being used by the production system). This is accomplished through the setting of the environment variable DLPS_DEV. If set to 1, the release rows and their values are used by the middleware. If set to 0 or not present, the production rows are used by the middleware.

Therefore, two environments need to be set up: one for release and one for production. These can be set up as separate virtual hosts on a web server, each defining its own environment variables, or as servers on two separate machines. At DLPS, we have a separate development machine and more than one production machine, but it seems to be the case that most DLXS partners have one machine where both development and production are done.

In either case, the situation is that there are two sets of rows in the database and two servers (whether they are virtual hosts or actual separate physical hosts is irrelevant). (In addition there is an extension to this scheme whereby each individual developer can have his/her own set of rows in order to develop without disturbing the database values in the release and production rows.)

For example, assume there is one machine with two virtual hosts (dev.domain.edu and prod.domain.edu). The configuration for the virtual host dev.domain.edu should have a SetEnv directive setting DLPS_DEV to 1. The configuration for the prod.domain.edu virtual host should not include this environment variable setting.

When the dev.domain.edu server is asked to run the middleware it will access the release rows in the database and use their values.

Note: As mentioned, if you want to run the cgi programs on the command line or within a debugger, you'll need to set your own shell environment to include a DLPS_DEV variable set to 1.

Likewise, the production rows and their values will be used for any cgi call to the prod.domain.edu virtual host because the user that the web server runs as (e.g., nobody) will not have the DLPS_DEV environment variable set. This is because no SetEnv directive in the prod.domain.edu's virtual host configuration will have been set.

[edit] Collection Manager

When running the Collection Manager cgi, you should log in as user dlxsadm in order to add, remove, edit rows that are the release rows. When you want the working production system to actually use your changes, the Collection Manager lets you "move release rows to production", which actually copies the rows keyed by the user dlxsadm to rows keyed by the user production. You cannot directly manipulate the production rows. This layer of protection is something akin to "checking in" data. Click here for more on the collmgr workflow.

to usecollmgr
release rowslog in as dlxsadm, view and edit rows
production rowslog in a s dlxsadm, view rows, copy release rows onto production rows


[edit] Three or more rows: Release, Production and individual developers

If you do work where different users require individualized versions of the database rows, as we do at DLPS, the databases can also be set up with, in addition to the release and production rows described above, rows keyed by username. In addition to the material below, please refer also to the instructions related to configuring this username extension.

Here, there are at least three sets of rows: the same two as before, but with additional sets for individual developers. A user can:

  • check out rows from release (essentially a copy of the rows from those marked as release, creating or overwriting the user's previous rows for those collections)
  • view or edit rows keyed by his/her user name
  • check in rows to release (essentially a copy of the rows from those keyed by the user name, overwriting release's previous rows for those collections)
  • later, using the Collection Manager, logged in as dlxsadm, one can "move" release to production as described above

[edit] Middleware

The middleware can be set to use the release rows or the user name rows. This is accomplished by:

  • Having the DLPS_DEV variable set to 1, as in the two row scenario explained above. If running through a browser, the host web server will have to be configured to have the DLPS_DEV variable set, or if on a command line or in a debugger, the user will have to have the variable set in his/her environment.
  • Running the middleware CGI programs.

The middleware can also be set to use the user specific rows. This is generally done to test new functionality in the middleware or to try out potential changes to the database field values. This is accomplished by:

  • Having the DLPS_DEV variable set to username. If running through a browser, the developer's virtual host will have to have been configured to have the DLPS_DEV variable set, or if on a command line or in a debugger, the user will have to have the variable set in his/her environment.

[edit] Collection Manager

When running the Collection Manager cgi, in order to make changes to the rows keyed by your user name, you should log in as username. This allows you to check out rows from the release rows, view and edit your own rows, and check them back in to release. Click here for more on the Collection Manager workflow.

to usecollmgr
release rowslog in as dlxsadm, view and edit rows
production rowslog in as dlxsadm, view rows, copy release rows onto production rows
username rowslog in as user, checkout release rows, view, edit user rows, checkin rows to release

Imagine your username is smith. When you log in to the Collection Manager cgi, you can check out rows from the release rows (they are copied) to rows that are keyed by the userid smith. You can make changes to these rows so that when you access them through the middleware (running under a virtual host with DLPS_DEV set to smith and DLXSROOT set to smith's copy of the code tree under development), the values from those rows will be used. If or when you check them back in, the values you entered/changed in the smith-keyed rows will be copied into the corresponding release rows.

Later, when ready, logging in as dlxsadm, one can "move" release to production.


Top

Personal tools