Bugzilla – Attachment 58250 Details for
Bug 15108
OAI-PMH provider improvements
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15108: [QA Follow-up] Changes from removing collection wrapper
Bug-15108-QA-Follow-up-Changes-from-removing-colle.patch (text/plain), 3.81 KB, created by
Marcel de Rooy
on 2016-12-16 11:03:17 UTC
(
hide
)
Description:
Bug 15108: [QA Follow-up] Changes from removing collection wrapper
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-12-16 11:03:17 UTC
Size:
3.81 KB
patch
obsolete
>From 9cb97c04e77bc6099eb9d6b7b3bd4aefed93f9b5 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 16 Dec 2016 10:17:37 +0100 >Subject: [PATCH] Bug 15108: [QA Follow-up] Changes from removing collection > wrapper >Content-Type: text/plain; charset=utf-8 > >See bug 17744. >--- > t/db_dependent/OAI/Server.t | 41 ++++++++++++----------------------------- > 1 file changed, 12 insertions(+), 29 deletions(-) > >diff --git a/t/db_dependent/OAI/Server.t b/t/db_dependent/OAI/Server.t >index 76a142f..0caf114 100644 >--- a/t/db_dependent/OAI/Server.t >+++ b/t/db_dependent/OAI/Server.t >@@ -81,38 +81,24 @@ foreach my $index ( 0 .. NUMBER_OF_MARC_RECORDS - 1 ) { > $record = GetMarcBiblio($biblionumber); > $record = XMLin($record->as_xml_record); > push @header, { datestamp => $timestamp, identifier => "TEST:$biblionumber" }; >- delete $record->{$_} for (('xmlns','xmlns:xsi','xsi:schemaLocation')); > push @oaidc, { > header => $header[$index], > metadata => { >- 'oai_dc:dcCollection' => { >- 'oai_dc:dc' => { >- 'dc:title' => { >- 'content' => "Title $index", >- 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/' >- }, >- 'dc:language' => { >- 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/' >- }, >- 'dc:type' => { >- 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/' >- }, >- }, >- "xmlns:oai_dc" => "http://www.openarchives.org/OAI/2.0/oai_dc/", >- "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance", >- "xsi:schemaLocation" => "http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd", >+ 'oai_dc:dc' => { >+ 'dc:title' => "Title $index", >+ 'dc:language' => {}, >+ 'dc:type' => {}, >+ 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', >+ 'xmlns:oai_dc' => 'http://www.openarchives.org/OAI/2.0/oai_dc/', >+ 'xmlns:dc' => 'http://purl.org/dc/elements/1.1/', >+ 'xsi:schemaLocation' => 'http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd', > }, > }, > }; > push @marcxml, { > header => $header[$index], > metadata => { >- collection => { >- record => $record, >- "xmlns" => "http://www.loc.gov/MARC21/slim", >- "xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance", >- "xsi:schemaLocation" => "http://www.loc.gov/MARC21/slim http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd", >- }, >+ record => $record, > }, > }; > } >@@ -136,10 +122,10 @@ sub test_query { > my %full_expected = ( > %$expected, > ( >- request => 'http://localhost', >+ request => 'http://localhost', > responseDate => DateTime->now . 'Z', >- xmlns => 'http://www.openarchives.org/OAI/2.0/', >- 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', >+ xmlns => 'http://www.openarchives.org/OAI/2.0/', >+ 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', > 'xsi:schemaLocation' => 'http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd', > ) > ); >@@ -221,7 +207,6 @@ test_query( > cursor => 6, > }, > }, >- > }, > ); > >@@ -236,7 +221,6 @@ test_query( > cursor => 9, > }, > }, >- > }, > ); > >@@ -247,7 +231,6 @@ test_query( > ListIdentifiers => { > header => $header[9], > }, >- > }, > ); > >-- >2.1.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 15108
:
44317
|
44318
|
51962
|
52416
|
52422
|
52423
|
53853
|
53854
|
56813
|
56844
|
58058
|
58059
|
58060
|
58061
|
58062
|
58063
|
58064
|
58065
|
58072
|
58080
|
58245
|
58246
|
58247
|
58248
|
58249
|
58250
|
58251
|
60260
|
60331
|
60608
|
60835
|
60836
|
63172
|
63173
|
63174