Bugzilla – Attachment 4083 Details for
Bug 6334
Using OAI with the OPACBaseURL syspref
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch for 3.2
0001-MT-6453-Using-OAI-with-the-OPACBaseURL-syspref.patch (text/plain), 1.76 KB, created by
Christophe Croullebois
on 2011-05-12 13:27:28 UTC
(
hide
)
Description:
proposed patch for 3.2
Filename:
MIME Type:
Creator:
Christophe Croullebois
Created:
2011-05-12 13:27:28 UTC
Size:
1.76 KB
patch
obsolete
>From 1313f2d93b3eeaf7ddfe3c08453668c649946cf6 Mon Sep 17 00:00:00 2001 >From: Christophe Croullebois <christophe.croullebois@biblibre.com> >Date: Wed, 11 May 2011 17:00:02 +0200 >Subject:bug 6333 [PATCH 1/1] (MT #6453) Using OAI with the OPACBaseURL syspref > >In the UNIMARslim2OAID.xsl the link to biblio was hardcoded, with this patch it takes the value of OPACBaseURL. >--- > .../prog/en/xslt/UNIMARCslim2OAIDC.xsl | 2 +- > opac/oai.pl | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl >index a1f2bcf..96b5696 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl >+++ b/koha-tmpl/intranet-tmpl/prog/en/xslt/UNIMARCslim2OAIDC.xsl >@@ -164,7 +164,7 @@ > </xsl:for-each> > <xsl:for-each select="marc:datafield[@tag=090]"> > <dc:identifier> >- <xsl:text>http://opac.mylibrary.org/bib/</xsl:text> >+ <xsl:value-of select="$syspref"/><xsl:text>/bib/</xsl:text> > <xsl:value-of select="marc:subfield[@code='a']"/> > </dc:identifier> > </xsl:for-each> >diff --git a/opac/oai.pl b/opac/oai.pl >index 546623e..ea4843b 100755 >--- a/opac/oai.pl >+++ b/opac/oai.pl >@@ -196,8 +196,9 @@ sub new { > > my $parser = XML::LibXML->new(); > my $record_dom = $parser->parse_string( $marcxml ); >+ my $syspref = C4::Context->preference("OPACBaseURL"); > if ( $args{metadataPrefix} ne 'marcxml' ) { >- $record_dom = $repository->oai_dc_stylesheet()->transform( $record_dom ); >+ $record_dom = $repository->oai_dc_stylesheet()->transform( $record_dom, syspref=> $syspref ); > } > $self->metadata( HTTP::OAI::Metadata->new( dom => $record_dom ) ); > >-- >1.7.0.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6334
:
4083
|
4084
|
4085
|
4104