Koha/serials
Jonathan Druart b64e6be1c4 Bug 16157: Move the selected flag from GetAuthorisedValues to the templates
From C4::Koha::GetAuthorisedValues

    # TODO: the "selected" feature should be replaced by a utility function
    # somewhere else, it doesn't belong in here. For starters it makes
    # caching much more complicated. Or just let the UI logic handle it, it's
    # what it's for.

Indeed, it's not a job for a subroutine, the template should take care of that.
Note that a perf gain could be won with this patch \o/

Test plan:
- Edit an itemtype and check the value of the "Search category" dropdown list
- Edit a patron attribute type and check the value of the "Class" dropdown list
- Detail for a catalogue record, the Status column should be correctly
  populated if items are damaged and/or lost
- Item details for a catalogue record, the lost, damaged and withdrawn
  value should be correctly displayed
- Edit a patron, the "street type" should be correctly selected
- Create a patron attribute type linked to an authorised value list.
- Edit a patron, set a value for this attribute, edit it again. The
  correct value should be selected.
- Search for subscriptions. The 'Location' dropdown list should behave
  correctly (select the entry you have choosen before, etc.)
- Edit a subscription, the location dropdown list should select the
  correct value.
- Edit and view a suggestion with a 'reason for suggestion' set (you
  should have at least 1 OPAC_SUG AV defined)

Followed test plan, works as expected
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
2016-04-07 00:16:09 +00:00
..
acqui-search-result.pl Bug 14870: (followup) Remove stray C4::Dates 2015-11-19 13:05:06 -03:00
acqui-search.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
add_fields.pl Bug 10855: interface configuration for adding new fields to subscriptions 2015-10-02 15:10:30 -03:00
add_user_search.pl Bug 15109: Make name the default sort order for all patron searches 2015-11-17 09:49:21 -03:00
checkexpiration.pl Bug 15258: Fix Perl scripts declaring unused variables 2015-12-30 17:24:45 -07:00
claims.pl Bug 8438: Users can only claim for serials related to their branch. 2015-11-04 11:12:28 -03:00
create-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
lateissues-export.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
reorder_members.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
routing-preview.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
routing.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
serial-issues.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
serials-collection.pl Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
serials-edit.pl Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
serials-home.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
serials-search.pl Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
showpredictionpattern.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
subscription-add.pl Bug 16157: Move the selected flag from GetAuthorisedValues to the templates 2016-04-07 00:16:09 +00:00
subscription-bib-search.pl Bug 16169: Change prototype for C4::Biblio::TransformMarcToKoha 2016-04-07 00:04:21 +00:00
subscription-detail.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
subscription-frequencies.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-frequency.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-history.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
subscription-numberpattern.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-numberpatterns.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
subscription-renew.pl Bug 14969: Remove C4::Dates from serials/*.pl files 2015-11-17 15:35:57 -03:00
viewalerts.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00