Koha-clms/t/db_dependent/Koha
Aleisha Amohia 559801d408
Bug 15516: Allow to reserve first available item from a group of titles
It can be useful, for instance, if a library has the same title from
different publishers (so 1 title but several biblio records) but the
user only wants a copy of the book, regardless of the publisher.

Test plan:
0. Run updatedatabase.pl and misc/devel/update_dbix_class_files.pl
1. Go to intranet search, display some results, click on some checkboxes
and click on 'Place hold' button at the top of the results.
2. Search for a patron
3. Check the 'Treat as hold group' checkbox
4. Click on 'Place hold'
5. In the next screen you should see all the holds you placed with the
additional text '(part of a hold group)' in Details column.
6. Click on the "hold group" link. A modal window should appear with
the content of the hold group (a list of holds)
7. Check in an item of one of the reserved biblios and confirm the hold
8. The hold status is changed to Waiting, and all other holds are deleted.
The other holds will also be removed from the holds queue.
9. Confirm tests pass
- t/db_dependent/Koha/Holds.t
- t/db_dependent/Reserves/HoldGroup.t
Note: the "hold group" link is displayed in the following pages:
- reserve/request.pl
- circ/circulation.pl
- members/moremember.pl
- circ/pendingreserves.pl
- circ/view_holdsqueue.pl
Note: A hold group is counted as only one hold

Sponsored-by: Catalyst IT

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-09-03 11:42:00 -06:00
..
Account Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Acquisition Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
Auth Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
BackgroundJob Bug 26869: Unit tests 2025-03-17 11:59:49 +01:00
BackgroundJobs Bug 37115: Add unit tests 2025-08-01 13:22:54 -06:00
Biblio Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Cash Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Charges Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Checkouts Bug 38944: Correctly catch warnings raised by DBI 2025-03-13 17:25:05 +01:00
CirculationRules Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Club Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Config Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Database Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ERM Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Edifact Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Filter Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ILL Bug 39917: (QA follow-up) Correct spelling and remove <p> tag around form 2025-08-01 13:22:52 -06:00
Import Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Item Bug 32034: Add more tests 2025-04-25 18:35:03 +02:00
Items Bug 23010: More unit tests 2025-06-24 16:10:23 -06:00
Library Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Notice Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
OAI/Server Bug 39857: Regression tests 2025-05-09 09:12:04 +02:00
Object/Mixin Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Objects Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Old Bug 40438: Remove warnings from Koha/Old/Hold.t 2025-07-18 11:09:57 -06:00
Patron Bug 22632: (QA follow-up) Add no warnings test 2025-08-01 13:22:58 -06:00
Patrons Bug 40380: Remove warnings from Patrons/Import.t - Argument "" isn't numeric in numeric eq (==) 2025-07-18 11:09:49 -06:00
Plugins Bug 34978: Simplify tests logic 2025-08-14 16:05:58 -06:00
Policy Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Preservation Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
REST Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
SMTP Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
SearchEngine Bug 40381: Remove warning from Koha/SearchEngine/Elasticsearch/ExportConfig.t 2025-07-18 11:10:01 -06:00
Subscription Bug 39325: (follow-up) A few minor corrections 2025-04-28 18:51:29 +02:00
Tags Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Template/Plugin Bug 40018: Remove warnings from Koha/Template/Plugin/Koha.t 2025-06-06 09:41:16 -06:00
Ticket Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
UI/Form/Builder Bug 40003: Add a test 2025-06-06 09:41:17 -06:00
XSLT Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Z3950Responder Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Account.t Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
ActionLogs.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
AdditionalContents.t Bug 40020: Remove warnings from Koha/AdditionalContents.t 2025-06-06 09:41:14 -06:00
AdditionalField.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ApiKey.t Bug 38944: Correctly catch warnings raised by DBI 2025-03-13 17:25:05 +01:00
ArticleRequest.t Bug 39191: Add `format` parameter to Koha::Exceptions::ArticleRequest::WrongFormat 2025-04-23 09:35:20 +02:00
ArticleRequests.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Authorities.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Authority.t Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
BackgroundJob.t Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
BackgroundJobs.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Biblio.t Bug 39545: (QA follow-up) Restore 240 field processing for subfield s 2025-07-11 15:26:54 -06:00
BiblioFrameworks.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Biblios.t Bug 37651: Unit tests 2025-08-29 10:43:31 -06:00
Booking.t Bug 40374: Remove warnings from Koha/Booking.t 2025-07-18 11:10:03 -06:00
Bookings.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Checkout.t Bug 38184: (follow-up) Correct the number of tests 2025-03-20 09:03:01 +01:00
Checkouts.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
CirculationRules.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Cities.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ClassSortRules.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ClassSources.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
ClassSplitRules.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Course.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Courses.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
CoverImages.t Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
CsvProfiles.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
CurbsidePickups.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Database.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Desks.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
EDI.t Bug 40387: Comment some of the superflous diag 2025-07-23 16:36:35 -06:00
Encryption.t Bug 40444: Add a test to ensure all Perl test files use Test::NoWarnings 2025-07-28 16:26:36 -06:00
Hold.t Bug 40672: Reset desk_id when reverting waiting holds 2025-08-29 11:08:52 -06:00
Holds.t Bug 15516: Allow to reserve first available item from a group of titles 2025-09-03 11:42:00 -06:00
Installer.t Bug 40437: Remove warning from Koha/Installer.t 2025-07-18 11:09:57 -06:00
Item.t Bug 40331: Return existing transfer if requesting a new transfer that is identical 2025-09-03 11:41:58 -06:00
ItemTypes.t Bug 20644: Add checkprevcheckout on item types 2025-08-20 13:42:58 -06:00
Items.t Bug 37334: Add search tests 2025-05-15 08:34:13 +02:00
KeyboardShortcuts.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Libraries.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Library.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
MarcOrder.t Bug 39752: (QA follow-up) Unit test 2025-04-29 17:19:30 +02:00
MarcSubfieldStructures.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Notice_Util.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Notices.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
OAIHarvester.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
OAIServers.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Object.t Bug 38944: Fix for Mysql8 2025-05-06 18:48:15 +02:00
Objects.t Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
Old.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Patron.t Bug 40608: (QA follow-up) Delete notice in test, adjust about.tt 2025-08-13 13:39:49 -06:00
Patron_generate_userid.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Patrons.t Bug 40337: Handle enum in Koha::Patron->anonymize 2025-07-10 17:33:56 -06:00
Pseudonymization.t Bug 37901: Add Tests 2025-08-20 13:43:26 -06:00
PseudonymizedTransaction.t Bug 39652: Rename new_from_statistic 2025-04-24 19:53:17 +02:00
Quotes.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Ratings.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Recall.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Recalls.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
RecordSource.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Reports.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Reviews.t Bug 39325: Automatic fix 2025-04-28 18:51:22 +02:00
SMS_Providers.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
SearchField.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
SearchFilters.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Session.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
SharedContent.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Statistic.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Statistics.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Subscription.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Suggestion.t Bug 33430: Add strings_map method 2025-05-19 18:54:20 +02:00
Suggestions.t Bug 38944: Correctly catch warnings raised by DBI 2025-03-13 17:25:05 +01:00
Tags.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Ticket.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Virtualshelf.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Virtualshelves.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00
Z3950Servers.t Bug 38944: Add Test::NoWarnings to tests no producing warnings 2025-03-13 17:25:03 +01:00