Bugzilla – Attachment 26998 Details for
Bug 8992
Add an interfacing with the idref webservice
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8992: qa-followup: replace given/when with if/elsif
Bug-8992-qa-followup-replace-givenwhen-with-ifelsi.patch (text/plain), 1.67 KB, created by
Jonathan Druart
on 2014-04-11 09:39:44 UTC
(
hide
)
Description:
Bug 8992: qa-followup: replace given/when with if/elsif
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-04-11 09:39:44 UTC
Size:
1.67 KB
patch
obsolete
>From b67dcebe2726f0d03e8c22a4be284fc64aad5e1a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 11 Apr 2014 11:04:54 +0200 >Subject: [PATCH] Bug 8992: qa-followup: replace given/when with if/elsif > >--- > opac/opac-idref.pl | 26 ++++++++++++-------------- > 1 file changed, 12 insertions(+), 14 deletions(-) > >diff --git a/opac/opac-idref.pl b/opac/opac-idref.pl >index 0bb3136..14dc8fd 100755 >--- a/opac/opac-idref.pl >+++ b/opac/opac-idref.pl >@@ -61,20 +61,18 @@ for my $role_node ( @results ) { > : ($v); > for my $node ( @nodes ) { > while ( ( $k, $v ) = each %$node ) { >- given ( $k ) { >- when ( "roleName" ) { >- $role_name = $v; >- $role_data->{role_name} = $role_name; >- } >- when ( "count" ) { >- $role_data->{count} = $v; >- } >- when ( "doc" ) { >- push @{ $role_data->{docs} }, $v; >- } >- default { >- # unimarcCode and marc21Code >- } >+ if ( $k eq 'roleName' ) { >+ $role_name = $v; >+ $role_data->{role_name} = $role_name; >+ } >+ elsif ( $k eq 'count' ) { >+ $role_data->{count} = $v; >+ } >+ elsif ( $k eq 'doc' ) { >+ push @{ $role_data->{docs} }, $v; >+ } >+ else { >+ # unimarcCode and marc21Code > } > } > } >-- >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 8992
:
13134
|
13142
|
21119
|
21182
|
21641
|
25358
|
25359
|
25365
|
25399
|
26998
|
26999
|
27000
|
27460
|
27462
|
27463
|
27464
|
29012
|
29165
|
29166
|
29167
|
29168
|
29169
|
30920
|
32123
|
35012
|
35013
|
35014
|
35015
|
35016
|
35017
|
35020
|
35022
|
35023
|
35024
|
35025
|
35026
|
35027
|
38639
|
39564
|
39565