This procedure will create a folder called 'atom' into your current directory.
-
Clone the client repo:
git clone git@gitlab.artefactual.com:clients/site/atom.git
-
cd
into the atom folder:
import argparse | |
import re | |
def process_file(input_file_path, output_file_path): | |
try: | |
# Open the input file for reading | |
with open(input_file_path, 'r') as input_file: | |
# Read all lines from the input file | |
lines = input_file.readlines() |
upstream atom { | |
server unix:/run/php7.4-fpm.atom.sock; | |
} | |
server { | |
listen 80; | |
root /usr/share/nginx/atom; | |
# http://wiki.nginx.org/HttpCoreModule#server_name |
<?php | |
// VERSION: 0.5.0 | |
// | |
// The intent of this script is to output a quoted CSV report | |
// containing all entities of a given type from an AtoM database. | |
// | |
// Information object export: | |
// - Columns included: io.title, io.identifier, slug, io.id. | |
// - report sorted by Identifier | |
// - Digital objects are excluded |
<?php | |
// VERSION: 0.1.0 | |
// | |
// This script will delete all digital object linked rights from AtoM. | |
// | |
// Command: php symfony tools:run <full_path_to_this_file> | |
$sql = 'select rights.id, object.class_name, slug.slug, ioslug.slug as ios from rights | |
inner join relation on relation.object_id = rights.id | |
inner join object on object.id = relation.subject_id |
Purple Haze software notes | |
========================== | |
Some next steps to get moving on for the software: | |
1) Integrate PID logic/drivebase logic so it is used when driving | |
2) Work on CLP classes. I've added some notes and pseudocode below - this is just some ideas I had as to | |
how to structure it. Do not feel compelled to stick with this if you think of a better way of organizing things! |
<?php | |
// VERSION: 0.1 | |
// | |
// This script can be used to get an AtoM slug value from an object ID. | |
// | |
// Command: php symfony tools:run <full_path_to_this_file> | |
// Set this ID value to the value you want to look up then save the file | |
// and run as above command. |
<?php | |
// VERSION: 0.1 | |
// | |
// This script can be used to fix the CLI ES indexing task | |
// 'search:populate' count mismatch: | |
// | |
// [InformationObject] inserted (187.31s) (8999/9012) | |
// [InformationObject] inserted (187.32s) (9000/9012) | |
// [InformationObject] inserted (187.33s) (9001/9012) | |
// [InformationObject] inserted (187.34s) (9002/9012) |
<?php | |
// VERSION: 0.5 | |
// | |
// This script can be used to fix the CLI ES indexing task | |
// 'search:populate' errors: | |
// | |
// The following errors have been encountered: | |
// Couldn't find information object (id: 27964) | |
// Couldn't find information object (id: 28029) | |
// Couldn't find information object (id: 28087) |
<?php | |
// VERSION: 0.10 | |
// Delete actors that are not users or repos and: | |
// - are not linked via the events table - e.g. not a creator | |
// | |
// This script can be used to DELETE authority records. | |
// | |
// It will output a list of slugs that the script | |
// will delete. This is great for testing! The slug can be | |
// appended to your base URL to look at the Actor in question. e.g. |