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

(-)a/installer/data/mysql/atomicupdate/bug_15352_-_add_URLLinkTextItems_syspref.sql (+1 lines)
Line 0 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES ('URLLinkTextItems', '', NULL, 'Replace links for items with this text', 'Free');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 542-547 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
542
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
542
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
543
('uppercasesurnames','0',NULL,'If ON, surnames are converted to upper case in patron entry form','YesNo'),
543
('uppercasesurnames','0',NULL,'If ON, surnames are converted to upper case in patron entry form','YesNo'),
544
('URLLinkText','',NULL,'Text to display as the link anchor in the OPAC','free'),
544
('URLLinkText','',NULL,'Text to display as the link anchor in the OPAC','free'),
545
('URLLinkTextItems', '', NULL, 'Replace links for items with this text', 'Free'),
545
('UsageStats', 0, NULL, 'Share anonymous usage data on the Hea Koha community website.', 'YesNo'),
546
('UsageStats', 0, NULL, 'Share anonymous usage data on the Hea Koha community website.', 'YesNo'),
546
('UsageStatsCountry', '', NULL, 'The country where your library is located, to be shown on the Hea Koha community website', 'Choice'),
547
('UsageStatsCountry', '', NULL, 'The country where your library is located, to be shown on the Hea Koha community website', 'Choice'),
547
('UsageStatsID', '', NULL, 'This preference is part of Koha but it should not be deleted or updated manually.',  'Free'),
548
('UsageStatsID', '', NULL, 'This preference is part of Koha but it should not be deleted or updated manually.',  'Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/cataloguing.pref (+4 lines)
Lines 127-132 Cataloging: Link Here
127
            - If the pref is empty, no fields are restricted.
127
            - If the pref is empty, no fields are restricted.
128
    Display:
128
    Display:
129
        -
129
        -
130
            - Show
131
            - pref: URLLinkTextItems
132
            - as the text of links for items.
133
        -
130
            - 'Separate multiple displayed authors, series or subjects with '
134
            - 'Separate multiple displayed authors, series or subjects with '
131
            - pref: AuthoritySeparator
135
            - pref: AuthoritySeparator
132
              class: short
136
              class: short
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt (-1 / +5 lines)
Lines 783-789 function verify_images() { Link Here
783
                        </td>
783
                        </td>
784
                    [% END %]
784
                    [% END %]
785
                    [% IF ( itemdata_uri ) %]
785
                    [% IF ( itemdata_uri ) %]
786
                        <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
786
                        [% IF ( Koha.Preference('URLLinkTextItems') && item.uri ) %]
787
                            <td class="uri"><a href="[% item.uri %]">[% Koha.Preference('URLLinkTextItems') %]</a></td>
788
                        [% ELSE %]
789
                            <td class="uri"><a href="[% item.uri %]">[% item.uri %]</a></td>
790
                        [% END %]
787
                    [% END %]
791
                    [% END %]
788
                    [% IF ( itemdata_copynumber ) %]
792
                    [% IF ( itemdata_copynumber ) %]
789
                        <td class="copynumber">[% item.copynumber %]</td>
793
                        <td class="copynumber">[% item.copynumber %]</td>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt (-9 / +23 lines)
Lines 1288-1305 Link Here
1288
                    [% IF ( itemdata_uri ) %]
1288
                    [% IF ( itemdata_uri ) %]
1289
                        <td class="url">
1289
                        <td class="url">
1290
                            [% IF ITEM_RESULT.uri %]
1290
                            [% IF ITEM_RESULT.uri %]
1291
                                [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1291
                                [% IF Koha.Preference('URLLinkTextItems') %]
1292
                                    [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1292
                                    [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1293
                                    <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1293
                                        [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1294
                                            <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">[% Koha.Preference('URLLinkTextItems') %]</a>
1295
                                        [% ELSE %]
1296
                                            <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url">[% Koha.Preference('URLLinkTextItems') %]</a>
1297
                                        [% END %]
1294
                                    [% ELSE %]
1298
                                    [% ELSE %]
1295
                                    <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1299
                                        [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1300
                                            <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% Koha.Preference('URLLinkTextItems') %]</a>
1301
                                        [% ELSE %]
1302
                                            <a href="[% ITEM_RESULT.uri %]" property="url">[% Koha.Preference('URLLinkTextItems') %]</a>
1303
                                        [% END %]
1296
                                    [% END %]
1304
                                    [% END %]
1297
1298
                                [% ELSE %]
1305
                                [% ELSE %]
1299
                                    [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1306
                                    [% IF trackclicks == 'track' || trackclicks == 'anonymous' %]
1300
                                    <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1307
                                        [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1308
                                            <a target="_blank" rel="noreferrer" href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1309
                                        [% ELSE %]
1310
                                            <a href="/cgi-bin/koha/tracklinks.pl?uri=[% ITEM_RESULT.uri | uri %]&amp;biblionumber=[% biblionumber |url %]&amp;itemnumber=[% ITEM_RESULT.itemnumber | url %]" property="url"> Link to resource </a>
1311
                                        [% END %]
1301
                                    [% ELSE %]
1312
                                    [% ELSE %]
1302
                                    <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1313
                                        [% IF Koha.Preference("OPACURLOpenInNewWindow") %]
1314
                                            <a target="_blank" rel="noreferrer" href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1315
                                        [% ELSE %]
1316
                                            <a href="[% ITEM_RESULT.uri %]" property="url">[% ITEM_RESULT.uri %]</a>
1317
                                        [% END %]
1303
                                    [% END %]
1318
                                    [% END %]
1304
                                [% END %]
1319
                                [% END %]
1305
                            [% END %]
1320
                            [% END %]
1306
- 

Return to bug 15352