[open-ils-commits] [GIT] Evergreen ILS branch master updated. cb37d045a61603844c4555be54bd8c213c333f40

Evergreen Git git at git.evergreen-ils.org
Fri Feb 17 12:52:18 EST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  cb37d045a61603844c4555be54bd8c213c333f40 (commit)
       via  b048818991f7a027d76d8ba7e5abb7f7660e7c58 (commit)
      from  82732c5b76ccc8ee9e5a7efc427bab39eaf9d121 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cb37d045a61603844c4555be54bd8c213c333f40
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Wed Feb 15 09:02:44 2017 -0500

    Add Release Note for new helper
    
    I can forget that while a feature seems straigtforward
    enough it essentially doesn't exist if you don't tell
    anyone about it.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/docs/RELEASE_NOTES_NEXT/Administration/new-action-trigger-helper.adoc b/docs/RELEASE_NOTES_NEXT/Administration/new-action-trigger-helper.adoc
new file mode 100644
index 0000000..346e746
--- /dev/null
+++ b/docs/RELEASE_NOTES_NEXT/Administration/new-action-trigger-helper.adoc
@@ -0,0 +1,7 @@
+get_org_unit_ancestor_at_depth Helper Added to Action Trigger Reactor Helpers
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+In action trigger templates it's now possible to call
+helpers.get_org_unit_ancestor_at_depth($id_or_aou, $depth) in order to retrieve
+a fleshed aou for the target aou's ancestor at the chosen depth. This could be
+used to retrieve the name of the library system rather than a specific branch
+name, for instance.

commit b048818991f7a027d76d8ba7e5abb7f7660e7c58
Author: Jason Boyer <jboyer at library.in.gov>
Date:   Fri Feb 3 16:23:28 2017 -0500

    LP1661747: get_org_unit_ancestor_at_depth Helper
    
    Add a helper to the A/T system to retrieve an ou's
    ancestor at the specified depth in the tree.
    
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
index 7b96edb..0df0ab0 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/Reactor.pm
@@ -106,6 +106,13 @@ $_TT_helpers = {
         return new_editor()->retrieve_actor_org_unit($org_id);
     },
 
+    get_org_unit_ancestor_at_depth => sub {
+      my $org_id = shift;
+      my $depth = shift;
+      $org_id = $org_id->id if ref $org_id;
+      return new_editor()->retrieve_actor_org_unit($U->org_unit_ancestor_at_depth($org_id, $depth));
+    }, 
+
     # given a copy, returns the title and author in a hash
     get_copy_bib_basics => sub {
         my $copy_id = shift;

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Trigger/Reactor.pm     |    7 +++++++
 .../Administration/new-action-trigger-helper.adoc  |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 docs/RELEASE_NOTES_NEXT/Administration/new-action-trigger-helper.adoc


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list