https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38425
--- Comment #20 from Alexander Wagner <[email protected]> --- Created attachment 194730 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=194730&action=edit Bug 38425: Add external links based on PIDs Render some (common) persistent identifiers from field 024 (Marc21) or field 017 (UNIMARC) as links to external resources. To this end evaluate `$2` and the appropriate resolver URL. Currently implemented values for `$2`: arXiv, doi, inspire, openlibrary, pmc, pmid, handle. Test plan: 1. Open intranet interface and edit any record 2. Add PIDs to your records. For Marc21 use `024 7_` for UNIMARC use `017 7_` with the following subfield layout: - $2 doi $a 10.1103/grxd-71sk - $2 doi $a 10.3204/PUBDB-2025-05454 - $2 pmid $a 29942120 - $2 pmc $a PMC6005330 - $2 arxiv $a arxiv:2411.05889 - $2 inspire $a 2835154 - $2 openlibrary $a OL27448W - $2 hdl $a 2128/34598 (May be all or any combination. The values of $a would not matter, the above just gives valid links to the external system in question.) 3. Check intranet detail display of the record: nothing appears 4. Check OPAC detail display of the record: nothing appears 5. Apply the patch 6. Check intranet detail display of the record. Depending on the PIDs in the record lines for each type get added, if a PID does not exist no line is added, values in 024/017 that are not handled are ignored and do not trigger any output. Each line gives the type of the PID in front and separated list of all ids of this type expressed as clickable links in line with the usual display of Koha. E.g. ``` DOI: 10.1103/grxd-71sk | 10.3204/PUBDB-2025-05454 PMID: 29942120 ``` 7. Check OPAC detail display of the record. It will show a similar list of ids clickable and resolving to the appropriate exteral system. Technical notes: - The whole section of links crated is encapsulated in `<span class="results_summary resource_list_doi">` - Each line of a given PID group (e.g. doi) is encapsulated in `<span class="results_summary resource_list_doi">` where the last term gives the type of the id in question - The individual elements of the generated `<ul>` are expressed as `<li class="resource_doi">` to allow for styling (incl. supression) via CSS. Sponsored-by: Deutsches Elektronen-Synchrotron DESY, Library Signed-off-by: Alexander Wagner <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
