Bug 17253

Summary: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: claire_gravely, kyle, martin.renvoize
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 17252, 17294    
Bug Blocks: 15799    
Attachments: Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Bug 17253: Fetch all the columns instead of only authorised_value
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
Bug 17253: Fetch all the columns instead of only authorised_value
[PASSED QA] Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
[PASSED QA] Bug 17253: Fetch all the columns instead of only authorised_value

Description Jonathan Druart 2016-09-05 14:19:10 UTC

    
Comment 1 Jonathan Druart 2016-09-05 16:17:49 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2016-09-13 08:59:20 UTC Comment hidden (obsolete)
Comment 3 Jonathan Druart 2016-09-13 09:11:19 UTC
Created attachment 55522 [details] [review]
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues

This patch replaces the call to C4::Koha::GetKohaAuthorisedValues with
Koha::AuthorisedValues->search_by_koha_field

Test plan:
AV descriptions should be displayed on the following pages:
- XSLT view - location and ccode
- Bibliographic detail, moredetail and OPAC pages - location, ccode, copynumber
- returns - location
- opac-basket - ccode, location
- The 3 reports: catalogue_stats.pl, issues_stats.pl and
  reserves_stats.pl - location, ccode
Comment 4 Claire Gravely 2016-10-13 07:03:50 UTC
fatal: sha1 information is lacking or useless (C4/Koha.pm)
Comment 5 Jonathan Druart 2016-10-13 08:01:05 UTC
Created attachment 56306 [details] [review]
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues

This patch replaces the call to C4::Koha::GetKohaAuthorisedValues with
Koha::AuthorisedValues->search_by_koha_field

Test plan:
AV descriptions should be displayed on the following pages:
- XSLT view - location and ccode
- Bibliographic detail, moredetail and OPAC pages - location, ccode, copynumber
- returns - location
- opac-basket - ccode, location
- The 3 reports: catalogue_stats.pl, issues_stats.pl and
  reserves_stats.pl - location, ccode
Comment 6 Claire Gravely 2016-10-13 08:33:37 UTC
I am not seeing location and ccode in Bibliographic detail, more detail, OPAC pages and OPAC basket. 

Copynumber is displaying in Bibliographic detail and more detail.

Returns page: there is a column for location but no value is displayed despite one being set.
Comment 7 Claire Gravely 2016-10-13 09:19:48 UTC
(In reply to Claire Gravely from comment #6)
> I am not seeing location and ccode in Bibliographic detail, more detail,
> OPAC pages and OPAC basket. 
> 
> Copynumber is displaying in Bibliographic detail and more detail.
> 
> Returns page: there is a column for location but no value is displayed
> despite one being set.

Also, from the 3 reports:

catalogue_stats.pl - both location and ccode missing AVs from drop down list

issues_stats.pl and  reserves_stats.pl - ccode missing AVs from list
Comment 8 Jonathan Druart 2016-10-13 10:10:40 UTC
Created attachment 56336 [details] [review]
Bug 17253: Fetch all the columns instead of only authorised_value
Comment 9 Claire Gravely 2016-10-13 11:33:44 UTC
(In reply to Jonathan Druart from comment #5)
> Created attachment 56306 [details] [review] [review]
> Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues
> 
> This patch replaces the call to C4::Koha::GetKohaAuthorisedValues with
> Koha::AuthorisedValues->search_by_koha_field
> 
> Test plan:
> AV descriptions should be displayed on the following pages:
> - XSLT view - location and ccode
> - Bibliographic detail, moredetail and OPAC pages - location, ccode,
> copynumber

[BIB Details page OK with XSLT and without XSLT] 
[BIB Moredetails page missing location with XSLT and without XSLT - also not displayed on master] 
[OPAC pages ok with XSLT and without XSLT]


> - returns - location

[ALL OK]

> - opac-basket - ccode, location

[ccode not displayed - also not displayed on master]

> - The 3 reports: catalogue_stats.pl, issues_stats.pl and
>   reserves_stats.pl - location, ccode

[ALL OK]
Comment 10 Claire Gravely 2016-10-13 12:06:24 UTC
Created attachment 56370 [details] [review]
Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues

This patch replaces the call to C4::Koha::GetKohaAuthorisedValues with
Koha::AuthorisedValues->search_by_koha_field

Test plan:
AV descriptions should be displayed on the following pages:
- XSLT view - location and ccode
- Bibliographic detail, moredetail and OPAC pages - location, ccode, copynumber
- returns - location
- opac-basket - ccode, location
- The 3 reports: catalogue_stats.pl, issues_stats.pl and
  reserves_stats.pl - location, ccode

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Comment 11 Claire Gravely 2016-10-13 12:07:33 UTC
Created attachment 56371 [details] [review]
Bug 17253: Fetch all the columns instead of only authorised_value

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Comment 12 Martin Renvoize 2016-10-13 13:51:18 UTC
Created attachment 56404 [details] [review]
[PASSED QA] Bug 17253: Koha::AuthorisedValues - Remove GetKohaAuthorisedValues

This patch replaces the call to C4::Koha::GetKohaAuthorisedValues with
Koha::AuthorisedValues->search_by_koha_field

Test plan:
AV descriptions should be displayed on the following pages:
- XSLT view - location and ccode
- Bibliographic detail, moredetail and OPAC pages - location, ccode, copynumber
- returns - location
- opac-basket - ccode, location
- The 3 reports: catalogue_stats.pl, issues_stats.pl and
  reserves_stats.pl - location, ccode

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 13 Martin Renvoize 2016-10-13 13:51:34 UTC
Created attachment 56405 [details] [review]
[PASSED QA] Bug 17253: Fetch all the columns instead of only authorised_value

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 14 Martin Renvoize 2016-10-13 13:52:49 UTC
End of tree.. passed :)
Comment 15 Kyle M Hall 2016-10-21 16:14:56 UTC
Pushed to master for 16.11, thanks Jonathan!