Bug 22210: Mana config - Replace firstname and lastname with name
authorAlex Arnaud <alex.arnaud@biblibre.com>
Thu, 16 May 2019 16:07:12 +0000 (18:07 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 12 Jul 2019 13:11:03 +0000 (15:11 +0200)
commit1b356ede1b159144d982aa4c130924cdd7141fcc
tree5a2fd20528f93b3ef6ee4a8c8a7fef9d6aabc576
parent83fa9ec6c1096548266017e13cfd89931628f73d
Bug 22210: Mana config - Replace firstname and lastname with name

I've applied a patch on Mana test server. If you want to
test with your own Mana instance, do the folowing:
  - checkout bug/22210 branch from
    http://git.biblibre.com/biblibre/koha-mana.git
  - run these sql queries on Mana database (we need an update DB method
    i think):
    - ALTER TABLE librarian ADD COLUMN name VARCHAR(50) AFTER email
    - UPDATE librarian SET name = (SELECT CONCAT(firstname, ' ',
      lastname))
    - ALTER TABLE librarian DROP COLUMN firstname
    - ALTER TABLE librarian DROP COLUMN lastname

Test plan
  - set mana_config to "https://mana-test.koha-community.org",
  - go to admin > Share content with Mana KB,
  - set "Use Mana KB for sharing content" to yes,
  - save,
  - in the 2nd fieldset, enter a name and email,
  - click on send to Mana KB,
  - check that you got a token,
  - you should receive an email (Mana KB registration)
  - check the name is correct

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit a7513c0dc69f3a9bff55c77495389cb73be50965)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
admin/share_content.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt