Bugzilla – Attachment 39478 Details for
Bug 11299
Add a button to automatically link authority records in cataloguing (AJAX)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11299 - cleaning up warnings/errors appearing in automatic_linker.pl
Bug-11299---cleaning-up-warningserrors-appearing-i.patch (text/plain), 1.70 KB, created by
tadeas.moravec
on 2015-05-25 10:11:50 UTC
(
hide
)
Description:
Bug 11299 - cleaning up warnings/errors appearing in automatic_linker.pl
Filename:
MIME Type:
Creator:
tadeas.moravec
Created:
2015-05-25 10:11:50 UTC
Size:
1.70 KB
patch
obsolete
>From bd128429a55baa8ca872526717e9feb01f360c48 Mon Sep 17 00:00:00 2001 >From: Blou <philippe.blouin@inlibro.com> >Date: Thu, 16 Apr 2015 11:57:14 -0400 >Subject: [PATCH] Bug 11299 - cleaning up warnings/errors appearing in > automatic_linker.pl > >Signed-off-by: Tadeasm <tadeas.moravec@gmail.com> >--- > cataloguing/automatic_linker.pl | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > >diff --git a/cataloguing/automatic_linker.pl b/cataloguing/automatic_linker.pl >index d99e9f3..a853398 100755 >--- a/cataloguing/automatic_linker.pl >+++ b/cataloguing/automatic_linker.pl >@@ -32,7 +32,7 @@ print $input->header('application/json'); > # Check the user's permissions > my %cookies = fetch CGI::Cookie; > my $sessid = $cookies{'CGISESSID'}->value || $input->param('CGISESSID'); >-my ($auth_status, $auth_sessid) = C4::Auth::check_cookie_auth($sessid, {"catalogue"}); >+my ($auth_status, $auth_sessid) = C4::Auth::check_cookie_auth($sessid, {catalogue => 1}); > if ($auth_status ne "ok") { > print to_json({status => 'UNAUTHORIZED'}); > exit 0; >@@ -47,7 +47,6 @@ if ($auth_status ne "ok") { > > my $json; > >-my @params = $input->param(); > my $record = TransformHtmlToMarc( $input ); > > >@@ -62,7 +61,7 @@ if ($@) { > } > my $linker = $linker_module->new( { 'options' => C4::Context->preference("LinkerOptions") } ); > >-my ( $headings_changed, $results ) = LinkBibHeadingsToAuthorities( $linker, $record, $params['frameworkcode'], C4::Context->preference("CatalogModuleRelink") || '', 1 ); >+my ( $headings_changed, $results ) = LinkBibHeadingsToAuthorities( $linker, $record, $input->param('frameworkcode'), C4::Context->preference("CatalogModuleRelink") || '', 1 ); > > $json->{status} = 'OK'; > $json->{links} = $results->{details} || ''; >-- >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 11299
:
23146
|
26715
|
33074
|
37912
|
37913
|
37972
|
38737
|
39477
|
39478
|
39479
|
40831
|
41229
|
45218
|
56440
|
56508
|
56509
|
58307
|
60998
|
63311
|
63312
|
63313
|
64075
|
67162
|
67708
|
67709
|
67710
|
67712
|
67713
|
67714
|
67824
|
67825
|
67826
|
67827
|
67828
|
67829
|
79385
|
79386
|
79387
|
79388
|
79389
|
79390
|
79391
|
79392
|
79393
|
79394
|
79395
|
79396
|
79397
|
79398
|
79399
|
79447
|
79448
|
79449
|
79450
|
79451
|
79452
|
79545
|
94818
|
95126
|
95152
|
98571
|
98572
|
99249
|
108091
|
108309
|
108310
|
108396
|
108552
|
108834
|
108835
|
109062
|
109063
|
109069
|
109181
|
110553
|
110554
|
110555
|
110556
|
110557
|
110568
|
110569
|
110570
|
110571
|
110572
|
111706
|
111707
|
111708
|
111709
|
111710
|
112125
|
112126
|
112127
|
112128
|
112129
|
112130
|
112131
|
112132
|
112133
|
112134
|
112135
|
113562
|
113563
|
113564
|
113565
|
113566
|
113567
|
113568
|
114803
|
114924
|
114925
|
114926
|
114927
|
114928
|
114929
|
114930
|
114931
|
114932