# Subject ## Purpose Open **Educational Structure → Subject** (`/subject`). This catalogue contains subjects, their child subjects, classifiers, responsible departments and education sectors. A subject can be reused in curricula for different years, courses and terms; hours, credits, assessment types and specific assignments belong to curriculum and workload records rather than the catalogue. The `child-subject` module item represents nested subject management; there is no separate user page or CRUD endpoint for children. All such actions take place in the subject list. ## Create a subject Press Add and complete the form. | Field | Rule | Example | |---|---|---| | Subject type | Required, regular (`regular`) or modular (`modular`); regular by default | Regular subject | | Subject (name) | Required translated field, up to 255 characters | Calculus | | Abbreviation | Required translated field, up to 255 characters | Calc. | | Classifier | Required in UI; server allows null; string | 0125 or institution's code | | Academic department | Required for a root subject | Mathematics | | Education sector | One or more applicable education sectors for the root | Select an existing sector | | Level | Optional integer from 1 to 7 | 2 | | Term | `full_half` switch (0/1), not the curriculum term number | On | Subjects have no start/end date fields. Level is a subject characteristic, not a student educational-degree reference. The Term switch stores a binary flag; it does not assign the subject to semester 1 or 2 or determine lesson dates. Enter translations of a single entry, e.g. RU «Математический анализ» / «МА», EN Calculus / Calc., HY «Մաթեմատիկական անալիզ» / «ՄԱ». Language codes must exist in the [language catalogue](/en/docs/languages) and be no longer than five characters. Name and abbreviation duplicates are checked separately within the department and parent for the same language. Do not create a different record for each translation. You can enter a classifier manually or request a generated value using the refresh icon in the field. It generates two distinct Latin letters followed by four digits, e.g. `AB0142`, and checks existing codes in the accessible query. This is not the same operation as renumbering the catalogue. The ordinary save validates the classifier as a string; it does not enforce global uniqueness of manually entered values. [Classifiers and department transfer](/en/docs/subject-administration) Save and verify the resulting department and sectors. Departments are maintained in a [separate catalogue](/en/docs/academic-departments). ## Modular and child subjects A modular subject groups ordinary child subjects. For example, create a modular Programming root, select the Computer Science department and applicable sectors. Expand the row and use its nested Add action: 1. Algorithms / ALG, level 2, classifier 0125-1. 2. Data Structures / DS, level 2, classifier 0125-2. Child forms do not display a separate type, department or sector field. The server sets the regular type and inherits the parent's department and binary `full_half` flag. Sectors apply through the parent. Name, abbreviation, level and classifier may be independent. A child cannot have its own child: one nesting level is supported, not a module → child → grandchild chain. The UI supports adding children to a regular root. Creating its first child automatically converts the root to modular. While active children exist, changing a modular parent back to regular is rejected. The old standalone “subject with one selectable child” type is not offered; there are only two current types. Expand the saved parent to inspect nested rows. Authorized users can edit and delete them through the same actions. Department and `full_half` changes are made at the root and synchronized to children. ## Connection to curricula and assignments Subjects are available in the selected department and education sector. A curriculum gets its sector from its profession, so a subject configured only for one sector should not be expected in a plan belonging to another. Correct the applicable associations first. In a curriculum, a modular subject may use common parent values or separate child values. Child-value accounting requires at least one direct child; separate bulletins require child values. Creating the catalogue hierarchy does not automatically create rows in the curriculum. Add the subject and configure its accounting mode there. [Learning plans](/en/docs/learning-plans) · [Curriculum details](/en/docs/learning-plan-details) Setting a modular type does not by itself define student-elective choices. Actual electives require the corresponding elective subject block and student assignments. United lessons similarly require separate grouping and linking. [Elective subjects](/en/docs/elective-subjects) · [United lessons](/en/docs/united-lessons) · [Subject groups](/en/docs/subject-groups) · [Workload](/en/docs/workload) ## Search and editing The list contains root subjects with nested child rows. It supports pagination and search by name, abbreviation, code, level and translated department/sector; a matching child name brings its root into the results. Filters include department, sector, type and classifier. Expand the matched root to find a child. Configure columns and use standard Excel/PDF table export; the server exports root-list records, not a guaranteed separate row for every child. There is no separate spreadsheet-import action on this page. Ordinary editing retains the subject ID and versions changed translations. The standalone rename action with reason/history is disabled in both UI and API. Ordinary department editing is blocked if the root or children are linked to curriculum rows. Removing a sector is blocked when subjects in the family are used in plans for that sector; the server reports affected rows. Review those before changing the sector. For a child subject without editable sector fields, the current validation may also reject ordinary editing if the child already occurs in a plan: consult the administrator rather than removing correct academic data. ## Deletion and restoration Subject deletion is soft. A subject cannot be deleted when it or its descendants have curriculum rows. A parent with active children cannot be deleted either. Attached subject roles and workplace records are also checked. Review actual academic and historical references even when no plan use is reported. Trash may list deleted children under a still-active parent. Restoration concerns the selected subject only and does not automatically restore the entire family. If the family was deleted, inspect the parent and then the required children. Deletion is not an academic-date expiration setting. ## Access and scopes | Action | Permission | |---|---| | View | `subjects.index` | | Create (including children) and generate classifier | `subjects.store` | | Edit | `subjects.update` | | Delete | `subjects.destroy` | | Trash | `subjects.deleted-items` | | Restore | `subjects.restore` | The `subject` module declares **Department and Subject** scopes. Records are restricted by responsible department and subject ID; when saving, the current/selected department, subject and applicable parent are checked. The `SubjectCreateAction` and `SubjectEditAction` groups also use `academic-departments.index` and `education-sectors.index` to populate their selectors. Faculty and Profession scopes are not declared. Classifier synchronization and department transfer have additional permissions. ## Troubleshooting - Subject missing in curriculum: check department, root sector, profession sector, type and permissions. - Child cannot be added: add it to a root, not another child, and check create permission. - Sector edit rejected: review the affected plan rows reported by the server. Do not remove required academic associations just to pass validation. - Department change rejected: the subject or its children already appear in plans. A separate authorized transfer exists for genuine restructuring. - Subject cannot be deleted: check plans, children, roles and other dependencies. Restore an accidentally deleted record from trash. ## Source references - [frontend-edusystems · index.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/container/index.tsx) - [frontend-edusystems · SubjectDescriptor.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/SubjectDescriptor.tsx) - [frontend-edusystems · SubjectTypeField.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/SubjectTypeField.tsx) - [frontend-edusystems · SubjectLevelField.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/SubjectLevelField.tsx) - [frontend-edusystems · SubjectClassifierField.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/SubjectClassifierField.tsx) - [frontend-edusystems · subjectKinds.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/subjectKinds.ts) - [frontend-edusystems · SubjectService.ts](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/pages/EducationalStructure/Subject/SubjectService.ts) - [frontend-edusystems · ModuleTable.tsx](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/src/core/ModuleTable.tsx) - [frontend-edusystems · permissionActionMap.json](https://gitlab.kamoorj.com/development/frontend-edusystems/-/blob/b928b3290040bab5c888b195b813f6705170e309/src/admin/public/permissionActionMap.json) - [backend-edusystems · ModulesSeeder.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/database/seeders/ModulesSeeder.php) - [backend-edusystems · api.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/routes/api.php) - [backend-edusystems · SubjectRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Http/Requests/SubjectRequest.php) - [backend-edusystems · IndexSubjectRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Http/Requests/IndexSubjectRequest.php) - [backend-edusystems · SubjectController.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Http/Controllers/SubjectController.php) - [backend-edusystems · Subject.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Models/Subject.php) - [backend-edusystems · SubjectType.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Enums/SubjectType.php) - [backend-edusystems · SubjectTableRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Repositories/SubjectTableRepository.php) - [backend-edusystems · SubjectListResource.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Http/Resource/SubjectListResource.php) - [backend-edusystems · SectorPlanUsageGuard.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/Services/SectorPlanUsageGuard.php) - [backend-edusystems · SubjectService.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Services/SubjectService.php) - [backend-edusystems · SubjectRepository.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Repositories/SubjectRepository.php) - [backend-edusystems · 2026_10_05_120000_merge_selectable_subjects_into_modular.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/Subject/database/migrations/2026_10_05_120000_merge_selectable_subjects_into_modular.php) - [backend-edusystems · SaveLearningPlanSubjectRequest.php](https://gitlab.kamoorj.com/development/backend-edusystems/-/blob/83e0edc8d75daf02ae011b433d0be83afe994212/app/Modules/LearningPlanSubject/Http/Requests/SaveLearningPlanSubjectRequest.php)