{% extends "base.html" %} {% block content %}

Library Health Audit

Comprehensive structural check of bibliographic references and physical files.

{{ findings.missing_physical_files|length }}

Missing Files

{{ findings.docs_missing_ref|length }}

Orphan Docs

{{ findings.orphan_extracts|length }}

Orphan Extracts
{% if findings.missing_physical_files %}
Missing Physical Files
{{ findings.missing_physical_files|length }}

References point to these files, but they do not exist in the document store.

{% for file in findings.missing_physical_files %}
{{ file }}
{% endfor %}
{% endif %} {% if findings.docs_missing_ref %}
Orphan Documents
{{ findings.docs_missing_ref|length }}

Physical files exist in the database but have no bibliographic reference linked to them.

{% for doc in findings.docs_missing_ref %}
{{ doc }}
{% endfor %}
{% endif %} {% if findings.orphan_extracts %}
Orphan Text Extracts
{{ findings.orphan_extracts|length }} Clean

Text extraction files that don't correspond to any document in the library.

{% for orphan in findings.orphan_extracts %}
{{ orphan.name }}
{% endfor %}
{% endif %} {% if findings.refs_missing_doc %}
References Missing Documents
{{ findings.refs_missing_doc|length }}

Bibliographic entries that exist in the library but have no physical files attached.

{% for ref in findings.refs_missing_doc %} {{ ref }} {% endfor %}
{% endif %} {% if findings.metadata_quality %}
Metadata Quality
Missing DOI
Missing Year
Missing Source (Journal/Book)
{% set total = findings.metadata_quality.total %} {% if total > 0 %} {% set complete = total - findings.metadata_quality.missing_doi %} {% set pct = (complete / total * 100)|round|int %}
{% endif %}
DOI Completeness
{% endif %}
{% if not findings.missing_physical_files and not findings.docs_missing_ref and not findings.refs_missing_doc and not findings.broken_tag_links and not findings.broken_id_links %}

Library is Healthy

No structural issues or missing files were found in your library.

{% endif %} {% endblock %}