Bugzilla – Attachment 35642 Details for
Bug 13642
Adding new features for Dublin Core metadata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13642 [ENH] Adding new features for Dublin Core metadata #6/9
0008-Bug-13642-ENH-Adding-new-features-for-Dublin-Core-me.patch (text/plain), 2.46 KB, created by
Héctor Eduardo Castro Avalos
on 2015-01-30 19:53:12 UTC
(
hide
)
Description:
Bug 13642 [ENH] Adding new features for Dublin Core metadata #6/9
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2015-01-30 19:53:12 UTC
Size:
2.46 KB
patch
obsolete
>From ee2390c11d4ada473233d9fb1fe2ebe10d1d9c42 Mon Sep 17 00:00:00 2001 >From: Hector Castro <hector.hecaxmmx@gmail.com> >Date: Fri, 30 Jan 2015 11:14:08 -0600 >Subject: [PATCH 08/11] Bug 13642 [ENH] Adding new features for Dublin Core > metadata Changes conditional if() for include more > options "dc" (opac-export.pl) > >--- > opac/opac-export.pl | 31 +++++++++++++++++++++++++++++-- > 1 file changed, 29 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-export.pl b/opac/opac-export.pl >index 707392f..1d9afff 100755 >--- a/opac/opac-export.pl >+++ b/opac/opac-export.pl >@@ -34,6 +34,13 @@ my $format=$query->param("format")||'utf8'; > my $biblionumber = $query->param("bib")||0; > $biblionumber = int($biblionumber); > my ($marc, $error)= ('',''); >+my $biblionumber = $query->param("bib"); >+my $recommendation = $query->param("recommendation"); >+my $formats = $query->param("formats"); >+my $qualifier = $query->param("qualifier"); >+my $root_element = $query->param("root_element"); >+my $xsischemalocation = $query->param("xsischemalocation"); >+my $resource_url = $query->url(-base => 1) . '/cgi-bin/koha/opac-detail.pl?biblionumber=' . $biblionumber; > > $marc = GetMarcBiblio($biblionumber, 1) if $biblionumber; > if(!$marc) { >@@ -61,8 +68,28 @@ elsif ($format =~ /bibtex/) { > $format = 'bibtex'; > } > elsif ($format =~ /dc/) { >- ($error,$marc) = marc2dcxml($marc,1); >- $format = "dublin-core.xml"; >+ SWITCH: >+ for ($recommendation) { >+ if (/^simple-dc-rdf/) { >+ ($error,$marc) = marc2dcxml($recommendation, $marc, 0, >+ 1, undef, undef, $resource_url , $formats); >+ $format = "dublin-core." . $formats; >+ last SWITCH; } >+ if (/^dc-rdf/) { >+ ($error,$marc) = marc2dcxml($recommendation, $marc, 1, >+ 1, undef, undef, $resource_url, $formats); >+ $format = "dublin-core." . $formats; >+ last SWITCH; } >+ if (/^dc-xml/) { >+ ($error,$marc) = marc2dcxml($recommendation, $marc, $qualifier, >+ 1, $root_element, $xsischemalocation, undef, undef); >+ $format = "dublin-core.xml"; >+ last SWITCH; } >+ if (/^oai-dc/) { >+ ($error,$marc) = marc2dcxml($recommendation, $marc); >+ $format = "dublin-core.xml"; >+ last SWITCH; } >+ } > } > elsif ($format =~ /marc8/) { > ($error,$marc) = changeEncoding($marc,"MARC","MARC21","MARC-8"); >-- >1.7.10.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 13642
:
35637
|
35638
|
35639
|
35640
|
35641
|
35642
|
35643
|
35644
|
35645
|
35663
|
35957
|
35981
|
35982
|
35983
|
35999
|
36000
|
36005
|
36006
|
36147
|
36154
|
36631
|
36632
|
36633
|
36636
|
36714
|
38220
|
38819
|
39623
|
39654
|
40786
|
40787
|
42168
|
43311
|
43313
|
43545
|
43548
|
43549
|
43586
|
43612
|
44627
|
44629
|
44658
|
44659
|
44660
|
44661
|
44662
|
44669
|
44672
|
44677
|
44727
|
44728
|
44729
|
44815
|
44816
|
44819
|
45970
|
45971
|
46514
|
46584
|
46585
|
46586
|
46587
|
46588