Bug 29164

Summary: MARC21: Result page display empty Square brackets when 711 $e is filed
Product: Koha Reporter: Marion Durand <marion.durand>
Component: SearchingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: 21.05   
Hardware: PC   
OS: Linux   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: An instance of the bug

Description Marion Durand 2021-10-04 14:51:10 UTC
Created attachment 125697 [details]
An instance of the bug

In the results page of search the catalog (both in the opac and the staff interface), I notice a stage behavior for field 711.
When $e is filed koha display square bracket even when there is nothing inside ($j and $4 are empty)

Example:
711 $aMostly Mozart Festival $eOrchestra
result:
Orchestra Mostly Mozart Festival [].

behavior check on master 21.05

Test plan:
1- Be sure to use koha with MARC21
2- Find or create a record with a 711 $e field but no 711 $j and no 711 $4
3- Search the catalog for your record (be sure to have more than one result)
4- On the results page see that empty square bracket are displayed after 711 field