Summary: | OPACAuthorIdentifiersAndInformation shows empty list elements for unknown 024$2 | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | OPAC | Assignee: | Owen Leonard <oleonard> |
Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | ||
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
GIT URL: | Change sponsored?: | --- | |
Patch complexity: | Trivial patch | Documentation contact: | |
Documentation submission: | Text to go in the release notes: | ||
Version(s) released in: | Circulation function: | ||
Attachments: |
Bug 40590: Prevent OPACAuthorIdentifiersAndInformation from showing empty list elements for unknown 024$2
Bug 40590: Prevent OPACAuthorIdentifiersAndInformation from showing empty list elements for unknown 024$2 |
Description
Katrin Fischer
2025-08-04 16:43:04 UTC
To test: - Have a record with at least 2 persons (100, 700) linked to an authority record - Have one authority record without any 024 - Have 2 024 in the other authority: 024 $a someidyoumakeup $2orcid 024 $a someidyoumakeup $2somethingelse - Check the detail page in OPAC > author links tab - Check the authority detail page in OPAC, right top side The $2somethingelse is not "supported" and should create the empty list element. Created attachment 185134 [details] [review] Bug 40590: Prevent OPACAuthorIdentifiersAndInformation from showing empty list elements for unknown 024$2 This patch modifies the template which is used to display additional author information if OPACAuthorIdentifiersAndInformation is displayed. The change prevents an empty list item from appearing. To test, apply the patch and go to system preferences in the staff interface. - Search for OPACAuthorIdentifiersAndInformation and make sure that "Identifiers (024$2$a)" is checked. - Have a record with at least 2 persons (100, 700) linked to an authority record - One of those authority records should not have an 024 tag - The other authority record should have two 024 tags: - 024 $a someidyoumakeup $2orcid - 024 $a someidyoumakeup $2somethingelse - Check the detail page in OPAC -> "Author information" tab - Check the authority detail page in OPAC, under "Author information" in the right-hand column. Before the patch, '$2somethingelse' is not "supported" and will create the empty list element. After the patch there should be no empty list item. Sponsored-by: Athens County Public Libraries Thanks a lot, Owen! Created attachment 185286 [details] [review] Bug 40590: Prevent OPACAuthorIdentifiersAndInformation from showing empty list elements for unknown 024$2 This patch modifies the template which is used to display additional author information if OPACAuthorIdentifiersAndInformation is displayed. The change prevents an empty list item from appearing. To test, apply the patch and go to system preferences in the staff interface. - Search for OPACAuthorIdentifiersAndInformation and make sure that "Identifiers (024$2$a)" is checked. - Have a record with at least 2 persons (100, 700) linked to an authority record - One of those authority records should not have an 024 tag - The other authority record should have two 024 tags: - 024 $a someidyoumakeup $2orcid - 024 $a someidyoumakeup $2somethingelse - Check the detail page in OPAC -> "Author information" tab - Check the authority detail page in OPAC, under "Author information" in the right-hand column. Before the patch, '$2somethingelse' is not "supported" and will create the empty list element. After the patch there should be no empty list item. Sponsored-by: Athens County Public Libraries Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> |