Main Koha release repository https://koha-community.org
Find a file
Agustin Moyano 1332285508
Bug 22284: New methods in Koha::Library::Groups and Koha::Library
This patch adds new methods in Koha::Library::Groups and Koha::Library.
1) For Koha::Library::Groups adds get_root_ancestor that returns all root
groups for a given search parameters, for example
Koha::Library::Groups->get_root_ancestor( { id => $group_id } )
2) For Koha::Library adds
2.1) get_hold_libraries: returns all libraries (including self) that
belongs to the same holdgroups. If $self belongs to several holdgroups
it will return a distinct list of all libraries belonging to them.
2.2) validate_hold_sibling: Returns 1 if the given parameters matches any of the
libraries that belong to any of the holdgroups this library belongs. For example
$library->validate_hold_sibling( { branchcode => $branchcode } )

To test:
1) apply this patch
2) prove t/db_dependent/Koha/Libraries.t t/db_dependent/LibraryGroups.t
SUCCESS => green letters :-D
3) Sign off

Sponsored-by: VOKAL
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-03 12:58:03 +00:00
acqui Bug 14963: Set status=ORDERED for suggestions created from existing record 2020-01-02 13:08:55 +00:00
admin Bug 22284: Add new checkbox in Library Groups 2020-01-03 12:58:02 +00:00
api/v1 Bug 24232: Fix required permissions in DELETE /biblios/:biblio_id 2019-12-20 12:07:20 +00:00
authorities
basket Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
C4 Bug 22284: Control hold groups in C4::Reserves 2020-01-03 12:58:03 +00:00
catalogue Bug 23970: Make search with "Publication date" field work at any position 2019-12-10 16:13:39 +00:00
cataloguing Bug 11500: Use dateformat syspref and datepicker on additems.pl (and other item cataloguing pages) 2019-12-23 12:01:45 +00:00
circ Bug 24106: In returns.pl, don't search for item if no barcode is provided 2019-12-13 14:03:52 +00:00
clubs
course_reserves
debian Bug 19465: Document koha-create --elasticsearch-server option switch 2019-12-23 11:29:58 +00:00
docs Koha 19.12 - Dobbie is a free elf... 2019-12-02 17:13:15 +00:00
errors Bug 23329: Move error page to its own subroutine 2019-11-27 11:30:19 +00:00
etc Bug 22857: (QA follow-up) Cosmetic changes: typo, whitespace 2019-11-08 12:53:55 +00:00
ill
installer Bug 22284: New ft_local_hold_group column, and 'holgroup' enum option 2020-01-03 12:58:02 +00:00
Koha Bug 22284: New methods in Koha::Library::Groups and Koha::Library 2020-01-03 12:58:03 +00:00
koha-tmpl Bug 22284: New hold group options in smart-rules 2020-01-03 12:58:03 +00:00
labels
members Bug 24113: guarantor info lost when a duplicate is found 2019-11-27 07:51:04 +00:00
misc Bug 24217: use Modern::Perl for modules when strict is missing 2020-01-03 10:45:46 +00:00
offline_circ Bug 22600: Add 'interface' to accountlines 2019-04-10 19:43:11 +00:00
opac Bug 23913: Use a single menu to sort lists in the OPAC 2020-01-02 14:39:06 +00:00
OpenILS
patron_lists
patroncards
plugins Bug 21073: (QA follow-up) Avoid unnecessary unless/else construct 2019-06-18 17:30:44 +01:00
reports Bug 24177: (QA follow-up) Fix warning 2019-12-10 16:03:33 +00:00
reserve Bug 24168: (bug 23116 follow-up) AllowHoldPolicyOverride allows a librarian to almost place a hold on an item already on hold 2019-12-09 14:23:37 +00:00
reviews
rotating_collections
serials Bug 7047: Change ReNewSubscription prototype - use hashref 2019-12-23 12:06:45 +00:00
services
skel
suggestion Bug 14973: Fix edit a suggestion and dup found 2020-01-02 12:36:26 +00:00
svc Bug 23427: Simplify sort logic 2019-11-07 13:25:10 +00:00
t Bug 22284: New methods in Koha::Library::Groups and Koha::Library 2020-01-03 12:58:03 +00:00
tags
tmp/modified_authorities
tools Bug 23800: (QA follow-up) Remove useless line 2019-12-13 15:28:05 +00:00
virtualshelves
xt
.editorconfig
.eslintrc.json Bug 23834: Add default ESLint configuration 2019-11-03 08:02:39 +00:00
.gitignore
.htaccess Fix file permissions: if it is not a script, it should not be executable. 2010-04-16 00:40:34 -04:00
.mailmap
.scss-lint.yml
about.pl Bug 24215: Do not always display an empty entry 2019-12-18 16:06:16 +00:00
changelanguage.pl
fix-perl-path.PL
gulpfile.js
help.pl
INSTALL
Koha.pm Bug 23233: DBRev 19.12.00.002 2019-12-16 11:09:30 +00:00
koha_perl_deps.pl
kohaversion.pl
LICENSE
mainpage.pl
Makefile.PL Bug 23834: (RM follow-up) Add new file to Makefile.PL 2019-11-04 10:10:04 +00:00
MANIFEST.SKIP
package.json Bug 23025: security vulnerability detected in fstream < 1.0.12 defined in yarn.lock 2019-11-27 11:30:17 +00:00
README
README.md
README.robots
rewrite-config.PL
yarn.lock Bug 23025: Update yarn.lock 2019-11-27 11:30:17 +00:00

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo