Bug 42721: Update OPACAuthorIdentifiersAndInformation description and identifier labels

The patch updates the OPACAuthorIdentifiersAndInformation system preference
description so that identifiers are listed in alphabetical order.

It also updates the identifier labels in the system preference
description and what is shown in the OPAC:
- ScopusID --> Scopus ID
- WIKIDATA ID --> Wikidata ID

Test plan:
1. For the OPACAuthorIdentifiersAndInformation system preference, select
   "Identifiers (024$2$a)".
2. Note that in the system preference description the identifiers shown
   in the note are not in alphabetical order.
3. Add identifiers to an authority record in the 024$2 (the code for the
   identifier) and 024$a (the value for the identifier) subfields:
   - Example authority record for authority #483, Wall, Larry:
     . ISNI: isni, 0000000110763894
     . Scopus ID: scopus, 57221714177 (note: not his real Scopus ID)
     . VIAF ID: viaf, 91402770
     . Wikidata ID: wikidata, Q92597
4. View the OPAC authority record details page for an authority record
   with 024$2 and $024a information:
   - Example authority record for authority #483, Wall, Larry
     /cgi-bin/koha/opac-authoritiesdetail.pl?authid=483
5. In another tab view the author information tab for an OPAC
   bibliographic record details page where the author is linked to an
   authority record with 024$2 and $024a information:
   - Example bibliographic record details page for Programming Perl:
     /cgi-bin/koha/opac-detail.pl?biblionumber=262
6. Note for both steps 4 and 5 that:
   - Scopus ID is shown as ScopusID
   - Wikidata ID is shown as WIKIDATA ID
7. Apply the patch.
8. Refresh the OPAC authority record and bibliographic record pages.
9. Note that the identifier labels are now shown as Scopus ID and
   Wikdiata ID.
10. View the OPACAuthorIdentifiersAndInformation system preference
    description and note that the identifiers in the note are now
    listed in alphabetical order.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Olivia Reynolds <olivia.reynolds@openfifth.co.uk>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
David Nind 2026-05-29 20:46:18 +00:00 committed by Pedro Amorim
parent fff08df007
commit eb8b13f429
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
2 changed files with 4 additions and 4 deletions

View File

@ -562,7 +562,7 @@ OPAC:
place_of_birth: Place of birth (370$a)
place_of_death: Place of death (370$b)
uri: URI (371$u)
- "<strong>NOTE:</strong> Identifiers for authors and contributors - valid codes to use in the source subfield (024$2) are currently: isni (ISNI), orcid (ORCID), scopus (ScopusID), loop (Loop ID), rid (Publons ID), uri (URI), viaf (VIAF ID), and wikidata (WIKIDATA ID)."
- "<strong>NOTE:</strong> Identifiers for authors and contributors - valid codes to use in the source subfield (024$2) are: isni (ISNI), loop (Loop ID), orcid (ORCID), rid (Publons ID), scopus (Scopus ID), uri (URI), viaf (VIAF ID), and wikidata (Wikidata ID)."
-
- "Calculate the amount a patron has 'saved' by using the library based on replacement prices, and display:"
- pref: OPACShowSavings

View File

@ -9,7 +9,7 @@
</li>
[% CASE 'scopus' %]
<li class="identifier_[% info.source.lower | html %]">
<span>ScopusID: </span>
<span>Scopus ID: </span>
<a href="https://www.scopus.com/authid/detail.uri?authorId=[% info.number | url %]">[% info.number | html %]</a>
</li>
[% CASE 'loop' %]
@ -34,8 +34,8 @@
</li>
[% CASE 'wikidata' %]
<li class="identifier_[% info.source.lower | html %]">
<span>WIKIDATA ID: </span>
<a href="http://www.wikidata.org/entity/[% info.number | url %]">[% info.number | html %]</a>
<span>Wikidata ID: </span>
<a href="https://www.wikidata.org/entity/[% info.number | url %]">[% info.number | html %]</a>
</li>
[% CASE 'uri' %]
<li class="identifier_[% info.source.lower | html %]">