Bugzilla – Attachment 14271 Details for
Bug 9201
OAI-PMH mapping value cannot be 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9201 OAI-PMH mapping value cannot be 0
Bug-9201-OAI-PMH-mapping-value-cannot-be-0.patch (text/plain), 1.10 KB, created by
Jonathan Druart
on 2012-12-26 15:49:26 UTC
(
hide
)
Description:
Bug 9201 OAI-PMH mapping value cannot be 0
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2012-12-26 15:49:26 UTC
Size:
1.10 KB
patch
obsolete
>From 1e5bee3a27708501d3d2c3977b6b33b1cae30972 Mon Sep 17 00:00:00 2001 >From: Mirko Tietgen <mirko@abunchofthings.net> >Date: Thu, 13 Dec 2012 23:37:58 +0100 >Subject: [PATCH] Bug 9201 OAI-PMH mapping value cannot be 0 > >Allow the value of a OAI set mapping to be 0 / empty. Delete the mapping if field or subfield are empty. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Now it is possible to add a value == 0 or an empty string. >--- > admin/oai_set_mappings.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/admin/oai_set_mappings.pl b/admin/oai_set_mappings.pl >index 1a9762c..fb4ee28 100755 >--- a/admin/oai_set_mappings.pl >+++ b/admin/oai_set_mappings.pl >@@ -60,7 +60,7 @@ if($op && $op eq "save") { > my @mappings; > my $i = 0; > while($i < @marcfields and $i < @marcsubfields and $i < @marcvalues) { >- if($marcfields[$i] and $marcsubfields[$i] and $marcvalues[$i]) { >+ if($marcfields[$i] and $marcsubfields[$i]) { > push @mappings, { > marcfield => $marcfields[$i], > marcsubfield => $marcsubfields[$i], >-- >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 9201
:
14108
|
14271
|
14940