---- Reported by katrin.fischer@bsz-bw.de 2010-05-03 09:56:52 ---- Created an attachment screenshot of authority search results in opac When searching for authorities in OPAC $a is displayed in front of topical terms in the result list. This only happens for topical terms. Personal names, uniform titles, corporate namen and genre/form terms are displayed without $a. ---- Additional Comments From katrin.fischer@bsz-bw.de 2010-05-03 10:08:56 ---- Created an attachment screenshot I just noticed that this also happens in staff. ---- Additional Comments From jwagner@ptfs.com 2010-05-03 12:59:40 ---- It's not just subfield a -- any subfield seems to show the subfield code in both OPAC and staff: Topical Term: $aPiano makers $zNew York (State) $zNew York $xHistory. --- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:27 UTC --- This bug was previously known as _bug_ 4433 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=4433 Imported an attachment (id=2099) Imported an attachment (id=2100) Actual time not defined. Setting to 0.0 Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one. CC member jwagner@ptfs.com does not have an account here The original submitter of attachment 2099 [details] is unknown. Reassigning to the person who moved it here: chris@bigballofwax.co.nz. The original submitter of attachment 2100 [details] is unknown. Reassigning to the person who moved it here: chris@bigballofwax.co.nz.
It looks like the code to remove the subfield tags was purposely commented out and replaced with an as_formatted() function in AuthoritiesMarc.pm. The code assigns value to the 'summary' variable. Currently lines 1059 and 1060 in AuthoritiesMarc.pm. # $heading .= $field->as_string('abvxyz68'); $heading .= $field->as_formatted(); I'm not sure for what purpose. Only the 150 field has been changed. as_formatted creates 'pretty' marc for printout purposes. If you remove the comment from the as_string line and comment out the as_formatted line the authorities display correctly, but I'm not sure if it breaks something else.
Created attachment 4647 [details] [review] Bug 4433: Small display problem for topical subjects This removes the subfield codes shown for topical subject authorities only. To test: - Add different authority records and at least one for a topical subject. - Use search in intranet and opac (turn on opacauthorities) to serch for your subjects. - All headings will show without the subfield codes (at least $a in front), except the topical subject. This patch removes the subfield codes for the topical headings.
Created attachment 4652 [details] [review] Signed patch
Created attachment 4653 [details] [review] Signed patch Second try ;)
Created attachment 4654 [details] [review] Signed patch Driemaal is scheepsrecht Dutch for third time lucky..
Simple change, does what it says it does. Pushed, please test