Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
stepbystep:archi1 [2021/03/09 23:07] giancarlo |
stepbystep:archi1 [2021/05/24 18:25] (current) giancarlo |
* [[stepbystep:drupal|Drupal 9]] | * [[stepbystep:drupal|Drupal 9]] |
* [[stepbystep:archi1|Archipelago]] | * [[stepbystep:archi1|Archipelago]] |
| * [[stepbystep:maintenance|Maintenance]] |
</nav> | </nav> |
====== Archipelago ====== | ====== Archipelago ====== |
Successfully enabled: ctools_views | Successfully enabled: ctools_views |
Successfully enabled: bamboo_twig, bamboo_twig_config, bamboo_twig_file, bamboo_twig_loader, bamboo_twig_path, bamboo_twig_security, bamboo_twig_token | Successfully enabled: bamboo_twig, bamboo_twig_config, bamboo_twig_file, bamboo_twig_loader, bamboo_twig_path, bamboo_twig_security, bamboo_twig_token |
| Successfully enabled: jquery_ui_datepicker, jquery_ui |
</code> | </code> |
Browse UI at admin/config/services/jsonapi and enable JSONAPI Accept all JSON:API create, read, update, and delete operations. | Browse UI at admin/config/services/jsonapi and enable JSONAPI Accept all JSON:API create, read, update, and delete operations. |
<code bash> | <code bash> |
$ vendor/bin/drush config:export --destination=~/bckconfig | $ vendor/bin/drush config:export --destination=~/bckconfig |
| </code> |
| Make site admin member of administrator group |
| <code bash> |
| $ vendor/bin/drush urol administrator "MysiteAdministrator" |
</code> | </code> |
Then sync configurations | Then sync configurations |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/node.type.page.yml ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/node.type.page.yml ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+----------------+-----------+ | +------------+----------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/node.type.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/node.type.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------+-----------+ | +------------+-------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/media.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/media.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------+-----------+ | +------------+-------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/ds.field.field_descriptive_metadata_image.yml ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/ds.field.field_descriptive_metadata_image.yml ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------------+-----------+ | +------------+-------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/ds.field.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/ds.field.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-----------------------------+-----------+ | +------------+-----------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_mode.node.collection_listing.yml ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_mode.node.collection_listing.yml ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-----------------------------------------------+-----------+ | +------------+-----------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_mode.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_mode.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+------------------------------------------------------------------------------------+-----------+ | +------------+------------------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/block_content.type.b* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/block_content.type.b* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+------------------------------------------------+-----------+ | +------------+------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/language.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/language.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+---------------------------------------------------------------------+-----------+ | +------------+---------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_form_mode.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_form_mode.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------------------+-----------+ | +------------+-------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/comment.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/comment.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+----------------------+-----------+ | +------------+----------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/field.storage.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/field.storage.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+--------------------------------------------------+-----------+ | +------------+--------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/taxonomy.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/taxonomy.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+--------------------------------------------+-----------+ | +------------+--------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/field.field.* ~/uploadconfig_field_field/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/field.field.* ~/uploadconfig_field_field/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig_field_field | $ vendor/bin/drush config:import --partial --source=~/uploadconfig_field_field |
+------------+--------------------------------------------------------------------------+-----------+ | +------------+--------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/responsive_image.styles.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/responsive_image.styles.* ~/uploadconfig/ |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/image.style.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/image.style.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+--------------------------------+-----------+ | +------------+--------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_display.* ~/uploadconfig_view_display/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_view_display.* ~/uploadconfig_view_display/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig_view_display | $ vendor/bin/drush config:import --partial --source=~/uploadconfig_view_display |
+------------+------------------------------------------------------------------------------------------------------+-----------+ | +------------+------------------------------------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.base_field_override.node.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.base_field_override.node.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-----------------------------------------------------------------+-----------+ | +------------+-----------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/workflows.workflow.editorial.yml ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/workflows.workflow.editorial.yml ~/uploadconfig/ |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_form_display.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/core.entity_form_display.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+--------------------------------------------------------------------------------+-----------+ | +------------+--------------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/strawberryfield.strawberry_keynameprovider.* ~/uploadconfig_sbf_key/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/strawberryfield.strawberry_keynameprovider.* ~/uploadconfig_sbf_key/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig_sbf_key | $ vendor/bin/drush config:import --partial --source=~/uploadconfig_sbf_key |
+------------+----------------------------------------------------------------------------+-----------+ | +------------+----------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
[Merge Archipelago deployment config with current index] | [Merge Archipelago deployment config with current index] |
$ nano -w ~/uploadconfig_solr_index/search_api.index.drupal_content_to_solr_8.yml | $ nano -w ~/uploadconfig_solr_index/search_api.index.drupal_content_to_solr_8.yml |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig_solr_index | $ vendor/bin/drush config:import --partial --source=~/uploadconfig_solr_index |
+------------+-------------------------------------------+-----------+ | +------------+-------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/user.role.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/user.role.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------+-----------+ | +------------+-------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
[Change to current index name] | [Change to current index name] |
$ sed -i 's/default_solr_index/drupal_content_to_solr_8/g' ~/uploadconfig_views_view/* | $ sed -i 's/default_solr_index/drupal_content_to_solr_8/g' ~/uploadconfig_views_view/* |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig_views_view | $ vendor/bin/drush config:import --partial --source=~/uploadconfig_views_view |
+------------+------------------------------------------------------+-----------+ | +------------+------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
[Change to current index name] | [Change to current index name] |
$ sed -i 's/default_solr_index/drupal_content_to_solr_8/g' ~/uploadconfig/* | $ sed -i 's/default_solr_index/drupal_content_to_solr_8/g' ~/uploadconfig/* |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-----------------------------------------------------------+-----------+ | +------------+-----------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
[Merge Archipelago deployment config with current server] | [Merge Archipelago deployment config with current server] |
$ nano -w ~/uploadconfig/search_api.server.solr_dbopen.yml | $ nano -w ~/uploadconfig/search_api.server.solr_dbopen.yml |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig +------------+-------------------------------+-----------+ | $ vendor/bin/drush config:import --partial --source=~/uploadconfig +------------+-------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
+------------+-------------------------------+-----------+ | +------------+-------------------------------+-----------+ |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/search_api_solr.solr_* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/search_api_solr.solr_* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------------------------------------------------------------+-----------+ | +------------+-------------------------------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/webform* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/webform* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+---------------------------------------------------+-----------+ | +------------+---------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/format_strawberryfield.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/format_strawberryfield.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------------------------------+-----------+ | +------------+-------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/rest.resource.entity.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/rest.resource.entity.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+---------------------------------------------+-----------+ | +------------+---------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/filter.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/filter.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------+-----------+ | +------------+-------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/system.action.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/system.action.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+-------------------------------------------------------+-----------+ | +------------+-------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/strawberry* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/strawberry* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+------------------------------------------------------------------+-----------+ | +------------+------------------------------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/tour.tour.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/tour.tour.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+---------------------------------------+-----------+ | +------------+---------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/rdf.mapping.* ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/rdf.mapping.* ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+--------------------------------------------+-----------+ | +------------+--------------------------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
<code bash> | <code bash> |
$ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/codemirror_editor.settings.yml ~/uploadconfig/ | $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/codemirror_editor.settings.yml ~/uploadconfig/ |
$ vendor/bin/drush config:import --partial --source=/home/gestore/uploadconfig | $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
+------------+----------------------------+-----------+ | +------------+----------------------------+-----------+ |
| Collection | Config | Operation | | | Collection | Config | Operation | |
+------------+----------------------------+-----------+ | +------------+----------------------------+-----------+ |
$ mv ~/uploadconfig/* ~/uploaded/ | $ mv ~/uploadconfig/* ~/uploaded/ |
| </code> |
| <code bash> |
| $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/pathauto.pattern.digital_object_uuid.yml ~/uploadconfig/ |
| $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
| +------------+--------------------------------------+-----------+ |
| | Collection | Config | Operation | |
| +------------+--------------------------------------+-----------+ |
| | | pathauto.pattern.digital_object_uuid | Create | |
| +------------+--------------------------------------+-----------+ |
| $ mv ~/uploadconfig/* ~/uploaded/ |
| |
| $ mv ~/archipelago-deployment-1.0.0-RC2D9/config/sync/pathauto.settings.yml ~/uploadconfig/ |
| $ vendor/bin/drush config:import --partial --source=~/uploadconfig |
| +------------+-------------------+-----------+ |
| | Collection | Config | Operation | |
| +------------+-------------------+-----------+ |
| | | pathauto.settings | Update | |
| +------------+-------------------+-----------+ |
| $ mv ~/uploadconfig/* ~/uploaded/ |
| </code> |
| ==== Metadata Display ==== |
| Add twig based metadata display. |
| <code bash> |
| General HTML Description block |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_01.json |
| </code> |
| <code bash> |
| Linked Data Block HTML |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_02.json |
| </code> |
| <code bash> |
| IIIF 3.0 Manifest for Images and Mirador |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_03.json |
| </code> |
| <code bash> |
| Basic MODS 3.6 Caster |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_04.json |
| </code> |
| <code bash> |
| IIIF 2.1 Manifest for Images and Books |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_05.json |
| </code> |
| <code bash> |
| GeoJSON for Maps |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_06.json |
| </code> |
| <code bash> |
| A Bootstrap Carousel template from IIIF images and Views |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_07.json |
| </code> |
| <code bash> |
| General HTML Description block for Search Results |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_08.json |
| </code> |
| <code bash> |
| Basic Schema.org |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_09.json |
| </code> |
| <code bash> |
| Multiple Thumbnails via IIIF and FontAwesome |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_10.json |
| </code> |
| <code bash> |
| AMI Ingest JSON Template |
| $ curl -w "\n" --user jsonapi:jsonapi -H 'Accept: application/vnd.api+json' -H 'Content-type: application/vnd.api+json' -XPOST https://dbopen.ba.cnr.it/jsonapi/metadatadisplay_entity/metadatadisplay_entity --data-binary @/home/user/archipelago-deployment-1.0.0-RC2D9/d8content/metadatadisplay_entity_11.json |
| </code> |
| ==== Useful tools and binaries ==== |
| Info and metadata extractors |
| <code bash> |
| sudo -s apt install exiftool |
| $ exiftool -ver |
| 11.88 |
| $ which exiftool |
| /usr/bin/exiftool |
| </code> |
| <code bash> |
| sudo -s apt install poppler-utils |
| $ pdfinfo -v |
| pdfinfo version 0.86.1 |
| Copyright 2005-2020 The Poppler Developers - http://poppler.freedesktop.org |
| Copyright 1996-2011 Glyph & Cog, LLC |
| $ which pdfinfo |
| /usr/bin/pdfinfo |
| </code> |
| <code bash> |
| wget https://github.com/openpreserve/fido/archive/v1.4.1.zip |
| unzip v1.4.1.zip |
| cd fido-1.4.1/ |
| sudo python3 setup.py install |
| $ fido -v |
| FIDO v1.4.1 (formats-v96.xml, container-signature-20200121.xml, format_extensions.xml) |
| $ which fido |
| /usr/local/bin/fido |
| </code> |
| OCR tools |
| <code bash> |
| $ sudo apt install tesseract-ocr |
| $ sudo apt install tesseract-ocr-ita |
| $ tesseract -v |
| tesseract 4.1.1 |
| leptonica-1.79.0 |
| libgif 5.1.4 : libjpeg 8d (libjpeg-turbo 2.0.3) : libpng 1.6.37 : libtiff 4.1.0 : zlib 1.2.11 : libwebp 0.6.1 : libopenjp2 2.3.1 |
| Found AVX |
| Found SSE |
| Found libarchive 3.4.0 zlib/1.2.11 liblzma/5.2.4 bz2lib/1.0.8 liblz4/1.9.2 libzstd/1.4.4 |
| $ which tesseract |
| /usr/bin/tesseract |
| </code> |
| <code bash> |
| $ sudo apt install pdf2djvu |
| $ pdf2djvu --version |
| pdf2djvu 0.9.17 |
| + DjVuLibre 3.5.27 |
| + Poppler 0.86.1 |
| + GraphicsMagick++ 1.3.35 (Q16) |
| + Exiv2 0.27.2 |
| $ which pdf2djvu |
| /usr/bin/pdf2djvu |
| </code> |
| <code bash> |
| $ sudo apt install python python-lxml python3-djvu |
| $ wget http://nl.archive.ubuntu.com/ubuntu/pool/universe/p/python-djvulibre/python-djvu_0.8-3_amd64.deb |
| $ sudo dpkg -i python-djvu_0.8-3_amd64.deb |
| $ sudo apt install python-subprocess32 libdjvulibre-dev libdjvulibre21 |
| $ sudo apt install make |
| $ wget https://codeload.github.com/jwilk/ocrodjvu/zip/0.12 |
| $ unzip 0.12 |
| $ cd ocrodjvu-0.12/ |
| $ sudo make install |
| python - < lib/__init__.py # Python version check |
| sed -e "1 s@^#!.*@#!/usr/bin/python@" -e "s#^basedir = .*#basedir = '/usr/local/share/ocrodjvu/'#" ocrodjvu > ocrodjvu.tmp |
| install -d /usr/local/bin |
| install ocrodjvu.tmp /usr/local/bin/ocrodjvu |
| rm ocrodjvu.tmp |
| sed -e "1 s@^#!.*@#!/usr/bin/python@" -e "s#^basedir = .*#basedir = '/usr/local/share/ocrodjvu/'#" hocr2djvused > hocr2djvused.tmp |
| install -d /usr/local/bin |
| install hocr2djvused.tmp /usr/local/bin/hocr2djvused |
| rm hocr2djvused.tmp |
| sed -e "1 s@^#!.*@#!/usr/bin/python@" -e "s#^basedir = .*#basedir = '/usr/local/share/ocrodjvu/'#" djvu2hocr > djvu2hocr.tmp |
| install -d /usr/local/bin |
| install djvu2hocr.tmp /usr/local/bin/djvu2hocr |
| rm djvu2hocr.tmp |
| install -d /usr/local/share/ocrodjvu/lib/ |
| install -p -m644 lib//*.py /usr/local/share/ocrodjvu/lib/ |
| install -d /usr/local/share/ocrodjvu/lib/cli |
| install -p -m644 lib/cli/*.py /usr/local/share/ocrodjvu/lib/cli |
| install -d /usr/local/share/ocrodjvu/lib/engines |
| install -p -m644 lib/engines/*.py /usr/local/share/ocrodjvu/lib/engines |
| umask 022 && python -m compileall -q /usr/local/share/ocrodjvu/lib/ |
| # run "make -C doc" to build the manpages |
| |
| $ djvu2hocr --version |
| djvu2hocr 0.12 |
| + Python 2.7.18 |
| + subprocess32 |
| + python-djvulibre 0.8 |
| + lxml 4.5.0 |
| + html5lib-python 1.0.1 |
| $ which djvu2hocr |
| /usr/local/bin/djvu2hocr |
| </code> |
| Compile and install pdfalto |
| <code bash> |
| $ sudo apt-get install cmake pkg-config build-essential |
| |
| $ wget https://github.com/kermitt2/pdfalto/archive/refs/tags/0.4.zip |
| $ unzip 0.4.zip |
| $ cd pdfalto-0.4/ |
| $ ./install_deps.sh |
| $ git clone https://github.com/kermitt2/xpdf-4.03 |
| $ cmake . |
| $ make |
| $ cd .. |
| $ sudo mv pdfalto-0.4 /usr/local/src/ |
| $ sudo ln -s /usr/local/src/pdfalto-0.4/pdfalto /usr/local/bin/pdfalto |
| |
| $ pdfalto |
| pdfalto version 0.4 |
| Usage: pdfalto [options] <PDF-file> [<xml-file>] |
| -f <int> : first page to convert |
| -l <int> : last page to convert |
| -verbose : display pdf attributes |
| -noImage : do not extract Images (Bitmap and Vectorial) |
| -noImageInline : do not include images inline in the stream |
| -outline : create an outline file xml |
| -annotation : create an annotations file xml |
| -noLineNumbers : do not output line numbers added in manuscript-style textual documents |
| -readingOrder : blocks follow the reading order |
| -noText : do not extract textual objects (might be useful, but non-valid ALTO) |
| -charReadingOrderAttr : include TYPE attribute to String elements to indicate right-to-left reading order (might be useful, but non-valid ALTO) |
| -fullFontName : fonts names are not normalized |
| -nsURI <string> : add the specified namespace URI |
| -opw <string> : owner password (for encrypted files) |
| -upw <string> : user password (for encrypted files) |
| -filesLimit <int> : limit of asset files be extracted |
| -q : don't print any messages or errors |
| -v : print version info |
| -h : print usage information |
| -help : print usage information |
| --help : print usage information |
| -? : print usage information |
| </code> |
| Update pdfalto to master for an issue on namespace |
| <code bash> |
| $ git clone https://github.com/kermitt2/pdfalto.git |
| $ cd pdfalto/ |
| $ ./install_deps.sh |
| $ git clone https://github.com/kermitt2/xpdf-4.03 |
| $ cmake . |
| $ make |
| $ cd .. |
| $ sudo mv pdfalto /usr/local/src/pdfalto-0.5-SNAPSHOT |
| $ sudo rm /usr/local/bin/pdfalto |
| $ sudo ln -s /usr/local/src/pdfalto-0.5-SNAPSHOT/pdfalto /usr/local/bin/pdfalto |
| |
| $ pdfalto |
| pdfalto version 0.5 |
| Usage: pdfalto [options] <PDF-file> [<xml-file>] |
| -f <int> : first page to convert |
| -l <int> : last page to convert |
| -verbose : display pdf attributes |
| -noImage : do not extract Images (Bitmap and Vectorial) |
| -noImageInline : do not include images inline in the stream |
| -outline : create an outline file xml |
| -annotation : create an annotations file xml |
| -noLineNumbers : do not output line numbers added in manuscript-style textual documents |
| -readingOrder : blocks follow the reading order |
| -noText : do not extract textual objects (might be useful, but non-valid ALTO) |
| -charReadingOrderAttr : include TYPE attribute to String elements to indicate right-to-left reading order (might be useful, but non-valid ALTO) |
| -fullFontName : fonts names are not normalized |
| -nsURI <string> : add the specified namespace URI |
| -opw <string> : owner password (for encrypted files) |
| -upw <string> : user password (for encrypted files) |
| -filesLimit <int> : limit of asset files be extracted |
| -q : don't print any messages or errors |
| -v : print version info |
| -h : print usage information |
| -help : print usage information |
| --help : print usage information |
| -? : print usage information |
</code> | </code> |