@@ -, +, @@
search result list [Staff]
- On your dev setup (master) create some authority records (i created personal name authorities).
- Pick one of them and link 400$a to another one, do the same with 500$a
- Make sure zebra is running and changes got indexed.
- In the staff interface search for the authority that is linked to the others.
- Check the 'see also:' link points to an authority search
- Apply the patch
- Reload/re-do the search
- Check the 'see also:' link points to the authority id.
- Check that the authority search from the cataloguing interface still works as usual.
---
.../en/includes/authorities-search-results.inc | 107 ++++++++++++--------
.../en/modules/authorities/searchresultlist.tt | 5 +-
2 files changed, 70 insertions(+), 42 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc
@@ -11,69 +11,93 @@
RT: [% heading | html %]
[% END %]
[% ELSE %]
- [% IF ( label ) %][% label | html %][% END %]
+
+ [% IF ( type=='seefrom' ) %]
+ used for/see from:
+ [% ELSIF ( type=='seealso' ) %]
+ see also:
+ [% END %]
+
- [% IF ( linkpath && search ) %][% heading | html %]
- [% ELSE %][% heading | html %][% END %]
+ [% IF ( linkpath && search ) %]
+ [% heading | html %]
+ [% ELSE %]
+ [% heading | html %]
+ [% END %]
- [% UNLESS ( type=='seefrom' || type=='seealso' ) %][% SWITCH type %]
- [% CASE 'earlier' %](Earlier heading)
- [% CASE 'later' %](Later heading)
- [% CASE 'acronym' %](Acronym)
- [% CASE 'musical' %](Musical composition)
- [% CASE 'broader' %](Broader heading)
- [% CASE 'narrower' %](Narrower heading)
- [% CASE 'parent' %](Immediate parent body)
- [% CASE %][% IF type %]([% type | html %])[% END %]
- [% END %][% END %]
+ [% UNLESS ( type=='seefrom' || type=='seealso' ) %]
+
+ [% SWITCH type %]
+ [% CASE 'earlier' %](Earlier heading)
+ [% CASE 'later' %](Later heading)
+ [% CASE 'acronym' %](Acronym)
+ [% CASE 'musical' %](Musical composition)
+ [% CASE 'broader' %](Broader heading)
+ [% CASE 'narrower' %](Narrower heading)
+ [% CASE 'parent' %](Immediate parent body)
+ [% CASE %][% IF type %]([% type | html %])
+ [% END %]
+ [% END %]
+
+ [% END %]
[% END %]
[% END %]
[% BLOCK authresult %]
[% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
[% UNLESS ( summary.summaryonly ) %]
- [% FOREACH authorize IN summary.authorized %]
- [% authorize.heading | html %]
- [% END %]
+ [% FOREACH authorize IN summary.authorized %]
+ [% authorize.heading | html %]
+ [% END %]
[% IF ( marcflavour == 'UNIMARC' ) %]
- [% IF summary.notes %]
-
- [% FOREACH note IN summary.notes %]
- [% note.note | html %]
- [% END %]
-
- [% END %]
- [% IF summary.seealso %]
-
- [% FOREACH see IN summary.seealso %]
- [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
- [% IF ! loop.last %] ; [% END %]
+ [% IF summary.notes %]
+
+ [% FOREACH note IN summary.notes %]
+ [% note.note | html %]
+ [% END %]
+
[% END %]
-
- [% END %]
- [% IF summary.otherscript %]
-
- [% FOREACH other IN summary.otherscript %]
- [% PROCESS language lang=other.lang | trim %]:
- [% other.term %]
- [% IF ! loop.last %] ; [% END %]
+ [% IF summary.seealso %]
+
+ [% FOREACH see IN summary.seealso %]
+ [% PROCESS showreference heading=see.heading label="" type=see.type search='' %]
+ [% IF ! loop.last %] ; [% END %]
+ [% END %]
+
+ [% END %]
+ [% IF summary.otherscript %]
+
+ [% FOREACH other IN summary.otherscript %]
+ [% PROCESS language lang=other.lang | trim %]:
+ [% other.term %]
+ [% IF ! loop.last %] ; [% END %]
+ [% END %]
+
[% END %]
-
- [% END %]
-
[% ELSE %]
[% IF ( summary.seefrom ) %]
[% FOREACH seefro IN summary.seefrom %]
- [% PROCESS showreference heading=seefro.heading label="used for/see from:" type=seefro.type search='' %]
+ [% PROCESS showreference
+ heading=seefro.heading
+ type=seefro.type
+ search=''
+ authid=seefro.authid
+ %]
[% END %]
[% END %]
[% IF ( summary.seealso ) %]
[% FOREACH seeals IN summary.seealso %]
- [% PROCESS showreference heading=seeals.heading label="see also:" type=seeals.type linkpath=link search=seeals.search %]
+ [% PROCESS showreference
+ heading=seeals.heading
+ type=seeals.type
+ linkpath=link
+ search=seeals.search
+ authid=seeals.authid
+ %]
[% END %]
[% END %]
@@ -90,3 +114,4 @@
[% CASE %][% lang %]
[% END %]
[% END %]
+
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist.tt
@@ -75,7 +75,10 @@ function searchauthority() {
[% ELSE %]
[% END %]
- [% PROCESS authresult summary=resul.summary link="/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=any&operator=contains&orderby=HeadingAsc&value=" %] |
+ [% PROCESS authresult
+ summary=resul.summary
+ link="/cgi-bin/koha/authorities/detail.pl?authid="
+ %] |
Details |
[% UNLESS ( resul.isEDITORS ) %]
--
|