Bug 23343 - Koha::Library->selected()
Summary: Koha::Library->selected()
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Olli-Antti Kivilahti
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 23342
  Show dependency treegraph
 
Reported: 2019-07-18 16:50 UTC by Olli-Antti Kivilahti
Modified: 2020-11-30 21:44 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 23343 - Koha::Library->selected() (1.40 KB, patch)
2019-07-18 17:51 UTC, Olli-Antti Kivilahti
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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?