Bug 25443: Improve translation of 'Select the record to link%s to'
authorKatrin Fischer <katrin.fischer.83@web.de>
Sun, 24 May 2020 00:04:03 +0000 (02:04 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 24 Jul 2020 20:24:13 +0000 (20:24 +0000)
commitf7b93ef9c54bd1ce662ff7147f958a6fa73369a2
treecbbb785e949f3c0b58df6b4cf72b1b97b3fb781a
parent33cb7a9d0b78fc69b97b687a39170473d662aeee
Bug 25443: Improve translation of 'Select the record to link%s to'

Before this patch the title was set in italic, which caused the
translation string to be cut off. Removing the italic formatting in
favor of quotes and splitting the string into 2 sentences (dealing
with title existing and not existing:

Select the host record to link to '[% bibliotitle | html %]'
Select the host record to link

To test:
- Activate EasyAnalyticalRecords system preference
- Search for a record in staff
- Use Edit > Link to host record
- Verify the text is shown as above with the reord's title
- The second case is a bit theoretical:
- Delete 245$a from the record or empty out biblio.title using SQL
- Verify the string still shows but without the 'to...' part.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d53b58cab858f06be7f9762b16b89c8bfbce5625)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/linkitem.tt