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

(-)a/koha-tmpl/opac-tmpl/xslt/OAI.xslt (-14 / +15 lines)
Lines 18-23 Link Here
18
18
19
    <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
19
    <xsl:output method="html" doctype-public="-//W3C//DTD HTML 4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd" />
20
20
21
    <xsl:variable name="oai_script_name">/cgi-bin/koha/oai.pl</xsl:variable>
22
21
    <xsl:template match="/">
23
    <xsl:template match="/">
22
        <html>
24
        <html>
23
            <head>
25
            <head>
Lines 44-50 Link Here
44
                                        </xsl:if>
46
                                        </xsl:if>
45
                                        <xsl:attribute name="href">
47
                                        <xsl:attribute name="href">
46
                                            <xsl:value-of
48
                                            <xsl:value-of
47
                                                    select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=Identify')"></xsl:value-of>
49
                                                    select="concat($oai_script_name,'?verb=Identify')"></xsl:value-of>
48
                                        </xsl:attribute>
50
                                        </xsl:attribute>
49
                                        Identify
51
                                        Identify
50
                                    </a>
52
                                    </a>
Lines 56-62 Link Here
56
                                        </xsl:if>
58
                                        </xsl:if>
57
                                        <xsl:attribute name="href">
59
                                        <xsl:attribute name="href">
58
                                            <xsl:value-of
60
                                            <xsl:value-of
59
                                                    select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListSets')"></xsl:value-of>
61
                                                    select="concat($oai_script_name, '?verb=ListSets')"></xsl:value-of>
60
                                        </xsl:attribute>
62
                                        </xsl:attribute>
61
                                        Sets
63
                                        Sets
62
                                    </a>
64
                                    </a>
Lines 68-74 Link Here
68
                                        </xsl:if>
70
                                        </xsl:if>
69
                                        <xsl:attribute name="href">
71
                                        <xsl:attribute name="href">
70
                                            <xsl:value-of
72
                                            <xsl:value-of
71
                                                    select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=oai_dc')"></xsl:value-of>
73
                                                    select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=oai_dc')"></xsl:value-of>
72
                                        </xsl:attribute>
74
                                        </xsl:attribute>
73
                                        Records
75
                                        Records
74
                                    </a>
76
                                    </a>
Lines 80-86 Link Here
80
                                        </xsl:if>
82
                                        </xsl:if>
81
                                        <xsl:attribute name="href">
83
                                        <xsl:attribute name="href">
82
                                            <xsl:value-of
84
                                            <xsl:value-of
83
                                                    select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListIdentifiers&amp;metadataPrefix=oai_dc')"></xsl:value-of>
85
                                                    select="concat($oai_script_name, '?verb=ListIdentifiers&amp;metadataPrefix=oai_dc')"></xsl:value-of>
84
                                        </xsl:attribute>
86
                                        </xsl:attribute>
85
                                        Identifiers
87
                                        Identifiers
86
                                    </a>
88
                                    </a>
Lines 93-99 Link Here
93
                                        </xsl:if>
95
                                        </xsl:if>
94
                                        <xsl:attribute name="href">
96
                                        <xsl:attribute name="href">
95
                                            <xsl:value-of
97
                                            <xsl:value-of
96
                                                    select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListMetadataFormats')"></xsl:value-of>
98
                                                    select="concat($oai_script_name, '?verb=ListMetadataFormats')"></xsl:value-of>
97
                                        </xsl:attribute>
99
                                        </xsl:attribute>
98
                                        Metadata Formats
100
                                        Metadata Formats
99
                                    </a>
101
                                    </a>
Lines 238-251 Link Here
238
                        <a>
240
                        <a>
239
                            <xsl:attribute name="href">
241
                            <xsl:attribute name="href">
240
                                <xsl:value-of
242
                                <xsl:value-of
241
                                        select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', oai:setSpec/text())" />
243
                                        select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', oai:setSpec/text())" />
242
                            </xsl:attribute>
244
                            </xsl:attribute>
243
                            Records
245
                            Records
244
                        </a>
246
                        </a>
245
                        <a>
247
                        <a>
246
                            <xsl:attribute name="href">
248
                            <xsl:attribute name="href">
247
                                <xsl:value-of
249
                                <xsl:value-of
248
                                        select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListIdentifiers&amp;metadataPrefix=oai_dc&amp;set=', oai:setSpec/text())" />
250
                                        select="concat($oai_script_name, '?verb=ListIdentifiers&amp;metadataPrefix=oai_dc&amp;set=', oai:setSpec/text())" />
249
                            </xsl:attribute>
251
                            </xsl:attribute>
250
                            Identifiers
252
                            Identifiers
251
                        </a>
253
                        </a>
Lines 303-309 Link Here
303
                                        <a>
305
                                        <a>
304
                                            <xsl:attribute name="href">
306
                                            <xsl:attribute name="href">
305
                                                <xsl:value-of
307
                                                <xsl:value-of
306
                                                        select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
308
                                                        select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
307
                                            </xsl:attribute>
309
                                            </xsl:attribute>
308
                                            <xsl:value-of select="text()" />
310
                                            <xsl:value-of select="text()" />
309
                                        </a>
311
                                        </a>
Lines 367-373 Link Here
367
                                        <a>
369
                                        <a>
368
                                            <xsl:attribute name="href">
370
                                            <xsl:attribute name="href">
369
                                                <xsl:value-of
371
                                                <xsl:value-of
370
                                                        select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
372
                                                        select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
371
                                            </xsl:attribute>
373
                                            </xsl:attribute>
372
                                            <xsl:value-of select="text()" />
374
                                            <xsl:value-of select="text()" />
373
                                        </a>
375
                                        </a>
Lines 415-421 Link Here
415
                        <div class="col-lg-4">
417
                        <div class="col-lg-4">
416
                            <a class="btn btn-default pull-right">
418
                            <a class="btn btn-default pull-right">
417
                                <xsl:attribute name="href">
419
                                <xsl:attribute name="href">
418
                                    <xsl:value-of select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=GetRecord&amp;metadataPrefix=oai_dc&amp;identifier=', oai:identifier/text())" />
420
                                    <xsl:value-of select="concat($oai_script_name, '?verb=GetRecord&amp;metadataPrefix=oai_dc&amp;identifier=', oai:identifier/text())" />
419
                                </xsl:attribute>
421
                                </xsl:attribute>
420
                                View Details
422
                                View Details
421
                            </a>
423
                            </a>
Lines 444-450 Link Here
444
                                        <a>
446
                                        <a>
445
                                            <xsl:attribute name="href">
447
                                            <xsl:attribute name="href">
446
                                                <xsl:value-of
448
                                                <xsl:value-of
447
                                                        select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
449
                                                        select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=oai_dc&amp;set=', text())" />
448
                                            </xsl:attribute>
450
                                            </xsl:attribute>
449
                                            <xsl:value-of select="text()" />
451
                                            <xsl:value-of select="text()" />
450
                                        </a>
452
                                        </a>
Lines 481-487 Link Here
481
                            <a class="btn btn-default pull-right">
483
                            <a class="btn btn-default pull-right">
482
                                <xsl:attribute name="href">
484
                                <xsl:attribute name="href">
483
                                    <xsl:value-of
485
                                    <xsl:value-of
484
                                            select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=ListRecords&amp;metadataPrefix=', oai:metadataPrefix/text())" />
486
                                            select="concat($oai_script_name, '?verb=ListRecords&amp;metadataPrefix=', oai:metadataPrefix/text())" />
485
                                </xsl:attribute>
487
                                </xsl:attribute>
486
                                List Records
488
                                List Records
487
                            </a>
489
                            </a>
Lines 505-511 Link Here
505
            <div class="text-center">
507
            <div class="text-center">
506
                <a class="btn btn-primary">
508
                <a class="btn btn-primary">
507
                <xsl:attribute name="href">
509
                <xsl:attribute name="href">
508
                    <xsl:value-of select="concat(/oai:OAI-PMH/oai:request/text(), '?verb=',/oai:OAI-PMH/oai:request/@verb,'&amp;resumptionToken=', text())"></xsl:value-of>
510
                    <xsl:value-of select="concat($oai_script_name, '?verb=',/oai:OAI-PMH/oai:request/@verb,'&amp;resumptionToken=', text())"></xsl:value-of>
509
                </xsl:attribute>
511
                </xsl:attribute>
510
                    Show More
512
                    Show More
511
                </a>
513
                </a>
512
- 

Return to bug 17785