Bug 23173: (follow-up) Allow for customisable display name
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Mon, 17 Feb 2020 12:29:19 +0000 (12:29 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 6 Apr 2020 10:04:52 +0000 (11:04 +0100)
We now allow for the service to return a name that can be specified in
the plugin config. This patch switches to using that, rather than just
the plugin name defined in the plugin's metadata hashref

Signed-off-by: Niamh Walker-Headon <Niamh.Walker-Headon@tudublin.ie>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/intranet-tmpl/prog/en/includes/ill-availability-table.inc
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt

index 3cd00e7..69e6679 100644 (file)
@@ -1,5 +1,4 @@
 <div>
-    <div>[% service.name %]</div>
     <table class="ill-availability" id="[% service.id %]">
         <thead id="[% service.id %]-header">
             <tr>
index fac382c..e2166f8 100644 (file)
                                         </div>
                                         <div class="modal-body">
                                             [% FOR service IN services %]
-                                                <h4 class="ill_availability_sourcename">[% service.plugin %]</h4>
+                                                <h4 class="ill_availability_sourcename">[% service.name %]</h4>
                                                 [% INCLUDE 'ill-availability-table.inc' service=service %]
                                             [% END %]
                                             <span id="service_id_restrict" data-service_id_restrict_plugin="ILL availability - z39.50" data-service_id_restrict_ids=""></span>
                             </div>
                         </form>
                         [% FOR service IN services %]
-                            <h4 class="ill_availability_sourcename">[% service.plugin %]</h4>
+                            <h4 class="ill_availability_sourcename">[% service.name %]</h4>
                             [% INCLUDE 'ill-availability-table.inc' service=service %]
                         [% END %]
                     </div>
index a2b0571..77fa2aa 100644 (file)
                                 </div>
                             </form>
                             [% FOR service IN services %]
-                                <h4 class="ill_availability_sourcename">[% service.plugin %]</h4>
+                                <h4 class="ill_availability_sourcename">[% service.name %]</h4>
                                 [% INCLUDE 'ill-availability-table.inc' service=service %]
                             [% END %]
                         </div>