From colin.campbell at ptfs-europe.com Mon Jan 6 18:16:42 2014 From: colin.campbell at ptfs-europe.com (Colin Campbell) Date: Mon, 6 Jan 2014 17:16:42 +0000 Subject: [Koha-patches] [PATCH] Bug 11480 Fix invalid assumptions in test Message-ID: <1389028602-17089-1-git-send-email-colin.campbell@ptfs-europe.com> Tests for Output::JSON made the invalid assumption that the hash keys of the modules internal structure will always be returned in the same sequence. A hash is an unordered structure. as of perl 5.18 this has beem reinforced by random seeding of the hashing function. See the info in perldelta and the doc for JSON This patch changes the tests to be sequence neutral where the previous test was testing that a new element was added and an existing one was untouched these have been separated into individual tests. Some typos in the messages have been corrected --- t/Output_JSONStream.t | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t/Output_JSONStream.t b/t/Output_JSONStream.t index 1d0cf35..13702a6 100755 --- a/t/Output_JSONStream.t +++ b/t/Output_JSONStream.t @@ -6,7 +6,7 @@ use strict; use warnings; -use Test::More tests => 8; +use Test::More tests => 10; BEGIN { use_ok('C4::Output::JSONStream'); @@ -17,14 +17,16 @@ is($json->output,'{}',"Making sure JSON output is blank just after its created." $json->param( issues => [ 'yes!', 'please', 'no' ] ); is($json->output,'{"issues":["yes!","please","no"]}',"Making sure JSON output has added what we told it to."); $json->param( stuff => ['realia'] ); -is($json->output,'{"issues":["yes!","please","no"],"stuff":["realia"]}',"Making sure JSON output has added more params correctly."); +like($json->output,'/"stuff":\["realia"\]/',"Making sure JSON output has added more params correctly."); +like($json->output,'/"issues":\["yes!","please","no"\]/',"Making sure existing elements remain in JSON output"); $json->param( stuff => ['fun','love'] ); -is($json->output,'{"issues":["yes!","please","no"],"stuff":["fun","love"]}',"Making sure JSON output can obverwrite params."); +like($json->output,'/"stuff":\["fun","love"\]/',"Making sure JSON output can overwrite params."); +like($json->output,'/"issues":\["yes!","please","no"\]/',"Making non overwitten elements remain in JSON output"); eval{$json->param( die )}; ok($@,'Dies'); eval{$json->param( die => ['yes','sure','now'])}; -ok(!$@,'Dosent die.'); +ok(!$@,'Does not die.'); eval{$json->param( die => ['yes','sure','now'], die2 =>)}; ok($@,'Dies.'); -- 1.8.4.2 From nengard at bywatersolutions.com Mon Jan 6 19:16:52 2014 From: nengard at bywatersolutions.com (Nicole C. Engard) Date: Mon, 6 Jan 2014 12:16:52 -0600 Subject: [Koha-patches] [PATCH] Bug 11483: Add missing serial help files Message-ID: <1389032212-2422-1-git-send-email-nengard@bywatersolutions.com> The help files for the Serial Numbering Patterns and Frequencies pages were missing. This patch adds them. To test: * Visit the two new serial pages * Click Help * Confirm text and links are right --- .../help/serials/subscription-frequencies.tt | 11 +++++++++++ .../help/serials/subscription-numberpatterns.tt | 13 +++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-frequencies.tt create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-numberpatterns.tt diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-frequencies.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-frequencies.tt new file mode 100644 index 0000000..c404a85 --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-frequencies.tt @@ -0,0 +1,11 @@ +[% INCLUDE 'help-top.inc' %] + +
Koha keeps a record of publication frequencies for easy management and duplication.
+ +From this page you can view all of the exisiting frequencies in your system and create new ones.
+ +See the full documentation for Serial Frequencies in the manual (online).
+ +[% INCLUDE 'help-bottom.inc' %] \ No newline at end of file diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-numberpatterns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-numberpatterns.tt new file mode 100644 index 0000000..7479f9d --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/help/serials/subscription-numberpatterns.tt @@ -0,0 +1,13 @@ +[% INCLUDE 'help-top.inc' %] + +Every time you create a new numbering pattern in serials you can save it for later use. These patters are accessible via the Manage numbering patterns page.
+ +This page will list for you the numbering patterns you have saved in the past as well as a few canned patterns.
+ +It will also allow you to create a new numbering pattern without first adding a subscription. To add new new pattern click 'New numbering pattern' at the top of the list of patterns.
+ +See the full documentation for Serial Numbering Patterns in the manual (online).
+ +[% INCLUDE 'help-bottom.inc' %] \ No newline at end of file -- 1.7.2.3 From jendayi30 at gmail.com Wed Jan 8 19:17:16 2014 From: jendayi30 at gmail.com (J B) Date: Wed, 8 Jan 2014 12:17:16 -0600 Subject: [Koha-patches] [PATCH 2/2] Bug 11415: Add syspref to toggle SCO receipt printing Message-ID: