mirror of
https://github.com/ilri/csv-metadata-quality-web.git
synced 2025-05-09 14:46:02 +02:00
Major refactor
Refactor the templates to include a header, use csv-metadata-quality in a subshell instead of trying to import and pass args to it (which I actually managed to do, but then trying to capture the output was an issue), and use ansi2html to prepare the CLI output as the HTML.
This commit is contained in:
7
templates/header.html
Normal file
7
templates/header.html
Normal file
@ -0,0 +1,7 @@
|
||||
<header>
|
||||
<div class="navbar navbar-dark bg-dark shadow-sm">
|
||||
<div class="container">
|
||||
<span class="navbar-brand text-white text-decoration-none">DSpace CSV Metadata Quality Checker</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
@ -2,9 +2,9 @@
|
||||
<html lang="en" class="h-100">
|
||||
{% include 'head.html' %}
|
||||
<body class="d-flex flex-column h-100">
|
||||
{% include 'header.html' %}
|
||||
<main class="flex-shrink-0">
|
||||
<div class="container">
|
||||
<h1 class="mt-3 fs-2">DSpace CSV Metadata Quality Checker</h1>
|
||||
<div class="container py-3">
|
||||
<p class="lead">The DSpace CSV Metadata Quality Checker is a pipeline of sanity checks and automated fixes for a number of common issues in metadata files.</p>
|
||||
<p>Select a CSV file to process.</p>
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
|
@ -2,13 +2,22 @@
|
||||
<html lang="en" class="h-100">
|
||||
{% include 'head.html' %}
|
||||
<body class="d-flex flex-column h-100">
|
||||
{% include 'header.html' %}
|
||||
<main class="flex-shrink-0">
|
||||
<div class="container">
|
||||
<h1 class="mt-3 fs-2">DSpace CSV Metadata Quality Checker</h1>
|
||||
<p>Processing {{ filename }}</p>
|
||||
<h1 class="mt-3 fs-2">Results</h1>
|
||||
<p>Processing <code>{{ filename }}</code>.</p>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-10">
|
||||
<blockquote>
|
||||
{{ stdout | safe }}
|
||||
</blockquote>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include 'footer.html' %}
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user