Bugzilla – Attachment 78461 Details for
Bug 20968
Plugins: Add hooks to enable plugin integration into catalogue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20968: (follow-up) Replace tabs with spaces
Bug-20968-follow-up-Replace-tabs-with-spaces.patch (text/plain), 6.00 KB, created by
Andrew Isherwood
on 2018-09-06 09:56:15 UTC
(
hide
)
Description:
Bug 20968: (follow-up) Replace tabs with spaces
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2018-09-06 09:56:15 UTC
Size:
6.00 KB
patch
obsolete
>From 7055c65790e1862d227e883b36095d87422c8353 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 29 Jun 2018 09:23:38 +0100 >Subject: [PATCH] Bug 20968: (follow-up) Replace tabs with spaces > >--- > catalogue/detail.pl | 66 +++++++++++----------- > .../intranet-tmpl/prog/en/includes/cat-toolbar.inc | 2 +- > 2 files changed, 34 insertions(+), 34 deletions(-) > >diff --git a/catalogue/detail.pl b/catalogue/detail.pl >index dd5d1830e6..154d63260a 100755 >--- a/catalogue/detail.pl >+++ b/catalogue/detail.pl >@@ -32,7 +32,7 @@ use C4::Reserves; > use C4::Serials; > use C4::XISBN qw(get_xisbns); > use C4::External::Amazon; >-use C4::Search; # enabled_staff_search_views >+use C4::Search; # enabled_staff_search_views > use C4::Tags qw(get_tags); > use C4::XSLT; > use C4::Images; >@@ -64,14 +64,14 @@ my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( > > # Determine if we should be offering any enhancement plugin buttons > if ( C4::Context->preference('UseKohaPlugins') && >- C4::Context->config('enable_plugins') ) { >- # Only pass plugins that can offer a toolbar button >- my @plugins = Koha::Plugins->new()->GetPlugins({ >- method => 'intranet_catalog_biblio_enhancements_toolbar_button' >- }); >- $template->param( >- plugins => \@plugins >- ); >+ C4::Context->config('enable_plugins') ) { >+ # Only pass plugins that can offer a toolbar button >+ my @plugins = Koha::Plugins->new()->GetPlugins({ >+ method => 'intranet_catalog_biblio_enhancements_toolbar_button' >+ }); >+ $template->param( >+ plugins => \@plugins >+ ); > } > > my $biblionumber = $query->param('biblionumber'); >@@ -159,8 +159,8 @@ my $hostrecords; > # adding items linked via host biblios > my @hostitems = GetHostItemsInfo($record); > if (@hostitems){ >- $hostrecords =1; >- push (@items,@hostitems); >+ $hostrecords =1; >+ push (@items,@hostitems); > } > > my $dat = &GetBiblioData($biblionumber); >@@ -172,7 +172,7 @@ my @subs; > > foreach my $subscription (@subscriptions) { > my %cell; >- my $serials_to_display; >+ my $serials_to_display; > $cell{subscriptionid} = $subscription->{subscriptionid}; > $cell{subscriptionnotes} = $subscription->{internalnotes}; > $cell{missinglist} = $subscription->{missinglist}; >@@ -182,9 +182,9 @@ foreach my $subscription (@subscriptions) { > $cell{callnumber} = $subscription->{callnumber}; > $cell{closed} = $subscription->{closed}; > #get the three latest serials. >- $serials_to_display = $subscription->{staffdisplaycount}; >- $serials_to_display = C4::Context->preference('StaffSerialIssueDisplayCount') unless $serials_to_display; >- $cell{staffdisplaycount} = $serials_to_display; >+ $serials_to_display = $subscription->{staffdisplaycount}; >+ $serials_to_display = C4::Context->preference('StaffSerialIssueDisplayCount') unless $serials_to_display; >+ $cell{staffdisplaycount} = $serials_to_display; > $cell{latestserials} = > GetLatestSerials( $subscription->{subscriptionid}, $serials_to_display ); > push @subs, \%cell; >@@ -294,7 +294,7 @@ foreach my $item (@items) { > $item->{CheckedOutFor} = $checkout->patron; > } > >- # Check the transit status >+ # Check the transit status > my ( $transfertwhen, $transfertfrom, $transfertto ) = GetTransfers($item->{itemnumber}); > if ( defined( $transfertwhen ) && ( $transfertwhen ne '' ) ) { > $item->{transfertwhen} = $transfertwhen; >@@ -314,7 +314,7 @@ foreach my $item (@items) { > > if ($item->{biblionumber} ne $biblionumber){ > $item->{hostbiblionumber} = $item->{biblionumber}; >- $item->{hosttitle} = GetBiblioData($item->{biblionumber})->{title}; >+ $item->{hosttitle} = GetBiblioData($item->{biblionumber})->{title}; > } > > >@@ -369,26 +369,26 @@ if (scalar(@itemloop) == 0 || scalar(@otheritemloop) == 0) { > > $template->param( norequests => $norequests ); > $template->param( >- MARCNOTES => $marcnotesarray, >- MARCSUBJCTS => $marcsubjctsarray, >- MARCAUTHORS => $marcauthorsarray, >- MARCSERIES => $marcseriesarray, >- MARCURLS => $marcurlsarray, >+ MARCNOTES => $marcnotesarray, >+ MARCSUBJCTS => $marcsubjctsarray, >+ MARCAUTHORS => $marcauthorsarray, >+ MARCSERIES => $marcseriesarray, >+ MARCURLS => $marcurlsarray, > MARCISBNS => $marcisbnsarray, >- MARCHOSTS => $marchostsarray, >- subtitle => $subtitle, >- itemdata_ccode => $itemfields{ccode}, >- itemdata_enumchron => $itemfields{enumchron}, >- itemdata_uri => $itemfields{uri}, >- itemdata_copynumber => $itemfields{copynumber}, >- itemdata_stocknumber => $itemfields{stocknumber}, >- volinfo => $itemfields{enumchron}, >+ MARCHOSTS => $marchostsarray, >+ subtitle => $subtitle, >+ itemdata_ccode => $itemfields{ccode}, >+ itemdata_enumchron => $itemfields{enumchron}, >+ itemdata_uri => $itemfields{uri}, >+ itemdata_copynumber => $itemfields{copynumber}, >+ itemdata_stocknumber => $itemfields{stocknumber}, >+ volinfo => $itemfields{enumchron}, > itemdata_itemnotes => $itemfields{itemnotes}, > itemdata_nonpublicnotes => $itemfields{itemnotes_nonpublic}, >- z3950_search_params => C4::Search::z3950_search_args($dat), >+ z3950_search_params => C4::Search::z3950_search_args($dat), > hostrecords => $hostrecords, >- analytics_flag => $analytics_flag, >- C4::Search::enabled_staff_search_views, >+ analytics_flag => $analytics_flag, >+ C4::Search::enabled_staff_search_views, > materials => $materials_flag, > ); > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >index f2ec6bc59d..c7fe051f84 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cat-toolbar.inc >@@ -140,7 +140,7 @@ CAN_user_serials_create_subscription ) %] > [% END %] > > [% FOREACH p IN plugins %] >- [% p.intranet_catalog_biblio_enhancements_toolbar_button %] >+ [% p.intranet_catalog_biblio_enhancements_toolbar_button %] > [% END %] > > </div> >-- >2.11.0
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 20968
:
76374
|
76375
|
76530
|
76531
|
76532
|
76540
|
76541
|
76555
|
76564
|
76565
|
76566
|
76567
|
76568
|
77782
|
77783
|
77784
|
77785
|
77786
|
78457
|
78458
|
78459
|
78460
|
78461
|
79804
|
79805
|
79806
|
79807
|
79808
|
80394
|
80395
|
80396
|
80397
|
80398
|
80615
|
80616
|
80617
|
80618
|
80619