diff --git a/deploy_checkit_tiff/add_dnx_mappings/README.txt b/deploy_checkit_tiff/add_dnx_mappings/README.txt index 727168fba4eb84ef389e656a6e61a1e23d064b36..5292ae7898b006ae17bccf5e785736116da577f0 100644 --- a/deploy_checkit_tiff/add_dnx_mappings/README.txt +++ b/deploy_checkit_tiff/add_dnx_mappings/README.txt @@ -1,43 +1,28 @@ -How to build checkit-tiff variants for Redhat system used by Rosetta -==================================================================== +How to automatically add Mappings between extracted Technical Metadata and DNX Significant Properties in Rosetta +================================================================================================================ :lang: en :encoding: utf-8 -:author: Andreas Romeyke +:author: Jörg Sachse == Prerequisites -* you need 'docker' -* If using Debian buster or higher, you must(!) add "vsyscall=emulate" option -to the Linux kernel boot option, because CentOS 6.xx triggers syscalls in an -outdated way. +* Desktop environment +* Perl +* Perl module (download at https://metacpan.org/pod/Selenium::Remote::Driver) +** install using "cpanm Selenium::Remote::Driver" +* Chrome browser (downlaod at https://www.google.com/intl/de_de/chrome/) +* Selenium browser driver driver for the Chrome version that is installed on the system (download at https://sites.google.com/a/chromium.org/chromedriver/, via https://www.seleniumhq.org/download/) == How to build -# If something was built, delete all containers for specific image: -docker ps -a | awk '{ print $1,$2 }' | grep checkit-tiff | awk '{print $1 }' | xargs -I {} docker rm {} +* You don't have to do anything, just run the script. -# build stuff -docker build -t checkit-tiff --rm=true ./ - -== find out which image - -docker images - -lists: -REPOSITORY TAG IMAGE ID CREATED SIZE -checkit-tiff latest acc13d4a83d9 3 minutes ago 827 MB # <==== that's it! -<none> <none> e3be26e603f0 5 minutes ago 824 MB -centos 6.10 0cd976dc0a98 10 months ago 195 MB - - -== How to copy already built binaries - -id=$(docker create checkit-tiff) - -docker cp $id:/tmp/checkit_tiff_current.tgz ./ -docker cp $id:/tmp/checkit_tiff_upcoming.tgz ./ - -docker rm -v $id +== How to run +* general invocation +** $# perl -I path/to/perl/modules .add_dnx_mappings.pl "Rosetta-Host.Domain.tld" "Rosetta-User" "Rosetta-Password" "Institution-Name" ":Portnumber" + +* example invocation: +** $# perl -I ~/perl5/lib/perl5 ./add_dnx_mappings.pl "sdvrosetta-test.slub-dresden.de" "su-user" "Sw0rdF!$h" "SLUB" ":1801" diff --git a/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl b/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl index 264fb11a76e08d896a7ed03875ed7ca1a1ffa7be..26c725da052cc2756d26a18b9b290d9858054f1c 100644 --- a/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl +++ b/deploy_checkit_tiff/add_dnx_mappings/add_dnx_mappings.pl @@ -108,8 +108,9 @@ sub logout { sub _change_to_xxx_format_library { $driver->get("http://$host${ui_port}/mng/action/menus.do?first_time_key=com.exlibris.dps.wrk.general.menu"); - $driver->find_element("Quick Launch", "link")->click; - $driver->find_element("Administer the system", "link")->click; + #$driver->find_element("Quick Launch", "link")->click; + # $driver->find_element("Administer the system", "link")->click; + $driver->find_element("//a[\@title='Administer the system']", "xpath")->click; #~ $driver->find_element("General", "link")->click; # Fix for Rosetta 5.5+ $driver->find_element("General Parameters", "link")->click; $driver->find_element("undefined_button", "id")->click;