Skip to content

Commit

Permalink
add more structure and todos
Browse files Browse the repository at this point in the history
  • Loading branch information
HaSistrunk committed Jan 29, 2025
1 parent db5402e commit 688bdfe
Show file tree
Hide file tree
Showing 18 changed files with 262 additions and 27 deletions.
9 changes: 8 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ site.title }} | {{ page.title }}</title>

<!-- Vue 3 -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>

<!-- RAC style Library -->
<link rel="icon" type="image/x-icon" href="https://assets.rockarch.org/assets/img/favicon.ico">
<link rel="stylesheet" type="text/css" href="https://assets.rockarch.org/v0.13.2/main.min.css">
<link rel="stylesheet" type="text/css" href="{{ "/css/main.css" | relative_url }}">

<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="{{ "/assets/css/main.css" | relative_url }}">
</head>
2 changes: 0 additions & 2 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
<!-- Vue.js -->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
File renamed without changes.
15 changes: 15 additions & 0 deletions assets/js/api.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// TODO: Update to use a real API endpoint
const API_BASE_URL = "/data";

async function fetchPackages() {
try {
const response = await fetch(`${API_BASE_URL}/packages.json`);
if (!response.ok) throw new Error("Failed to fetch packages");
return await response.json();
} catch (error) {
console.error("Error loading packages:", error);
return [];
}
}

export { fetchPackages };
Empty file added assets/js/app.js
Empty file.
Empty file added assets/js/badge.js
Empty file.
Empty file added assets/js/summary-lists.js
Empty file.
Empty file added assets/js/tables.js
Empty file.
38 changes: 38 additions & 0 deletions data/events.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d50",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d51"
},
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d50",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d54"
},
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d51",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d55"
},
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d52",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d56"
},
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d50",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d53"
},
{
"message": "Package f78742e5-6af9-4756-a94a-6cd297406d50 was successfully validated.",
"outcome": "success",
"package_identifier": "f78742e5-6af9-4756-a94a-6cd297406d50",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d50"
}
]
130 changes: 130 additions & 0 deletions data/packages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"origin": "digitization",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d51",
"rights_statements": [
{
"copyright_status": "copyrighted",
"end_date": "2050-12-31",
"rights_basis": "copyright",
"determination_date": "2021-06-22",
"jurisdiction": "us",
"rights_granted": [],
"basis_note": "Published work of corporate authorship - copyright term 95 years from date of publication.",
"start_date": "1952-01-01"
},
{
"end_date": null,
"rights_basis": "other",
"other_basis": "donor",
"rights_granted": [
{
"end_date": null,
"act": "publish",
"granted_note": "",
"grant_restriction": "disallow",
"start_date": "1952-01-01"
}
],
"basis_note": "These materials may only be accessed in a reading room setting.",
"start_date": "2020-01-01"
}
]
},
{
"origin": "digitization",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d52",
"rights_statements": [
{
"copyright_status": "copyrighted",
"end_date": "2050-12-31",
"rights_basis": "copyright",
"determination_date": "2021-06-22",
"jurisdiction": "us",
"rights_granted": [],
"basis_note": "Published work of corporate authorship - copyright term 95 years from date of publication.",
"start_date": "1952-01-01"
},
{
"end_date": null,
"rights_basis": "other",
"other_basis": "donor",
"rights_granted": [
{
"end_date": null,
"act": "publish",
"granted_note": "",
"grant_restriction": "disallow",
"start_date": "1952-01-01"
}
],
"basis_note": "These materials may only be accessed in a reading room setting.",
"start_date": "2020-01-01"
}
]
},
{
"origin": "digitization",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d53",
"rights_statements": [
{
"copyright_status": "copyrighted",
"end_date": "2050-12-31",
"rights_basis": "copyright",
"determination_date": "2021-06-22",
"jurisdiction": "us",
"rights_granted": [],
"basis_note": "Published work of corporate authorship - copyright term 95 years from date of publication.",
"start_date": "1952-01-01"
},
{
"end_date": null,
"rights_basis": "other",
"other_basis": "donor",
"rights_granted": [
{
"end_date": null,
"act": "publish",
"granted_note": "",
"grant_restriction": "disallow",
"start_date": "1952-01-01"
}
],
"basis_note": "These materials may only be accessed in a reading room setting.",
"start_date": "2020-01-01"
}
]
},
{
"origin": "digitization",
"identifier": "f78742e5-6af9-4756-a94a-6cd297406d50",
"rights_statements": [
{
"copyright_status": "copyrighted",
"end_date": "2050-12-31",
"rights_basis": "copyright",
"determination_date": "2021-06-22",
"jurisdiction": "us",
"rights_granted": [],
"basis_note": "Published work of corporate authorship - copyright term 95 years from date of publication.",
"start_date": "1952-01-01"
},
{
"end_date": null,
"rights_basis": "other",
"other_basis": "donor",
"rights_granted": [
{
"end_date": null,
"act": "publish",
"granted_note": "",
"grant_restriction": "disallow",
"start_date": "1952-01-01"
}
],
"basis_note": "These materials may only be accessed in a reading room setting.",
"start_date": "2019-01-01"
}
]
}
]
14 changes: 14 additions & 0 deletions events/details.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "Event Details"
permalink: /events/:id
layout: default
---

<!-- TODO: Add badge with event status and associated color class -->

<!-- TODO: Add summary list with:
- package identifier
- service (application:service)
- message -->

<!-- TODO: Add "Rerun service" button -->
5 changes: 0 additions & 5 deletions events/details.md

This file was deleted.

18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "zodiac"
layout: default
---

<p>Track packages and fix errors for born digital and digitized content.</p>

<h2>Package Status</h2>


<div id="app"></div>


<!-- TODO: Insert table with columns for:
- package title (as link to packages/:id page)
- package id
- origin (i.e. Aurora)
- and package status -->
8 changes: 0 additions & 8 deletions index.md

This file was deleted.

11 changes: 11 additions & 0 deletions packages/errors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: "Package Errors"
permalink: /packages/errors/
layout: default
---

<!-- TODO: Insert table with columns for:
- package title (as link to packages/:id page)
- package id
- Service error (Error - application:service as link to error events/:id page)
- Date/time -->
5 changes: 0 additions & 5 deletions packages/errors.md

This file was deleted.

28 changes: 28 additions & 0 deletions packages/package.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
title: "{{ package.name }}"
permalink: /packages/:id
layout: default
---

<!-- TODO: Add badge with package status and associated color class -->

<h2>Details</h2>
<!-- TODO: Add summary list with:
- package identifier
- package origin
- package file path -->

<h2>External Identifiers</h2>
<!-- TODO: Add summary list with ids for:
- AS archival object
- AS accession
- Archivematica AIP UUID
- Aurora transfer
- Aurora accession -->

<h2>Package events</h2>
<!-- TODO: Add table with columns for:
- Service ("application: service" with link to events/:id page)
- Status badge (color coded)
- Date/time
- Message -->
6 changes: 0 additions & 6 deletions packages/package.md

This file was deleted.

0 comments on commit 688bdfe

Please sign in to comment.