Projecte

General

Perfil

Accions

Invenio 1.1.6

Millores respecte a la 1.1.2

De moment, els enllaços a la sempre críptica documentació oficial:

El meu resum seria que consisteix en petites millores i correccions en:

  • Préstec
  • Càrregues de registres
  • Recol·lecció i exportació OAI
  • Cerques
  • Seguretat
  • Gestió de la memòria
  • Adjunts als comentaris
  • Cistells
  • Les URLs arrosseguen sempre el paràmetre de llengua

Llevat d'aquest darrer cas, segurament no hi ha res que afecti a la majoria dels usuaris.

Procediments d'actualtizació des de la 1.1.2

Vegeu la tasca #3766.

Primer, unificar les diferències entre els tres Invenios a producció. Si hi ha alguna diferència local, utilitzem el nom de la base de dades com a variable que els distingeix.

Un cop unificades, a proves, anirem fent del més senzill al més complicat: IFMuC, Traces i DDD.

~/invenio$ git gc
~/invenio$ for dir in bin etc lib share .git; do tar cvfz $dir.tar.gz $dir; rsync -av --delete ddd@ddd:~/invenio/$dir/* $dir/; done
~/invenio$ q new migration-1.1.6-init
~/invenio$ jmacs etc/apache/invenio-apache-vhost.conf
~/invenio$ jmacs etc/apache/invenio-apache-vhost-ssl.conf
~/invenio$ jmacs etc/invenio-local.conf
~/invenio$ time inveniocfg --update-all
~/invenio$ q refresh --diffstat
~/invenio$ q files

~/invenio$ git checkout -b invenio-1.1.6
Switched to a new branch 'invenio-1.1.6'
traces@nuix:~/invenio$ git branch
  * invenio-1.1.6
    master
~/invenio$ guilt top
  Branch invenio-1.0.1 is not initialized, try guilt init
~/invenio$ guilt init
~/invenio$ q new make-install.patch

$ bibsched stop

wget http://invenio-software.org/download/invenio-1.1.6.tar.gz
wget http://invenio-software.org/download/invenio-1.1.6.tar.gz.md5
md5sum -c invenio-1.1.6.tar.gz.md5
cd invenio-1.1.6
sh ~/invenio/etc/build/config.nice
make
make check-upgrade

ifmuc@taltabull:~/migracio$ rsync -av ifmuc@ifmuc:/var/backups/mysql/ifmuc-dbdump-2016-10-18_03\\\:30\\\:02.sql.gz .
receiving incremental file list
zcat ifmuc-dbdump-2016-10-18_03\:30\:02.sql.gz | sed 's|http://ifmuc.uab.cat|http://ifmuc-test.uab.cat:2000|g; s|https://ifmuc.uab.cat|https:ifmuc.uab.cat|https://ifmuc-test.uab.cat|g' | gzip -9 >ifmuc-test.sql.gz

# Afegir, pel DDD:

time zcat ddd-test.sql.gz | sed 's|http://ddd-test.uab.cat:2000/pub/|http://ddd.uab.cat/pub/|g; s|http://ddd-test.uab.cat:2000/uab/|http://ddd.uab.cat/uab/|g; s|http://ddd-test.uab.cat:2000/rev/|http://ddd.uab.cat/rev/|g' | dbexec; date

$ bibsched stop

ifmuc@taltabull:~/migracio$ time zcat ifmuc-test.sql.gz | dbexec; date

mkdir ~/patches/
-~/invenio$ localpatches.py --upstream-dir ~/download/invenio/invenio-1.1.2/ --install-dir ~/invenio/ --output-dir ~/patches/ifmuc-1.1.2
-cd ~/patches/ifmuc-1.1.2
-sed -i 's|/home/ifmuc/invenio||' *.patch
+~/patches$ cp -piv ~ifmuc/invenio/.git/patches/guilt/invenio-1.1.6/*.patch
-

cd ..
tar cvfz invenio-pre-install-1.1.16.tar.gz invenio/bin invenio/lib invenio/etc invenio/bin invenio/lib invenio/share

$ bibsched stop

~/download/invenio/invenio-1.1.6$ make check-upgrade
~/download/invenio/invenio-1.1.6$ make install
~/invenio/bin/inveniocfg --update-all
~/invenio/bin/inveniocfg --upgrade

Afegir a ~/invenio/lib/python/invenio/inveniocfg_upgrader.py

-   stopped = is_manual and is_0_running
+   stopped = True

$ ~/invenio/bin/inveniocfg --upgrade
>>> Following upgrade(s) will be applied:
>>>  * invenio_2013_09_10_new_param_websubmit_function (New 'prefix', 'suffix', 'button_label', 'button_prefix' and 'dates_conversion' parame\
ters for Create_Modify_Interface WebSubmit function)
>>>  * invenio_2013_11_12_new_param_websubmit_function (New 'deferRelatedFormatsCreation' parameter for Create_Upload_Files_Interface WebSubm\
it function)
>>>  * invenio_2013_10_25_new_param_websubmit_function (New 'directRelationshipMARC', 'reverseRelationshipMARC' and 'bibuploadMode', paramete\
rs for Link_Records WebSubmit function)
>>> Running pre-upgrade checks...
>>> pre_check_bibsched: Checking bibsched process...
>>> Calculating estimated upgrade time...

********************************************************************
** WARNING: You are going to upgrade your installation (estimated **
** time: less than 1 minute)!                                     **
********************************************************************

Please confirm by typing 'Yes, I know!': Yes, I know!
>>> Applying invenio_2013_09_10_new_param_websubmit_function (New 'prefix', 'suffix', 'button_label', 'button_prefix' and 'dates_conversion' \
parameters for Create_Modify_Interface WebSubmit function)
>>> Applying invenio_2013_11_12_new_param_websubmit_function (New 'deferRelatedFormatsCreation' parameter for Create_Upload_Files_Interface W\
ebSubmit function)
>>> Applying invenio_2013_10_25_new_param_websubmit_function (New 'directRelationshipMARC', 'reverseRelationshipMARC' and 'bibuploadMode', pa\
rameters for Link_Records WebSubmit function)
>>> Running post-upgrade checks...
>>> post_check_bibsched: Remember to start bibsched again:
/home/ifmuc/invenio/bin/bibsched start
>>> Upgrade completed successfully.

~/invenio$ q refr
Patch make-install refreshed

-~/invenio$ for file in ~/patches/ifmuc-1.1.2/*.patch; do echo $file && q import $file; done
+~/invenio$ for file in ~ifmuc/invenio/.git/patches/guilt/invenio-1.1.6/*.patch; do echo $file && q import $file; done

~/invenio$ q push -a
Applying patch..webuser.patch
Patch applied.
Applying patch..websubmit_templates.patch
Patch applied.
Applying patch..websubmit_file_converter.patch
Patch applied.
[...]

# webcoll

Com comprovar que tots els patchs de versions anteriors s'han aplicat

~/invenio$ patches=$(ls .git/patches/invenio-1.1.2/*.patch)
~/invenio$ for patch in $patches; do echo && echo $patch && patch -p1 --forward --dry-run <$patch; done >~/tmp/unapplied-patches.log

Actualitzat per Ferran Jorba fa més de 9 anys · 11 revisions