Bug 23343

Summary: Koha::Library->selected()
Product: Koha Reporter: Olli-Antti Kivilahti <olli-antti.kivilahti>
Component: CirculationAssignee: Olli-Antti Kivilahti <olli-antti.kivilahti>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, jonathan.druart, katrin.fischer, kyle.m.hall
Version: Main   
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:    
Bug Blocks: 23342    
Attachments: Bug 23343 - Koha::Library->selected()

Description Olli-Antti Kivilahti 2019-07-18 16:50:30 UTC
Adds a generic ->selected() to Koha::Library so the Koha::Object can be transparently used with Template::Toolkit to distinguish the currently selected library from a list of other libraries in a <select> -html element.
Comment 1 Olli-Antti Kivilahti 2019-07-18 16:57:14 UTC
Speaking specifically about:

    [% PROCESS options_for_libraries libraries => branches %]
Comment 2 Olli-Antti Kivilahti 2019-07-18 17:51:05 UTC
Created attachment 91603 [details] [review]
Bug 23343 - Koha::Library->selected()

Adds a generic ->selected() to Koha::Library so the Koha::Object can be transparently
used with Template::Toolkit to distinguish the currently selected library from a list
of other libraries in a <select> -html element.

Sponsored-by: The National Library of Finland
Comment 3 Jonathan Druart 2020-02-26 15:36:44 UTC
What you are looking for is options_for_libraries from html_helpers.inc.
Comment 4 Katrin Fischer 2020-03-30 21:40:57 UTC
(In reply to Jonathan Druart from comment #3)
> What you are looking for is options_for_libraries from html_helpers.inc.

Should this be closed then?