No project description provided
Project description
Arches for HERs
What is Arches for HERs
Arches for HERs is a comprehensive data management platform for UK Historic Environment Records (HERs). Arches for HERs is purpose-built for HERs and any organization that conforms to the standards specified by the Forum for Information Standards in Heritage (FISH), including MIDAS Heritage.
You can find out more about Arches for HERs at https://www.archesproject.org/arches-for-hers/
How do I get started with Arches for HERs
If you are setting up a development environment then please see the Arches documentation on how to do this:
https://arches.readthedocs.io/en/latest/installing/installation/
If you are installing Arches for HERs on Windows,be sure to follow the instructions relating to the GDAL_LIBRARY_PATH detailed in the Installing Core Arches documentation.
-
Installing Arches for HERs. This step installs all Python dependencies including Arches.
-
If installing for development, clone the arches-her repo, making sure to change the default target folder to arches_her and then run the following:
pip install -e .
-
If not installing for development, simply run:
pip install arches_her
-
-
If you don't already have an Arches project, you'll need to create one by running the following:
arches-admin startproject my_project
-
Add the following to your project's settings.py file
DATATYPE_LOCATIONS.append('arches_her.datatypes') FUNCTION_LOCATIONS.append('arches_her.functions') SEARCH_COMPONENT_LOCATIONS.append('arches_her.search.components')
-
Add
arches_her
to your project'sINSTALLED_APPS
andARCHES_APPLICATIONS
settings in settings.py. Note that inINSTALLED_APPS
,arches_her
must be listed before your project:INSTALLED_APPS = ( "webpack_loader", "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.messages", "django.contrib.staticfiles", "django.contrib.gis", "arches", "arches.app.models", "arches.management", "guardian", "captcha", "revproxy", "corsheaders", "oauth2_provider", "django_celery_results", "compressor", "arches_her", "my_project", ) ARCHES_APPLICATIONS = ("arches_her",)
-
If developing Arches for HERs, you'll need to add the HER_ROOT setting which indicates where on your file system your arches_her repository is located. You'll need to ajust the path according to where you have cloned the arches_her repo:
HER_ROOT = os.path.join(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()) + '../../../')), 'arches-her', 'arches_her')
-
Next update your project's urls.py file to include the Arches for HERs urls like so:
urlpatterns = [ path("", include("arches.urls")), path("", include("arches_her.urls")), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
-
Add
arches_her
as a dependency in your project'spackage.json
file:"dependencies": { "arches": "archesproject/arches#stable/7.5.4", "arches_her": "archesproject/arches_her#dev/1.0.x" },
-
Set up your database and load the package with the following command:
python manage.py packages -o load_package -a arches_her -db -y
-
Start the Arches for HERs project
python manage.py runserver
-
Install and build front-end dependencies
Before you can use browse the application you will need to build the front end asset bundle. From the directory containing the package.json file ([workspace]/arches_her/arches_her)
yarn install yarn build_development
This will allow you to run your Arches project locally, but is not suitable for running on a web server. Please see the guidance for deploying an Arches project like Arches for HERs into a server environment.
https://arches.readthedocs.io/en/latest/deployment/
Running Arches for HERs in a Docker Development Environment
You can also run Arches in a Docker development environment. To do this, pull the arches
repo and use the two compose files docker-compose-dependencies.yml
and docker-compose.yml
.
-
Clone both the
arches
andarches-her
repository:/workspace $ git clone https://github.com/archesproject/arches.git /workspace $ git clone https://github.com/archesproject/arches-her.git arches_her
Ensure the
arches
repo hasdev/7.5.x
checked-out. -
Navigate to the folder where the compose files exist, then compose up:
/workspace $ cd arches_her/docker/arches_her /workspace/arches_her/docker/arches_her $ docker compose -f docker-compose-dependencies.yml up -d /workspace/arches_her/docker/arches_her $ docker compose -f docker-compose.yml up -d
The first time you compose up - the database, Elastic indices and package data will get created and loaded. Be patient. Once complete, navigate to
http://localhost:8002
.
When finished, compose down:
docker compose -f docker-compose.yml down
docker compose -f docker-compose-dependencies.yml down
How Do I Configure Arches for HERs
Administrators of an instance of Arches for HERs should configure their implementation having installed the out-of-the-box version. Ways in which you can configure and customise an instance include:
- The homepage provided (
arches_her/arches_her/templates/index.htm
) is a template that requires modification to suit the implementation. This should include branding, images, and replacing the highlighted content with appropriate information. A bespoke homepage can be created by replacing the contents ofindex.htm
. - Configuring functions against specific graphs. The initial installation of Arches for HERs includes the following functions:
- BNG Point to GeoJSON function
- GeoJSON to BNG Point function
- Consultation Status function
- Branding emails sent by the application
- Setting Accessibility mode to be on
- Configuring basemaps available in your Arches for HERs instance (using the instructions in the Core Arches Documentation).
❗️ Please note: you will need to configure a MapBox key in the user interface for the default mapping to appear, as per the Default Map Settings Core Arches documentation.
Working with Letter Templates
Field tag replacement in the templates can easily break if styling changes occur within the Word documents. The internal “style runs” provide rich formatting for the letters, but if a style partially touches a field tag (a field name surrounded by angle brackets), the field tag is physically split across several style runs. When this happens, it is no longer possible for the field to be substituted with its data value.
It is good practice to run the docx management command after working on the letter templates and before committing to source control. The full command is:
python manage.py docx fix_style_runs --dest_dir docx
The --dest_dir
parameter is optional and defaults to the docx
folder.
The Word files in the destination folder are processed in turn, and the command looks for pairs of angle brackets that may span multiple style runs. When this happens, they are joined together, thus restoring the full field tag.
Guidance Documentation
A number of guidance documents are available in arches_her/media/guides
that can be used to help users understand how to use the system. These documents are in PDF format and can be linked to within your implementation if you do not have your own help documentation.
An example of how to include them within your implementation can be found in the index.htm template, which includes a link to the introduction guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file arches_her-1.0.0a1.tar.gz
.
File metadata
- Download URL: arches_her-1.0.0a1.tar.gz
- Upload date:
- Size: 40.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 574d9580adecf02c5cbb69e41ecc8316f83877d1fe1ad3b6f84e067fbfeec830 |
|
MD5 | e17e0a4abf67bf21ae77009518107dda |
|
BLAKE2b-256 | 6ac95e30095bcd1331b762e7e7d6f68ad63f070089f7f383902688d5293bc0eb |