When LibraryName system preference was not set, the installation
of the plugin would fail with:
Firefox could not download the search plugin from: ...
Now if the pref is empty, the description 'Library catalog'
will be used instead.
To test:
- Empty your LibraryName pref
- Verify the search plugin can still be installed
(see first patch for further instructions)
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit
1e0dd6d0783a66514fc92cc0a34ca0882a5ce62f)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit
42e8c0185cf50b93789f3cfe6d4532565e084aeb)
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
(cherry picked from commit
da97436614ce8b1ddb9aa2e7f1861d1e82deea84)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
-<?xml version='1.0' encoding='utf-8' ?>
-[% USE raw %]
-[% USE Koha %]
-[% SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') %]
-[% SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') %]
+<?xml version='1.0' encoding='utf-8' ?>
+[%- USE raw -%]
+[%- USE Koha -%]
+[%- SET AdlibrisEnabled = Koha.Preference('AdlibrisCoversEnabled') -%]
+[%- SET AdlibrisURL = Koha.Preference('AdlibrisCoversURL') -%]
[% IF ( opensearchdescription ) %]
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
- <ShortName>[% LibraryNameTitle | html %]</ShortName>
+ <ShortName>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Library catalog[% END %]</ShortName>
<Description>Search the [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha library[% END %] catalog</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/x-icon">