[koha-commits] main Koha release repository branch master updated. v3.22.00-746-g74fbe01

Git repo owner gitmaster at git.koha-community.org
Thu Mar 3 00:05:38 CET 2016


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 "main Koha release repository".

The branch, master has been updated
       via  74fbe017efd81a7e686aff4e9a5fa944793f27d5 (commit)
       via  5e36ca78180238b98cd8bda4aacf241e5eb0e00f (commit)
       via  c631fa0924ba54f42dc70616f5462d4b277f28b8 (commit)
      from  fd74b271db61bf88368c803b1b2bfb76e62b0e6f (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 74fbe017efd81a7e686aff4e9a5fa944793f27d5
Author: Brendan A Gallagher <brendan at bywatersolutions.com>
Date:   Wed Mar 2 23:08:52 2016 +0000

    DBrev Bug 11023 - Automatic item modification by age (Was "Toggle new
            status for items")

commit 5e36ca78180238b98cd8bda4aacf241e5eb0e00f
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date:   Wed Jun 25 15:13:45 2014 +0200

     Bug 11023: DB changes
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>

commit c631fa0924ba54f42dc70616f5462d4b277f28b8
Author: Jonathan Druart <jonathan.druart at biblibre.com>
Date:   Wed Sep 25 16:45:14 2013 +0200

     Bug 11023: Automatic item modification by age (Was Toggle "new" status")
    
    This patch adds:
    - a new DB field items.new.
    - a new page to configure this new status
      (tools/toggle_new_status.pl).
    - a new cronjob script (misc/cronjobs/automatic_item_modification_by_age.pl
    was misc/cronjob/toggle_new_status.pl)
    
    Why this status is useful for some libraries ?
    The use cases are:
    - to know easily what are the new items (with a simple sql query).
    - to display an icon in the search results.
    - issuing rules can be adapt for new items. Automatically (using the
      cronjob script), the status change (depending the configuration) and
      the item can be issued, for example.
    - a RSS/Atom feeds can be created on these new items.
    
    Test plan:
    - log in with a librarian having the tools > items_batchmod permission.
    - navigate to Home > Tools > Automatic item modifications by age (was: Toggle new status)
    - click on the edit button
    - there are 3 "blocks":
      * duration: the duration during an item is considered as new.
      * conditions: the status will change only if the conditions are meet.
      * substitutions: if there is no substitution, no action will be done.
        You can add some change to apply to the matching items.
        E.g. ccode=3
             new=''
        If the value is an empty string (in other words, the input does not
        contain anything), the field will be deleted.
      You can create as many rules as you want.
    - test the interface : add/remove rule, conditions, substitutions,
      submit the form, edit, etc.
      (There is a looot of JS everywhere, so certainly a looot of bugs...).
    - when you have your rules defined, you can now launch the cronjob
      script without any parameter.
      A report will be displayed with the matching itemnumber and the
      substitutions to apply. Verify results are consistent.
    - launch the script with the -c argument and verify values have been
      modified depending the substitution rules.
    
    Signed-off-by: juliette et remy <juliette.levast at iepg.fr>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Add the ability to specify fields from biblioitems table.
    
    Test plan:
    Same as before but try with fields from the biblioitems table.
    
    Signed-off-by: juliette et remy <juliette.levast at iepg.fr>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Add UT for C4::Items::ToggleNewStatus
    
    Test plan:
    prove t/db_dependent/Items/ToggleNewStatus.t
    
    Signed-off-by: juliette et remy <juliette.levast at iepg.fr>
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: FIX - condition on biblioitems table does not work
    
    If a rule contains a condition on the biblioitems table, the match won't
    work. This patch fixes this issue.
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Use DBIx-Class to retrieve column names
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Don't use the biblioitems fields for the subtitution
    
    It's dangerous to allow a change on the biblioitems fields with this
    feature.
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Rename the duration parameter with 'age'
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: The age parameter should be a number
    
    The template should check if the age parameter is correctly filled
    (should be a number).
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023: Change the name of the feature
    
    Originaly this feature only permits to update the "new" field.
    Now all item fields can be updated.
    The name of the feature is now "Automatic item modifications by age".
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023 [QA Followup]
    
    * Update DB version
    * Fix capitalization error
    * Rename misc/cronjobs/toggle_new_status.pl to misc/cronjobs/automatic_item_modification_by_age.pl
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Bug 11023 [QA Followup] - Complete the renaming of "toggle new status" to "automatic item modification by age"
    
    Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
    
    Signed-off-by: Brendan A Gallagher <brendan at bywatersolutions.com>

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

Summary of changes:
 C4/Items.pm                                        |   96 ++++++-
 installer/data/mysql/kohastructure.sql             |    2 +
 installer/data/mysql/updatedatabase.pl             |   13 +
 .../intranet-tmpl/prog/en/css/staff-global.css     |   30 ++
 .../tools/automatic_item_modification_by_age.tt    |   45 +++
 .../tools/automatic_item_modification_by_age.tt    |  294 ++++++++++++++++++++
 .../prog/en/modules/tools/tools-home.tt            |    5 +
 .../cronjobs/automatic_item_modification_by_age.pl |  106 +++++++
 .../Items/AutomaticItemModificationByAge.t         |  283 +++++++++++++++++++
 tools/automatic_item_modification_by_age.pl        |  119 ++++++++
 10 files changed, 992 insertions(+), 1 deletion(-)
 create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/tools/automatic_item_modification_by_age.tt
 create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/tools/automatic_item_modification_by_age.tt
 create mode 100755 misc/cronjobs/automatic_item_modification_by_age.pl
 create mode 100644 t/db_dependent/Items/AutomaticItemModificationByAge.t
 create mode 100755 tools/automatic_item_modification_by_age.pl


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list