Bug 20239: Fix spelling on authority linker plugin
authorOwen Leonard <oleonard@myacpl.org>
Wed, 21 Feb 2018 17:59:49 +0000 (17:59 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 23 Feb 2018 13:57:04 +0000 (10:57 -0300)
This patch corrects the capitalization of the "Choose" link in the
pop-up window for selecting an authority record to link to a MARC field.

This patch also converts the link, and the "Edit authority" link, to
Bootstrap buttons.

To test:
- Create a new record
- Go to the 100 field
- Click on plugin link behind $a
- Look for an existing authoriy in your system
- In the table of search results, confirm that the "Choose" and "Edit
  authority" links look correct and work correctly.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt

index fd2e92b..a73759f 100644 (file)
@@ -73,15 +73,15 @@ function doauth(authid, index, repet)
                         <td>[% PROCESS authresult summary=resul.summary %]</td>
                         <td>[% resul.used %] times</td>
                         <td>
-                          [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
-                            [% FOREACH authorized IN resul.summary.authorized %]
-                            <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
-                            [% END %]
+                            [% IF resul.summary && resul.summary.authorized && resul.summary.authorized.size > 1 %]
+                                [% FOREACH authorized IN resul.summary.authorized %]
+                                    <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '[% loop.count %]')" title="[% authorized.heading | html %]">[% loop.count %]</a>
+                                [% END %]
                           [% ELSE %]
-                            <a href="javascript:doauth('[% resul.authid %]', '[% index %]', '')">choose</a>
+                                <a class="btn btn-xs btn-default" href="javascript:doauth('[% resul.authid %]', '[% index %]', '')"><i class="fa fa-plus"></i> Choose</a>
                           [% END %]
                         </td>
-                        <td><a href="authorities.pl?authid=[% resul.authid %]">Edit authority</a></td>
+                        <td><a class="btn btn-xs btn-default" href="authorities.pl?authid=[% resul.authid %]"><i class="fa fa-pencil"></i> Edit authority</a></td>
                     </tr>
                 [% END %]
             </table>