Skip to content

DMS settings

The DMS heading under Setting is one menu entry that opens the dms_reference module. dms_reference.php includes modules/dms_reference/<modref>.php for the screen chosen on the left; the list of screens and their labels is the dms_reference group in Base.php. Most are plain code-and-description lists, scoped by project.

How this page was verified

Written from master on 2026-09-06 and compared with the big five the same day. No earlier page existed. Every screen was mapped to its table; the per-fork table below comes from listing the folder in each repository.

The screens

LabelmodrefTableFeeds
Area Numberareanumberts_area_numberMDR
Well Sitewell_sitets_well_siteMDR
Disciplinedisciplinets_docdisciplineMDR, document numbering
Document Typedoctypets_doctypeMDR
Document Subtypesubtypets_subtype (per discipline)MDR
Document Categorydoccatts_doccatMDR
Drawing Categorydrawing_categoryts_drawing_categoryMDR
Contract / PO Numbercontract_nots_contract_noMDR
Progress Gateprogress_gatets_progress_gate: Sequence, Gate Code, Submission % (submission_progress), Completion % (percentage)the order of the issued statuses and the two progress credits, see MDR Report, Submission % and Completion %
Issued Statusissuedts_issued_status (per progress gate)MDR, transmittals
Review Timeworkingdaysts_workingdays (per issued status)routing due dates
Return Codedocument_result_codets_doc_resultcodeReturn
Routing Typerouting_typets_ref_routing_typerouting templates
Library Index Referencedocindexts_doc_librarythe Document Library tree and its group privileges
System Codesystem_codets_systemMDR
Document Classificationdoc_classificationts_doc_classificationsMDR, auto numbering
Function Codefunction_codets_function_codesMDR

Four more screens are in the folder and reached from the same left list, but are settings rather than lists:

ScreenTableWhat it sets
Watermark settingsts_watermarks, ts_watermark_settingsthe text, font size, opacity and rotation stamped on downloads
Retentionts_doc_retention_settingshow long documents are kept, per resource
Auto document numberingts_doc_auto_numbering_settingsthe number pattern per classification
Auto folder creationts_auto_creation_folder_settingssee Auto Folder Creation

multi_project_setting.inc.php and its two handlers are included by the dispatcher itself and carry the project selector at the top of every screen.

What still runs on the legacy helper

The seven newest screens (system_code, doc_classification, function_code and the four settings screens) are fully on $pdo. The older lists have one to four legacy calls each, usually the delete or the reorder path. Two are heavier: docindex (41 legacy calls, the library tree and privilege editor) and routing_type (14). Expect the grid to load and an edit to fail on those where the helper throws.

Gotchas

  • Everything is per project. A code that "disappeared" was usually entered under another project. The selector at the top decides what the grid shows.
  • Subtype hangs off discipline, issued status off progress gate, review time off issued status. Deleting the parent orphans the children; the grids do not cascade.
  • docindex edits the same ts_doc_library table as the library itself. Renaming an index here renames the folder for everyone.

Instance differences

Checked on 2026-09-06 by listing modules/dms_reference/ in each repository.

InstanceMissing from master's listAdded
JadestoneWell SiteField Code (field_code), Group Code (group_code)
MedcoBusiness Unit, Location, Region, Sub Discipline, SDRL Code, Vendor Package, Code Package Identifier, File Name Setting
JOTREWell Site, Auto folder creation
TimasWell Site, System Code, Document Classification, Function Code, Watermark, Retention, Auto numbering, Auto folder creation
TomoriSystem Code, Document Classification, Function Code, Auto folder creationClassification, Contractor, Division, Element, Project Name, Subcat
KTPthe same eight as Timas

On JOTRE and Timas nearly every shared screen also differs in content (19 and 16 files), because their forks predate the PDO rewrite of these lists.