Bugzilla – Attachment 134916 Details for
Bug 30740
Link to authorities 'used in' should not use equal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30740: Link to authorities 'used in' should not use equal
Bug-30740-Link-to-authorities-used-in-should-not-u.patch (text/plain), 3.81 KB, created by
Fridolin Somers
on 2022-05-12 07:26:24 UTC
(
hide
)
Description:
Bug 30740: Link to authorities 'used in' should not use equal
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-05-12 07:26:24 UTC
Size:
3.81 KB
patch
obsolete
>From ccd2d03c0523428e833ef79f81ef6ea551389c32 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 11 May 2022 21:23:58 -1000 >Subject: [PATCH] Bug 30740: Link to authorities 'used in' should not use equal > >When showing an authority, there is a link to search biblio records it is used in. >Actually this link uses 'q=an=$auth_id', this is wrong for an URL, and other places use 'idx:value'. >It does not break search with Zebra nor Elasticsearch but it is better to use ':' > >Test plan : >Check changed links return same results with and without patch >--- > .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- > .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >index 2954c8d934..327607ca0d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt >@@ -354,7 +354,7 @@ > </div> <!-- /#toolbar --> > <div id="action"> > [% IF count %] >- Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an=[% authid | uri %]">[% count | html %] record(s)</a> >+ Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a> > [% ELSE %] > This authority is not used in any records. > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >index b753722ee3..5fbdf70b15 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt >@@ -62,7 +62,7 @@ > > <div id="action"> > [% IF count %] >- Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an=[% authid | uri %]">[% count | html %] record(s)</a> >+ Used in <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&q=an:[% authid | uri %]">[% count | html %] record(s)</a> > [% ELSE %] > This authority is not used in any records. > [% END %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >index 9c0623c95f..27e000e504 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >@@ -112,7 +112,7 @@ > [% UNLESS ( resul.isEDITORS ) %] > <td> > [% IF resul.used > 0 %] >- <a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an=[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a> >+ <a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an:[% resul.authid | uri %]">[% resul.used | html %] [% tn('record', 'records', resul.used ) | html %]</a> > [% ELSE %] > 0 records > [% END %] >-- >2.35.3
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30740
:
134916
|
134938
|
134945