]> git.koha-community.org Git - koha.git/commit
Bug 24201: (follow-up) add desk choice with library choice
authorNicolas Legrand <nicolas.legrand@bulac.fr>
Tue, 28 Apr 2020 10:02:15 +0000 (12:02 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Aug 2020 14:54:40 +0000 (16:54 +0200)
commit4163f24014addb4cc5fddbb854f84617ffffb988
treec7954a463793d0f1f81a3a6873726b57eb43c37e
parent2d7fd8c09265880bf7ec548877569d698d14cdbb
Bug 24201: (follow-up) add desk choice with library choice

You should be able to add desk choice when you are logging in or
changing library.

Test plan:

1. apply patch
2. have at least three libraries, one without desk, one with one and
one with a few.
3. At login, when choosing a library, it should enable all desks it
has. Pick one.
4. the desk id and name should be set in your session and appear in
the top right, next to the library name.
5. change library and desks from intranet (at the set-library.pl page)
6. you should have the same behaviours
7. if you have a library without a desk, it should prompt you a '---'
option and no desks will be attached to the session.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
13 files changed:
C4/Auth.pm
Koha/Template/Plugin/Desks.pm
circ/selectdesk.pl [deleted file]
circ/set-library.pl
koha-tmpl/intranet-tmpl/prog/en/includes/circ-nav.inc
koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc
koha-tmpl/intranet-tmpl/prog/en/includes/intranet-bottom.inc
koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc
koha-tmpl/intranet-tmpl/prog/en/modules/auth.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/set-library.tt
koha-tmpl/intranet-tmpl/prog/js/desk_selection.js [new file with mode: 0644]