View | Details | Raw Unified | Return to bug 38425
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+21 lines)
Lines 2506-2511 td.bundle { Link Here
2506
    }
2506
    }
2507
}
2507
}
2508
2508
2509
.resource_list {
2510
    display: inline;
2511
    margin: 0 auto;
2512
    padding-left: 0;
2513
2514
    li {
2515
        display: inline-block;
2516
2517
        &::after {
2518
            content: "|";
2519
            padding: 0 .2em;
2520
        }
2521
2522
        &:last-child {
2523
            &::after {
2524
                content: "";
2525
            }
2526
        }
2527
    }
2528
}
2529
2509
.child_fund_amount {
2530
.child_fund_amount {
2510
    font-style: italic;
2531
    font-style: italic;
2511
}
2532
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/xslt/MARC21slim2intranetDetail.xsl (+81 lines)
Lines 920-925 Link Here
920
       </span>
920
       </span>
921
    </xsl:if>
921
    </xsl:if>
922
922
923
    <!-- Add links based on persistent identifiers Bug 38425 -->
924
    <xsl:if test="marc:datafield[@tag=024]">
925
        <span class="results_summary pid_links">
926
        <span class="label">External resource(s): </span>
927
        <ul class="resource_list">
928
        <xsl:for-each select="marc:datafield[@tag=024]/marc:subfield[@code='2']">
929
            <xsl:choose>
930
                <xsl:when test=". = 'doi'">
931
                    <li>
932
                        <span class="label">doi:</span>
933
                        <xsl:for-each select="../marc:subfield[@code='a']">
934
                            <a>
935
                                <xsl:attribute name="href">https://doi.org/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
936
                                <xsl:value-of select="current()" />
937
                            </a>
938
                        </xsl:for-each>
939
                    </li>
940
                </xsl:when>
941
                <xsl:when test=". = 'pmid'">
942
                    <li>
943
                        <span class="label">PMID: </span>
944
                        <xsl:for-each select="../marc:subfield[@code='a']">
945
                            <a>
946
                                <xsl:attribute name="href">https://pubmed.ncbi.nlm.nih.gov/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
947
                                <xsl:value-of select="current()" />
948
                            </a>
949
                        </xsl:for-each>
950
                    </li>
951
                </xsl:when>
952
                <xsl:when test=". = 'pmc'">
953
                    <li>
954
                        <span class="label">PMCID: </span>
955
                        <xsl:for-each select="../marc:subfield[@code='a']">
956
                            <a>
957
                                <xsl:attribute name="href">https://pmc.ncbi.nlm.nih.gov/articles/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
958
                                <xsl:value-of select="current()" />
959
                            </a>
960
                        </xsl:for-each>
961
                    </li>
962
                </xsl:when>
963
                <xsl:when test=". = 'arxiv'">
964
                    <li>
965
                        <!-- arXiv-ids are `arxiv:1234.5678` is redundant
966
                        <span class="label">arXiv:</span>
967
                        -->
968
                        <xsl:for-each select="../marc:subfield[@code='a']">
969
                            <a>
970
                                <xsl:attribute name="href">https://arxiv.org/abs/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
971
                                <xsl:value-of select="current()" />
972
                            </a>
973
                        </xsl:for-each>
974
                    </li>
975
                </xsl:when>
976
                <xsl:when test=". = 'inspire'">
977
                    <li>
978
                        <span class="label">inspire: </span>
979
                        <xsl:for-each select="../marc:subfield[@code='a']">
980
                            <a>
981
                                <xsl:attribute name="href">https://inspirehep.net/literature/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
982
                                <xsl:value-of select="current()" />
983
                            </a>
984
                        </xsl:for-each>
985
                    </li>
986
                </xsl:when>
987
                <xsl:when test=". = 'openlibrary'">
988
                    <li>
989
                        <span class="label">OpenLibrary: </span>
990
                        <xsl:for-each select="../marc:subfield[@code='a']">
991
                            <a>
992
                                <xsl:attribute name="href">https://openlibrary.org/works/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
993
                                <xsl:value-of select="current()" />
994
                            </a>
995
                        </xsl:for-each>
996
                    </li>
997
                </xsl:when>
998
            </xsl:choose>
999
        </xsl:for-each>
1000
        </ul>
1001
        </span>
1002
    </xsl:if>
1003
923
    <xsl:if test="marc:datafield[@tag=856]">
1004
    <xsl:if test="marc:datafield[@tag=856]">
924
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1005
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
925
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
1006
        <span class="results_summary online_resources"><span class="label">Online resources: </span>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACDetail.xsl (-1 / +81 lines)
Lines 1036-1041 Link Here
1036
    </xsl:if>
1036
    </xsl:if>
1037
1037
1038
1038
1039
    <!-- Add links based on persistent identifiers Bug 38425 -->
1040
    <xsl:if test="marc:datafield[@tag=024]">
1041
        <span class="results_summary pid_links">
1042
        <span class="label">External resource(s): </span>
1043
        <ul class="resource_list">
1044
        <xsl:for-each select="marc:datafield[@tag=024]/marc:subfield[@code='2']">
1045
            <xsl:choose>
1046
                <xsl:when test=". = 'doi'">
1047
                    <li>
1048
                        <span class="label">doi:</span>
1049
                        <xsl:for-each select="../marc:subfield[@code='a']">
1050
                            <a>
1051
                                <xsl:attribute name="href">https://doi.org/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1052
                                <xsl:value-of select="current()" />
1053
                            </a>
1054
                        </xsl:for-each>
1055
                    </li>
1056
                </xsl:when>
1057
                <xsl:when test=". = 'pmid'">
1058
                    <li>
1059
                        <span class="label">PMID: </span>
1060
                        <xsl:for-each select="../marc:subfield[@code='a']">
1061
                            <a>
1062
                                <xsl:attribute name="href">https://pubmed.ncbi.nlm.nih.gov/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1063
                                <xsl:value-of select="current()" />
1064
                            </a>
1065
                        </xsl:for-each>
1066
                    </li>
1067
                </xsl:when>
1068
                <xsl:when test=". = 'pmc'">
1069
                    <li>
1070
                        <span class="label">PMCID: </span>
1071
                        <xsl:for-each select="../marc:subfield[@code='a']">
1072
                            <a>
1073
                                <xsl:attribute name="href">https://pmc.ncbi.nlm.nih.gov/articles/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1074
                                <xsl:value-of select="current()" />
1075
                            </a>
1076
                        </xsl:for-each>
1077
                    </li>
1078
                </xsl:when>
1079
                <xsl:when test=". = 'arxiv'">
1080
                    <li>
1081
                        <!-- arXiv-ids are `arxiv:1234.5678` is redundant
1082
                        <span class="label">arXiv:</span>
1083
                        -->
1084
                        <xsl:for-each select="../marc:subfield[@code='a']">
1085
                            <a>
1086
                                <xsl:attribute name="href">https://arxiv.org/abs/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1087
                                <xsl:value-of select="current()" />
1088
                            </a>
1089
                        </xsl:for-each>
1090
                    </li>
1091
                </xsl:when>
1092
                <xsl:when test=". = 'inspire'">
1093
                    <li>
1094
                        <span class="label">inspire: </span>
1095
                        <xsl:for-each select="../marc:subfield[@code='a']">
1096
                            <a>
1097
                                <xsl:attribute name="href">https://inspirehep.net/literature/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1098
                                <xsl:value-of select="current()" />
1099
                            </a>
1100
                        </xsl:for-each>
1101
                    </li>
1102
                </xsl:when>
1103
                <xsl:when test=". = 'openlibrary'">
1104
                    <li>
1105
                        <span class="label">OpenLibrary: </span>
1106
                        <xsl:for-each select="../marc:subfield[@code='a']">
1107
                            <a>
1108
                                <xsl:attribute name="href">https://openlibrary.org/works/<xsl:value-of select="str:encode-uri(current(), true())"/></xsl:attribute>
1109
                                <xsl:value-of select="current()" />
1110
                            </a>
1111
                        </xsl:for-each>
1112
                    </li>
1113
                </xsl:when>
1114
            </xsl:choose>
1115
        </xsl:for-each>
1116
        </ul>
1117
        </span>
1118
    </xsl:if>
1119
1039
    <!-- Image processing code added here, takes precedence over text links including y3z text   -->
1120
    <!-- Image processing code added here, takes precedence over text links including y3z text   -->
1040
    <xsl:if test="marc:datafield[@tag=856]">
1121
    <xsl:if test="marc:datafield[@tag=856]">
1041
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1122
        <xsl:if test="marc:datafield[@tag=856]/marc:subfield[@code='u']">
1042
- 

Return to bug 38425