Bugzilla – Attachment 60980 Details for
Bug 17844
Move C4::Koha::get_notforloan_label_of to Koha::AuthorisedValues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17844: Remove C4::Koha::get_notforloan_label_of
Bug-17844-Remove-C4Kohagetnotforloanlabelof.patch (text/plain), 2.17 KB, created by
Marcel de Rooy
on 2017-03-10 10:05:35 UTC
(
hide
)
Description:
Bug 17844: Remove C4::Koha::get_notforloan_label_of
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-03-10 10:05:35 UTC
Size:
2.17 KB
patch
obsolete
>From b720d070adb0545ed4448ad82549f2e42e56838d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Jan 2017 11:53:33 +0100 >Subject: [PATCH] Bug 17844: Remove C4::Koha::get_notforloan_label_of >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > C4/Koha.pm | 53 ----------------------------------------------------- > 1 file changed, 53 deletions(-) > >diff --git a/C4/Koha.pm b/C4/Koha.pm >index 9f06226..b48d324 100644 >--- a/C4/Koha.pm >+++ b/C4/Koha.pm >@@ -46,7 +46,6 @@ BEGIN { > &getallthemes > &getFacets > &getnbpages >- &get_notforloan_label_of > &getitemtypeimagedir > &getitemtypeimagesrc > &getitemtypeimagelocation >@@ -637,58 +636,6 @@ sub getFacets { > return $facets; > } > >-=head2 get_notforloan_label_of >- >- my $notforloan_label_of = get_notforloan_label_of(); >- >-Each authorised value of notforloan (information available in items and >-itemtypes) is link to a single label. >- >-Returns a href where keys are authorised values and values are corresponding >-labels. >- >- foreach my $authorised_value (keys %{$notforloan_label_of}) { >- printf( >- "authorised_value: %s => %s\n", >- $authorised_value, >- $notforloan_label_of->{$authorised_value} >- ); >- } >- >-=cut >- >-# FIXME - why not use GetAuthorisedValues ?? >-# >-sub get_notforloan_label_of { >- my $dbh = C4::Context->dbh; >- >- my $query = ' >-SELECT authorised_value >- FROM marc_subfield_structure >- WHERE kohafield = \'items.notforloan\' >- LIMIT 0, 1 >-'; >- my $sth = $dbh->prepare($query); >- $sth->execute(); >- my ($statuscode) = $sth->fetchrow_array(); >- >- $query = ' >-SELECT lib, >- authorised_value >- FROM authorised_values >- WHERE category = ? >-'; >- $sth = $dbh->prepare($query); >- $sth->execute($statuscode); >- my %notforloan_label_of; >- while ( my $row = $sth->fetchrow_hashref ) { >- $notforloan_label_of{ $row->{authorised_value} } = $row->{lib}; >- } >- $sth->finish; >- >- return \%notforloan_label_of; >-} >- > =head2 GetAuthorisedValues > > $authvalues = GetAuthorisedValues([$category]); >-- >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 17844
:
58585
|
58586
|
58601
|
60012
|
60013
| 60980 |
60981