stepbystep:archi1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stepbystep:archi1 [2021/03/10 20:45]
giancarlo [Useful tools and binaries]
stepbystep:archi1 [2021/05/24 18:25] (current)
giancarlo
Line 7: Line 7:
   * [[stepbystep:drupal|Drupal 9]]   * [[stepbystep:drupal|Drupal 9]]
   * [[stepbystep:archi1|Archipelago]]   * [[stepbystep:archi1|Archipelago]]
 +  * [[stepbystep:maintenance|Maintenance]]
 </nav> </nav>
 ====== Archipelago ====== ====== Archipelago ======
Line 31: Line 32:
 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.
Line 127: Line 129:
 <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
Line 978: Line 984:
 |            | codemirror_editor.settings | Update    | |            | codemirror_editor.settings | Update    |
 +------------+----------------------------+-----------+ +------------+----------------------------+-----------+
 +$ 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/ $ mv ~/uploadconfig/* ~/uploaded/
 </code> </code>
Line 1120: Line 1145:
 $ which djvu2hocr $ which djvu2hocr
 /usr/local/bin/djvu2hocr /usr/local/bin/djvu2hocr
-</code+</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>
  • stepbystep/archi1.1615405548.txt.gz
  • Last modified: 2021/03/10 20:45
  • by giancarlo