Bugzilla – Attachment 14940 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.21 KB, created by
Mason James
on 2013-01-30 08:32:27 UTC
(
hide
)
Description:
Bug 9201 OAI-PMH mapping value cannot be 0
Filename:
MIME Type:
Creator:
Mason James
Created:
2013-01-30 08:32:27 UTC
Size:
1.21 KB
patch
obsolete
>From 43d0942ce0d5881ec6d8b640211a5e7664958ad4 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 >Content-Type: text/plain; charset="utf-8" >http://koha-community.org > >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. >Signed-off-by: Mason James <mtj@kohaaloha.com> >--- > admin/oai_set_mappings.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >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.2.5
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