# dicarve/integrasi-slims-sibi architecture

> Architecture diagram of the GitHub repository dicarve/integrasi-slims-sibi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dicarve/integrasi-slims-sibi
- Repository: https://github.com/dicarve/integrasi-slims-sibi

## Overview

This SLiMS plugin lets a bibliography administrator harvest SIBI book metadata, synchronize it into SLiMS, and download individual e-books. The plugin registers an admin menu that opens a single PHP page handling these stages and the collection listing. Harvested records are staged in the plugin’s database table; synchronization populates SLiMS bibliographic and authority data, while downloads create local files and file records. The main source was sampled only in excerpts, so unsampled details and relationships are omitted.

Main entry points: [`index.php`](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php) (SIBI page), [`sibi.plugin.php`](https://github.com/dicarve/integrasi-slims-sibi/blob/main/sibi.plugin.php) (SIBI menu)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Plugin entry"]
  node_menu["SIBI menu<br/>[sibi.plugin.php]"]
end

subgraph group_sibi["SIBI metadata workflow"]
  node_page["SIBI page<br/>[index.php]"]
  node_harvest["Metadata harvest<br/>[index.php]"]
  node_staging[("SIBI records<br/>[index.php]")]
  node_listing["Metadata listing<br/>[index.php]"]
  node_download["E-book download<br/>[index.php]"]
end

subgraph group_slims["SLiMS integration"]
  node_sync["Metadata sync<br/>[index.php]"]
  node_bibliography[("Bibliographic records<br/>[index.php]")]
  node_author_topics[("Author and topic data<br/>[index.php]")]
  node_book_files[("Local e-books")]
  node_file_catalog[("SLiMS file records<br/>[index.php]")]
end

node_admin(("Bibliography admin"))
node_api["SIBI service"]

node_admin -->|"opens"| node_menu
node_menu -->|"registers"| node_page
node_admin -->|"uses"| node_page
node_page -->|"handles"| node_harvest
node_harvest -->|"requests metadata"| node_api
node_harvest -->|"stores records"| node_staging
node_page -->|"renders"| node_listing
node_listing -->|"reads records"| node_staging
node_page -->|"handles"| node_sync
node_sync -->|"reads records"| node_staging
node_sync -->|"synchronizes records"| node_bibliography
node_sync -->|"inserts data"| node_author_topics
node_page -->|"handles"| node_download
node_download -->|"reads attachments"| node_staging
node_download -->|"downloads files"| node_api
node_download -->|"writes files"| node_book_files
node_download -->|"inserts records"| node_file_catalog

click node_menu "https://github.com/dicarve/integrasi-slims-sibi/blob/main/sibi.plugin.php"
click node_page "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_harvest "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_staging "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_listing "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_sync "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_bibliography "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_author_topics "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_download "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"
click node_file_catalog "https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_menu toneBlue
class node_page,node_harvest,node_staging,node_listing,node_download toneAmber
class node_sync,node_bibliography,node_author_topics,node_book_files,node_file_catalog toneMint
class node_admin,node_api toneIndigo
```

## Components

### Plugin entry

- [SIBI menu](https://github.com/dicarve/integrasi-slims-sibi/blob/main/sibi.plugin.php): `sibi.plugin.php`

### SIBI metadata workflow

- [SIBI page](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [Metadata harvest](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [SIBI records](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [Metadata listing](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [E-book download](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`

### SLiMS integration

- [Metadata sync](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [Bibliographic records](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- [Author and topic data](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`
- **Local e-books**
- [SLiMS file records](https://github.com/dicarve/integrasi-slims-sibi/blob/main/index.php): `index.php`

### Other components

- **Bibliography admin**
- **SIBI service**

## Connections

- Bibliography admin → SIBI menu: opens (evidence: `README.md`)
- SIBI menu → SIBI page: registers (evidence: `sibi.plugin.php`)
- Bibliography admin → SIBI page: uses (evidence: `README.md`)
- SIBI page → Metadata harvest: handles (evidence: `index.php`)
- Metadata harvest → SIBI service: requests metadata (evidence: `index.php`)
- Metadata harvest → SIBI records: stores records (evidence: `index.php`)
- SIBI page → Metadata listing: renders (evidence: `index.php`)
- Metadata listing → SIBI records: reads records (evidence: `index.php`)
- SIBI page → Metadata sync: handles (evidence: `index.php`)
- Metadata sync → SIBI records: reads records (evidence: `README.md`)
- Metadata sync → Bibliographic records: synchronizes records (evidence: `README.md`)
- Metadata sync → Author and topic data: inserts data (evidence: `index.php`)
- SIBI page → E-book download: handles (evidence: `index.php`)
- E-book download → SIBI records: reads attachments (evidence: `index.php`)
- E-book download → SIBI service: downloads files (evidence: `index.php`)
- E-book download → Local e-books: writes files (evidence: `README.md`)
- E-book download → SLiMS file records: inserts records (evidence: `index.php`)
