Commit Graph

292 Commits

Author SHA1 Message Date
6216144070
util/generate-hugo-content.py: controlled vocabularies
We are planning to remove the controlled vocabularies from the CSV
files so we should not expect that this column will exist. Instead,
check if there is a controlled vocabulary in the data directory.

The controlled vocabularies were already exported once using the
util/export-controlled-vocabularies.py script so we don't actually
need them in the CSVs anymore.
2022-01-30 20:04:28 +03:00
812c9241bd
README-dev.md: start working on docs 2022-01-30 19:41:45 +03:00
362c7f8779 README-dev.md: update introduction 2022-01-30 13:29:07 +03:00
51cc63843b README-dev.md: update note about Python 2022-01-30 13:29:07 +03:00
88077ea494 Update requirements.txt
Generated with poetry:

    $ poetry export -f requirements.txt > requirements.txt

This is useful for people who don't have poetry.
2022-01-30 13:29:07 +03:00
dd6f4ee8d6 poetry.lock: run poetry update 2022-01-30 13:29:07 +03:00
fe36c5c25b util/*.py: run isort
Sorts and organizes the Python imports.
2022-01-30 13:29:07 +03:00
7488a24e34 pyproject.toml: update dependencies
Most of these are minor and would have been selected by the semant-
ic version string during `poetry install`, but I want to make sure
that they are as current as possible before I leave the project.

In the case of Pandas 1.4.0 the minimum Python version is actually
only 3.8, so let's set that as the minimum.
2022-01-30 13:29:07 +03:00
ddc7596a09 pyproject.toml: change name to iseal-core 2022-01-30 13:29:07 +03:00
2b1a1ea943 package-lock.json: run npm update
This syncs the latest dependencies as specified by evaluating the
package.json.
2022-01-30 13:29:07 +03:00
3da6569961 site/package.json: minor version bump for bootstrap
NPM semantic versioning will already select 5.1.3 due to the ^5.1.1
version string, but let's just update package.json anyways.
2022-01-30 13:29:07 +03:00
86ae899f3e site/package.json: update Hugo
Only used on local development workflows (GitHub Actions uses its
own Hugo task that always has the latest version).
2022-01-30 13:29:07 +03:00
alanorth
18c6560b58 Automated commit with site updates 2022-01-30 09:32:54 +00:00
88ba512cf1
README-dev.md: improve introduction 2022-01-30 12:31:30 +03:00
e202cbe3de
Add README-dev.md
I need to start collecting and organizing documentation for various
technical workflows here. For example:

- Adding a new schema element
- Adding a new schema extension
- Updating controlled vocabularies
- Updating the documentation site layout

Etc...
2022-01-29 17:15:51 +03:00
6a1a99fb2a README.md: begin reorganizing
This README should be low tech.
2022-01-29 17:05:26 +03:00
alanorth
275fd1d851 Automated commit with site updates 2022-01-29 13:28:27 +00:00
7876edb171
Update screenshot.png
Take a screenshot with window borders and apply a shadow.

See: https://stefanscherer.github.io/how-to-take-screenshots-with-drop-shadow/
2022-01-29 16:26:37 +03:00
alanorth
97e31887b9 Automated commit with site updates 2022-01-23 16:00:23 +00:00
0321ad3c44
data/fsc.csv: add fsc.transitionEndDate
This is the date a standard is no longer in transition.
2022-01-23 18:55:38 +03:00
261b089eaa
data/fsc.csv: update description for fsc.inTransition 2022-01-23 18:52:20 +03:00
12b9a274f8
Update requirements.txt
Generated with poetry:

    $ poetry export -f requirements.txt > requirements.txt

This is useful for people who don't have poetry and will use python
with vanilla virtual environments.
2022-01-23 18:02:59 +03:00
e81b7e98dd
poetry.lock: run poetry update 2022-01-23 18:02:33 +03:00
alanorth
92fd918081 Automated commit with site updates 2022-01-11 19:03:47 +00:00
0ebe3bd751
util/create-schema-dspace.py: update comment 2022-01-11 20:57:42 +02:00
d0093722ec
util/create-schema-dspace.py: update logic
Detect actual HTTP return codes for various situations:

- HTTP 500 means the schema or field already exists
- HTTP 415 means we are posting some invalid data
- HTTP 404 means the parent schema does not exist
2022-01-11 20:55:34 +02:00
b0ef411f62
util/create-schema-dspace.py: fix error in POST
The missing "headers=headers" was causing an HTTP 415 that took me
over an hour to fix. Sigh.
2022-01-11 20:54:19 +02:00
0fca6bbc90
util/create-schema-dspace.py: clean up output
Minor nitpick after staring at this while debugging for an hour. I
think the period at the end of these lines is ugly.
2022-01-11 20:53:55 +02:00
alanorth
a063ec6143 Automated commit with site updates 2022-01-09 08:14:12 +00:00
e20bb43e57
Add requests to Python dependencies 2022-01-09 10:12:21 +02:00
57cc35c839
Add util/create-schema-dspace.py
Script to read the ISEAL Core and FSC metadata CSVs and create the
appropriate schemas and metadata fields in a DSpace 6.x repository.
2022-01-09 10:10:00 +02:00
alanorth
f21038663e Automated commit with site updates 2022-01-07 12:28:17 +00:00
16b183f36b
site: update URLs to iseal-community 2022-01-07 14:26:50 +02:00
7ed52b703a
.github/workflows/pages.yml: quote Python version
Otherwise, in JSON, it gets interpreted as an integer (3.1).

See: https://github.com/actions/setup-python/issues/160
2022-01-06 14:02:13 +02:00
ad6d18697f
site/package.json: update Hugo version
This is only used locally, but might as well update the version just
in case.
2022-01-06 13:55:10 +02:00
d182d67d9c
site/package-lock.json: run npm update
Make sure dependencies are current so this project doesn't get too
out of date once we hand over ownership!
2022-01-06 13:52:53 +02:00
9116734205
.github/workflows/pages.yml: use Python 3.10
It's what I use locally and it's the latest supported version so it
will let this project work a bit longer as time goes on if we start
with the latest version possible.
2022-01-06 13:50:08 +02:00
46ef96c6c4
Update requirements.txt
Generated with poetry:

    $ poetry export -f requirements.txt > requirements.txt

This is useful for people who don't have poetry.
2022-01-06 13:49:46 +02:00
15089f9134
poetry.lock: run poetry update
Update Python dependencies
2022-01-06 13:48:02 +02:00
8ab9efa38e
README.md: update TODO 2022-01-06 13:02:26 +02:00
d96be74836 .github/workflows/pages.yml: only commit on main
Don't automatically commit changes to the Hugo site content unless
we are on the main branch. This is unnecessary and makes it tricky
to work on feature branches or pull requests.
2022-01-06 13:01:01 +02:00
alanorth
7363e8d70d Automated commit with site updates 2022-01-06 10:43:37 +00:00
afe0d8339c Regenerate controlled vocabularies
Now they are named using their DSpace field name. I generated them
like this:

    $ ./util/export-controlled-vocabularies.py -i data/iseal-core.csv --clean -d
    $ ./util/export-controlled-vocabularies.py -i data/fsc.csv -d
2022-01-06 12:40:20 +02:00
d629a1ab17 Add util/export-controlled-vocabularies.py
This script is only used to export the controlled vocabularies from
the schema CSV files. Eventually we will remove them from there and
it won't be needed anymore.
2022-01-06 12:40:20 +02:00
75076124a5 util/generate-hugo-content.py: use dspace field name
Now all elements have DSpace field names so we can use that as the
unique identifier for each element.
2022-01-06 12:40:20 +02:00
7431ebb6c9 data/fsc.csv: fix columns on line 36 2022-01-06 12:40:19 +02:00
Marie-Angélique Laporte
68bb87772a adding missing dspace names 2022-01-06 12:40:19 +02:00
marieALaporte
cab3851500 Automated commit with site updates 2022-01-06 12:40:19 +02:00
Marie-Angélique Laporte
16c55cc550 adding missing dspace field names 2022-01-06 12:40:10 +02:00
adamISEAL
ceac0b4ae4 Automated commit with site updates 2022-01-05 15:33:44 +00:00