Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
Tomas Cohen Arazi f968a65793 Bug 29084: Update article requests-related Koha::Biblio methods to use relationships
This patch makes Koha::Patron->article_requests use the underlying DBIC
relationship and _new_from_dbic instead of a plain search. It also
refactors 'article_requests_current' and 'article_requests_finished' to
use ->article_requests, as well as the new methods introduced by bug
29082 for filtering.

No behavior change should take place.

To test:
1. Apply the unit tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t \
           t/db_dependent/ArticleRequests.t
=> SUCCESS: Tests pass!
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 29084: Unit tests

This patch adds missing tests for Koha::Biblio->article_requests and
reorganizes (and extends) the tests for 'article_requests_current' and
'article_requests_finished' that were originally in ArticleRequests.t
into Koha/Biblio.t as we do now.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/ArticleRequests.t \
           t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Bug 29084: Remove article_requests_finished and article_requests_current

This patch removes those methods that are not really needed. Templates
are adjusted to use the expected combination of
->article_requests->filter_by_current.

To test:
1. Apply this patch
2. Visit a biblio with article requests
=> SUCCESS: All works
3. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Biblio.t
=> SUCCESS: Tests pass, less tests.
4. Sign off :-D

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-07 10:54:59 +02:00
..
article-requests.tt Bug 27947: Add cancellation reason to article request 2021-10-06 10:09:25 +02:00
bookcount.tt
branchoverdues.tt
branchtransfers.tt Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
checkout-notes.tt
circulation-home.tt
circulation.tt Bug 29083: Update article requests-related Koha::Patron methods to use relationships 2021-10-07 10:54:59 +02:00
circulation_batch_checkouts.tt Bug 28937: Use Flatpickr on circulation and patron pages 2021-09-29 12:47:33 +02:00
offline-mf.tt
offline.tt Bug 28937: Use Flatpickr on circulation and patron pages 2021-09-29 12:47:33 +02:00
on-site_checkouts.tt
overdue.tt Bug 28937: Use Flatpickr on circulation and patron pages 2021-09-29 12:47:33 +02:00
pendingreserves.tt Bug 29148: Check if hold is item or bib level 2021-10-05 09:17:20 +02:00
printslip.tt
renew.tt
request-article.tt Bug 29084: Update article requests-related Koha::Biblio methods to use relationships 2021-10-07 10:54:59 +02:00
reserveratios.tt Bug 28321: Use template block for display of items in search results 2021-10-05 10:58:13 +02:00
returns.tt
set-library.tt
transfers_to_send.tt
transferstoreceive.tt
view_holdsqueue.tt
waitingreserves.tt Bug 23678: Allow cancel holds in bulk 2021-10-01 16:02:58 +02:00