]> git.koha-community.org Git - koha.git/log
koha.git
15 years agoAdding release notes for 3.0.1
Henri-Damien LAURENT [Mon, 2 Feb 2009 15:30:25 +0000 (16:30 +0100)]
Adding release notes for 3.0.1

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoFollowup : Adding System Preference AllowNotForLoanOverride
Henri-Damien LAURENT [Mon, 2 Feb 2009 15:06:21 +0000 (16:06 +0100)]
Followup : Adding System Preference AllowNotForLoanOverride

this system preference was created but not added to system preferences
Changing the kohaversion in kohaversion script

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoUpdating French translations
Henri-Damien LAURENT [Mon, 2 Feb 2009 15:07:36 +0000 (16:07 +0100)]
Updating French translations

Staff trnalstaions update

15 years agoAdding System Preference AllowNotForLoanOverride
Henri-Damien LAURENT [Mon, 2 Feb 2009 15:06:21 +0000 (16:06 +0100)]
Adding System Preference AllowNotForLoanOverride

this system preference was created but not added to system preferences

15 years agoUpdated translations for French, German and Croation
Chris Cormack [Sun, 1 Feb 2009 10:42:01 +0000 (23:42 +1300)]
Updated translations for French, German and Croation

15 years ago(bug #2937) use check_date in C4::Serials::hassubscriptionexpired
Nahuel ANGELINETTI [Fri, 30 Jan 2009 15:48:02 +0000 (16:48 +0100)]
(bug #2937) use check_date in C4::Serials::hassubscriptionexpired

This patch change the date check in hassubscriptionexpired to use Date_Calc::check_date

15 years agoNeeded authorised values list for french frameworks.
Henri-Damien LAURENT [Fri, 30 Jan 2009 14:10:54 +0000 (15:10 +0100)]
Needed authorised values list for french frameworks.

15 years agoAdding some null words and mappings for Œ œ
Henri-Damien LAURENT [Wed, 28 Jan 2009 16:39:10 +0000 (17:39 +0100)]
Adding some null words and mappings for Œ œ

15 years agoBug Fixing duplicate = in labels management.
Henri-Damien LAURENT [Wed, 28 Jan 2009 14:18:41 +0000 (15:18 +0100)]
Bug Fixing duplicate = in labels management.

15 years agoRevert "more readable version of the init and new sub"
Henri-Damien LAURENT [Wed, 28 Jan 2009 13:55:47 +0000 (14:55 +0100)]
Revert "more readable version of the init and new sub"

This reverts commit 5a74b4fa0cf79163755560daed640ead85fa0b71.

15 years agoRevert "Bug Fixing : Sub Output was mistakenly removed."
Henri-Damien LAURENT [Wed, 28 Jan 2009 13:54:56 +0000 (14:54 +0100)]
Revert "Bug Fixing : Sub Output was mistakenly removed."

This reverts commit cf355ab195e19c7d9ac37f6fc563141b5190a231.

15 years agoBug Fixing : Sub Output was mistakenly removed.
Henri-Damien LAURENT [Tue, 27 Jan 2009 15:32:53 +0000 (16:32 +0100)]
Bug Fixing : Sub Output was mistakenly removed.

15 years agoFrench OPAC translation Update
Henri-Damien LAURENT [Fri, 23 Jan 2009 17:41:19 +0000 (18:41 +0100)]
French OPAC translation Update

15 years agoReverting from MARC::File::XML parser forcing
Henri-Damien LAURENT [Fri, 23 Jan 2009 17:38:37 +0000 (18:38 +0100)]
Reverting from MARC::File::XML parser forcing

15 years agoAuthtypecode return an warning even if subfield is ignored
Nahuel ANGELINETTI [Thu, 22 Jan 2009 10:51:39 +0000 (11:51 +0100)]
Authtypecode return an warning even if subfield is ignored

this patch just add a condition to the sql request to return a warning
only if authtypecode is not in an ignored subfield.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoBugfix #2921 OPACAmazonContent syspref not used
Frederic Demians [Wed, 21 Jan 2009 08:01:52 +0000 (09:01 +0100)]
Bugfix #2921 OPACAmazonContent syspref not used

In opac-results.tmpl and opac-detail.tmpl, AmazonContent is used
rather than OPACAmazonContent to enable/disable Amazon book jacket.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoMinor rework of template js.
Joe Atzberger [Wed, 21 Jan 2009 01:18:25 +0000 (19:18 -0600)]
Minor rework of template js.

Lines explicitly ended with semicolons.  Allow some better behavior if TMPL_VAR's
are undefined or zero.

Note FIXME added.  I believe this is part of the fragmentary integration of
Katipo code for GST.  Would be obliged if someone with access there can confirm.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoTrivial comment typos corrected.
Joe Atzberger [Wed, 21 Jan 2009 01:18:24 +0000 (19:18 -0600)]
Trivial comment typos corrected.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoBasic cleanup of fixup_cardnumber
Joe Atzberger [Wed, 21 Jan 2009 01:18:23 +0000 (19:18 -0600)]
Basic cleanup of fixup_cardnumber

Avoid warning on syspref "checkdigit" undefined.
Functionality essentially unchanged.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoPrevent js failure if syspref "gist" is undefined.
Joe Atzberger [Wed, 21 Jan 2009 01:18:22 +0000 (19:18 -0600)]
Prevent js failure if syspref "gist" is undefined.

The javascript is malformed and therefore fails the onsubmit check if
gist does not receive a value.  This patch allows failover to default 0.
Also removed an unused dbh.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoBlock warning on detail.pl.
Joe Atzberger [Wed, 21 Jan 2009 01:18:20 +0000 (19:18 -0600)]
Block warning on detail.pl.

If Amazon doesn't have an avg. rating number defined, then we cannot multiply it
by 20 without the following warning:

    detail.pl: Use of uninitialized value in multiplication (*)
    at /home/user/kohaclone/catalogue/detail.pl line 228.

So the important part of this patch is || 0 on the $average_rating assignment.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #2917) editing authority marc field structure doesn't workl
Nahuel ANGELINETTI [Tue, 20 Jan 2009 12:46:58 +0000 (13:46 +0100)]
(bug #2917) editing authority marc field structure doesn't workl

This patch add a field in the ->execute() statement which was missing.
The sql request have 8 args, and only 7 was passed.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoAutoselect marcflavour in marc import
Nahuel ANGELINETTI [Tue, 20 Jan 2009 14:59:23 +0000 (15:59 +0100)]
Autoselect marcflavour in marc import

This patch is writted by Paul Poulain.
It auto-select the marcflavour from syspref in the stage marc import.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoCorrect capitalization on CGI::Session::Serialize::yaml
Joe Atzberger [Sat, 17 Jan 2009 00:31:55 +0000 (18:31 -0600)]
Correct capitalization on CGI::Session::Serialize::yaml

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoFixes command-line 'number' arg in bulkauthimport.pl.
Mason James [Fri, 16 Jan 2009 10:07:12 +0000 (23:07 +1300)]
Fixes command-line 'number' arg in bulkauthimport.pl.

for HEAD and 3.0.x

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agofix to remove blank newlines from labels
Mason James [Fri, 16 Jan 2009 08:16:27 +0000 (21:16 +1300)]
fix to remove blank newlines from labels

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago_set_defaults_for_add easier to read
Marc Chantreux [Fri, 16 Jan 2009 09:23:27 +0000 (09:23 +0000)]
_set_defaults_for_add easier to read

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agomore readable version of the init and new sub
Marc Chantreux [Thu, 15 Jan 2009 23:18:06 +0000 (23:18 +0000)]
more readable version of the init and new sub

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #2914) improve the deletion
Nahuel ANGELINETTI [Thu, 15 Jan 2009 08:49:48 +0000 (09:49 +0100)]
(bug #2914) improve the deletion

this patch disable the button to delete all of items if there is no item attached to the marc record.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #2914) delete all items of a notice
Nahuel ANGELINETTI [Wed, 14 Jan 2009 15:07:34 +0000 (16:07 +0100)]
(bug #2914) delete all items of a notice

This patch allow the librarian to delete all items attached to a notice in one click.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #2913) show "--" on repeated fields
Nahuel ANGELINETTI [Wed, 14 Jan 2009 12:26:51 +0000 (13:26 +0100)]
(bug #2913) show "--" on repeated fields

This patch just transform the script to set the field title as "--" if it was already shown.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoFormat marc notes
Nahuel ANGELINETTI [Tue, 13 Jan 2009 10:33:54 +0000 (11:33 +0100)]
Format marc notes

this patch add a filter to notes, it transform \n in <br />

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoCorrection: Greybox js should be loaded only if XSLTDetailsDisplay is on (not only...
Owen Leonard [Mon, 12 Jan 2009 14:55:21 +0000 (08:55 -0600)]
Correction: Greybox js should be loaded only if XSLTDetailsDisplay is on (not only if GoogleJackets is on).

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoBasic reformat of section in Search.pm
Joe Atzberger [Fri, 9 Jan 2009 21:42:27 +0000 (15:42 -0600)]
Basic reformat of section in Search.pm

In for loops, replace all-inclusive conditional blocks like:
    for (@foo) {
        if (test) {
            block;
        }
    }

with conditional use of "next":
    for (@foo) {
        test or next;
        block;
    }

This reduces the number of unnecessarily nested blocks, and the
overall number of lines.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #1578) change the shelf COinS support
Nahuel ANGELINETTI [Fri, 9 Jan 2009 10:36:47 +0000 (11:36 +0100)]
(bug #1578) change the shelf COinS support

this change the old COinS support, and now use C4::Biblio::GetCOinSBiblio().

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoAdd mc-loc definition for ccl.properties.
Ryan Higgins [Thu, 8 Jan 2009 18:03:42 +0000 (13:03 -0500)]
Add mc-loc definition for ccl.properties.

Advances search limit by shelving location doesn't work due to
missing ccl definition in default installation.  Once updated,
the zebradb will need to be reindexed.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agobug 2505: enable warnings for labels/label-print-pdf.pl
Galen Charlton [Mon, 5 Jan 2009 22:33:57 +0000 (16:33 -0600)]
bug 2505: enable warnings for labels/label-print-pdf.pl

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #2893) Allow loan forcing if a syspref is set
Nahuel ANGELINETTI [Fri, 2 Jan 2009 15:55:32 +0000 (16:55 +0100)]
(bug #2893) Allow loan forcing if a syspref is set

If the syspref 'AllowNotForLoanForcing'(YESNO) is set to YES, the librarian is able to force a loan on an item set as "not for
loan".
If the item is not for loan and the syspref is set to YES, koha will ask to the librarian if he really want to check-out it,
else do nothing.

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years ago(bug #1578) Add the (quasi)full COinS(Zotero) support
Nahuel ANGELINETTI [Fri, 2 Jan 2009 14:39:35 +0000 (15:39 +0100)]
(bug #1578) Add the (quasi)full COinS(Zotero) support

this patch do a lot of things :
 * Add the function GetCOinSBiblio in C4::Biblio, return the COinS value that must be put in a span title
   This will be usefull for OpenURL support.

 * Replace the span in opac-detail, and put the var get from GetCOinSBiblio
 * Fix an <img> tag that wasn't autoclosed
 * Add the COinS in search result
 * Full COinS support of UNIMARC, the MARC21 support should be improved to provide all kind of document types

Signed-off-by: Henri-Damien LAURENT <henridamien@koha-fr.org>
15 years agoUpdating updatedatabse in order to work in any installs
Henri-Damien LAURENT [Tue, 20 Jan 2009 21:41:32 +0000 (22:41 +0100)]
Updating updatedatabse in order to work in any installs

15 years ago(bug #2909) fix the attachment base64 encoding
Nahuel ANGELINETTI [Mon, 12 Jan 2009 09:45:53 +0000 (10:45 +0100)]
(bug #2909) fix the attachment base64 encoding

this patch change the attachment encoding, else if the file is too large, koha throws an error.
This solution was found on koha list in a Joshua's e-mail

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoUnescape some double quotes, that make a validation error.
Nahuel ANGELINETTI [Wed, 7 Jan 2009 15:23:14 +0000 (16:23 +0100)]
Unescape some double quotes, that make a validation error.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years ago(bug #2904) support of 856$u and 856$z in UNIMARC
Nahuel ANGELINETTI [Fri, 9 Jan 2009 09:54:30 +0000 (10:54 +0100)]
(bug #2904) support of 856$u and 856$z in UNIMARC

This patch change the linktext as the label of the link(in 856$z), and set the url from the 856$u.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2902 Public shelves do not display when user not logged in.
Allen Reinmeyer [Fri, 9 Jan 2009 02:11:02 +0000 (20:11 -0600)]
Bug 2902 Public shelves do not display when user not logged in.

An ending </div> was not placed correctly and encompassed both
privateshelves and publicshelves

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoPrevent multiple warnings per notice filling cron logs.
Henri-Damien LAURENT [Tue, 20 Jan 2009 18:46:43 +0000 (19:46 +0100)]
Prevent multiple warnings per notice filling cron logs.

If a value being substituted in was NULL, then warnings like this
would be emailed to the crontab owner (or MAILTO):

Use of uninitialized value in substitution (s///) at /home/user/kohaclone/C4/Letters.pm line 508.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Conflicts:

C4/Letters.pm

15 years agobug 2505: more warnings fixes in C4/Context.pm
Galen Charlton [Fri, 9 Jan 2009 18:16:43 +0000 (12:16 -0600)]
bug 2505: more warnings fixes in C4/Context.pm

* more portable way to determine uname for
  crash messages
* C4::Context->userenv now returns undef instead
  of 0 if no userenv has been set yet; returning
  undef when necessary is almost always better
  than returning a scalar when a hashref is
  normally expected.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoEnable use warnings;, clean up complainy functions, fix a few tab/space formatting...
stan [Thu, 1 Jan 2009 17:39:33 +0000 (12:39 -0500)]
Enable use warnings;, clean up complainy functions, fix a few tab/space formatting issues.

Refactoring KOHAVERSION to be less crufty, enabling use warnings, change formatting slightly in places.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoWEBSERVER_HOST and WEBSERVER_HOST added
Marc Chantreux [Thu, 8 Jan 2009 01:02:07 +0000 (01:02 +0000)]
WEBSERVER_HOST and WEBSERVER_HOST added

comments added too

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agofollowup to patch for bug 2900
Galen Charlton [Thu, 8 Jan 2009 20:18:24 +0000 (14:18 -0600)]
followup to patch for bug 2900

Previous patch broke date comparison that sets
overdue flag - now that ISO-formatted date
strings are being compared, must use "it"
instead of "<".

"2009-01-02" lt "2009-01-08" is true
"2009-01-02" <  "2009-01-08" is *false*

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2900: fix GetPendingIssues.
Joe Atzberger [Thu, 8 Jan 2009 03:47:36 +0000 (21:47 -0600)]
Bug 2900: fix GetPendingIssues.

GetPendingIssues did several bad things:
~ select * on a 4 table join,
~ including multiple namespace collisions,
~ including large fields marc and marcxml from biblioitems,
~ return ($count, \@array_being_counted).

Not everything is fixed here (see FIXMEs), but the situation is
improved considerably, with bug 2900 resolved.  The "timestamp"
namespace collision in query should be resolved by separate patch.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2747: avoid warning if items.itype is NULL
Galen Charlton [Wed, 7 Jan 2009 21:32:35 +0000 (15:32 -0600)]
bug 2747: avoid warning if items.itype is NULL

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2747 for staff interface itemtype display.
Joe Atzberger [Wed, 7 Jan 2009 20:57:28 +0000 (14:57 -0600)]
Bug 2747 for staff interface itemtype display.

Prefer accuracy over graphical icon.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoGetAuthValCode calls were positioned inside the loop,
Joe Atzberger [Wed, 7 Jan 2009 20:57:29 +0000 (14:57 -0600)]
GetAuthValCode calls were positioned inside the loop,

despite the same values being supplied each time.  Then
the conditional assignments would repeat the same calls again!
That means execution was liable to query the DB at least once
and as many as four times per item.  With a large number of items
this is an unnecessary burden.  By moving the calls outside
the loop, we can guarantee that we never have to call the DB for
that info more than twice (once for lost, once for damaged).

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agojavascript redirect when selecting a patron on circulation.pl Patron Selection Screen
Michael Hafen [Wed, 27 Aug 2008 22:46:57 +0000 (16:46 -0600)]
javascript redirect when selecting a patron on circulation.pl Patron Selection Screen

This adds a little javascript to the Patron Selection form input after searching for a patron to check out to.
On click it redirects to checking out to the clicked patron.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoPut patron Privilege 'updatecharges' to use on fines pages
Michael Hafen [Thu, 13 Nov 2008 23:11:35 +0000 (16:11 -0700)]
Put patron Privilege 'updatecharges' to use on fines pages

This changes the flags required for the fines pages to include the
updatecharges flag.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoa more readable way to test an array size.
Nahuel Angelinetti [Wed, 15 Oct 2008 09:03:25 +0000 (11:03 +0200)]
a more readable way to test an array size.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2505: enable warnings for admin/authorized_values.pl
Galen Charlton [Wed, 7 Jan 2009 01:43:35 +0000 (19:43 -0600)]
bug 2505: enable warnings for admin/authorized_values.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoauthorized_values cleanup
Joe Atzberger [Fri, 12 Dec 2008 21:28:01 +0000 (15:28 -0600)]
authorized_values cleanup

Moving towards being able to enable warnings.  Use one dbh, and stop
redeclaring it in each conditional chunk.  ($sth still need to be cleaned.)
Toggle in script removed (tmpl should use loop context var __odd__).
$sth->finish calls removed where unnecessary.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoREFACTOR: correcting indirect object method syntax
Andrew Moore [Wed, 17 Dec 2008 22:31:25 +0000 (16:31 -0600)]
REFACTOR: correcting indirect object method syntax

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2505: turning on "warnings" in catalogue/detail.pl
Andrew Moore [Wed, 17 Dec 2008 22:32:46 +0000 (16:32 -0600)]
Bug 2505: turning on "warnings" in catalogue/detail.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoProviding options for adding to order when existing record search has failed.
Owen Leonard [Wed, 31 Dec 2008 20:28:38 +0000 (14:28 -0600)]
Providing options for adding to order when existing record search has failed.

I've duplicated the "Add to Order" block on the search results page to display after a user has searched for an existing record to add to an order. This block is displayed whether or not results were found on the assumption that a non-empty result set may not contain the desired result. Changes to neworderbiblio.pl allow supplier name to appear in breadcrumb nav.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agopatch followup: restore test in GetMarcItem
Galen Charlton [Wed, 7 Jan 2009 00:54:08 +0000 (18:54 -0600)]
patch followup: restore test in GetMarcItem

Change made to GetMarcItem to quell a warning
changed sense of a test; defined($foo) is *not*
the same as $foo ne ''.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2505: more warnings fixes to C4/Biblio.pm
Galen Charlton [Tue, 6 Jan 2009 14:59:09 +0000 (08:59 -0600)]
bug 2505: more warnings fixes to C4/Biblio.pm

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoFix for Bug 2700, Keeping Data When Adding Multiple Items
Owen Leonard [Tue, 4 Nov 2008 16:21:47 +0000 (10:21 -0600)]
Fix for Bug 2700, Keeping Data When Adding Multiple Items

When cloning the set of inputs, the new js
increments the IDs of each form field (to keep them unique) and automatically
selects the option that was selected in the cloned group.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2505: adding warnings to C4/Biblio.pm
Andrew Moore [Wed, 17 Dec 2008 22:28:04 +0000 (16:28 -0600)]
Bug 2505: adding warnings to C4/Biblio.pm

I added 'use warnings' to C4::Biblio and made a handful of changes to
reduce the number of warnings emitted.

One notable spot is the change in the regex in
C4::Biblio::GetNoZebraIndexes. I have replaced the parens with a character
class. The parens change the way 'split' works, making it return elements
for each delimiter. We did not want those elements returned, and they
only resulted in "'' => undef" being added to the final hash. They also
resulted in two "undefined" warnings for each pass through the loop. I've
included a simple test for this function.

There may be a few warnings still emitted in spots, but either I haven't
seen them yet, or I have chosen to not fix them yet because they require
too much change.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobarcodedecode() did not always return barcode
Joe Atzberger [Fri, 2 Jan 2009 20:35:03 +0000 (14:35 -0600)]
barcodedecode() did not always return barcode

This patch amends the function to return barcode, in particular when
filter is not defined.  It also adds an optional 2nd argument to
allow the filter to be specified by caller, enabling testing.

Non-DB-dependent test script included.  Note: T-prefix style
barcode filter is not documented, and drops the first nonzero
digit after the T.  This seems mistaken, but is not corrected here
to avoid any surprises.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoAllow AddIssue to log SIP transactions distinct from others.
Joe Atzberger (siptest [Tue, 28 Oct 2008 18:37:37 +0000 (13:37 -0500)]
Allow AddIssue to log SIP transactions distinct from others.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoremove TMPL_IF EXPR in member.tmpl
Galen Charlton [Wed, 31 Dec 2008 21:52:44 +0000 (15:52 -0600)]
remove TMPL_IF EXPR in member.tmpl

Quells following error message in Apache log:

EXPR:at pos 8: non-initialized variable overdues,
referer: http://example.edu/cgi-bin/koha/members/members-home.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoperltidy lables/label-item-search.pl
Galen Charlton [Wed, 31 Dec 2008 21:34:26 +0000 (15:34 -0600)]
perltidy lables/label-item-search.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2505: turn on warnings in labels/label-item-search.pl
Galen Charlton [Wed, 31 Dec 2008 21:31:32 +0000 (15:31 -0600)]
bug 2505: turn on warnings in labels/label-item-search.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agofollowup to Mason's labels patch
Galen Charlton [Wed, 31 Dec 2008 20:46:09 +0000 (14:46 -0600)]
followup to Mason's labels patch

* fix XHTML errors
* fix problems with paging through results list

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoThe current searching in labels is a bit minimal, and current only does keyword searc...
Mason James [Wed, 12 Nov 2008 06:55:39 +0000 (19:55 +1300)]
The current searching in labels is a bit minimal, and current only does keyword searching.

there is some old 2.2 code for more complete labels-searching, thats been commented out

ive logged a 'bug' for this - 2777

http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2777

this fix...
  - enables the index-searching functionality
  - adds date-ranges
  - uses the numSearchResults syspref, not a hardcoded '20'
  - rewrote old 2.2 page-num code, (didnt work for 3.x)
  - some indent and whitepages tidys.
  - unused 2.2 search-code removed.

Mason

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years ago(bug #2887) Change the "Cart" box from js to tmpl
Nahuel ANGELINETTI [Mon, 29 Dec 2008 11:27:06 +0000 (12:27 +0100)]
(bug #2887) Change the "Cart" box from js to tmpl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoAdds the ability to reference itemcallnumber within XSLT
Joshua Ferraro [Tue, 23 Dec 2008 22:17:58 +0000 (16:17 -0600)]
Adds the ability to reference itemcallnumber within XSLT

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoFixes bug #2875
Frederic Demians [Tue, 30 Dec 2008 06:54:44 +0000 (07:54 +0100)]
Fixes bug #2875

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoMinor updates to minor cronjob script.
Joe Atzberger [Tue, 30 Dec 2008 17:20:15 +0000 (11:20 -0600)]
Minor updates to minor cronjob script.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agocrontab.example - add back some useful comments
Galen Charlton [Wed, 31 Dec 2008 15:44:06 +0000 (09:44 -0600)]
crontab.example - add back some useful comments

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoExpand crontab.example
Joe Atzberger [Tue, 30 Dec 2008 17:20:16 +0000 (11:20 -0600)]
Expand crontab.example

Default overdues to "triggered" mode (-t).

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoRevert "Updates to the example crontab"
Joe Atzberger [Tue, 23 Dec 2008 18:34:57 +0000 (12:34 -0600)]
Revert "Updates to the example crontab"

This reverts commit def09f5a21b47431ff107d9a530900cd5a4fb93d.

As I emailed to the patches list Oct 06, 2008:

I suggest we need to revert Josh' commit def09f5a21b47431ff107d9a530900cd5a4fb93d.

The effect on the crontab example is to invalidate the lines being executed.  The lines were apparently copied in from a cron source, not crontab, despite the header describing it NOT being an example for cron.  It also runs longoverdue twice, instead of fines.pl.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoFixes bugs #2875-2879
Frederic Demians [Tue, 23 Dec 2008 07:57:15 +0000 (08:57 +0100)]
Fixes bugs #2875-2879

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoAdd 'use warnings' and correct uninitialized value warnings.
Stan Brinkerhoff [Wed, 24 Dec 2008 12:41:56 +0000 (07:41 -0500)]
Add 'use warnings' and correct uninitialized value warnings.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2505: further warnings fixes to memberentry.pl
Galen Charlton [Tue, 30 Dec 2008 01:42:45 +0000 (19:42 -0600)]
bug 2505: further warnings fixes to memberentry.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoAdded 'warnings' support, fixed bug 2870.
stan [Wed, 24 Dec 2008 03:06:10 +0000 (22:06 -0500)]
Added 'warnings' support, fixed bug 2870.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoTest suite: C4::Members::GetMemberDetails
Allen Reinmeyer [Wed, 24 Dec 2008 22:09:49 +0000 (16:09 -0600)]
Test suite: C4::Members::GetMemberDetails

Tests for C4::Members::GetMemberDetails.  Validates both calls
using either borrowernumber or cardnumber.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoA script generating keyword clouds from Zebra Indexes
Frederic Demians [Thu, 18 Dec 2008 17:38:25 +0000 (18:38 +0100)]
A script generating keyword clouds from Zebra Indexes

See embedded perldoc to see how it works.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agotest suite: C4::ImportBatch
Andrew Moore [Fri, 19 Dec 2008 22:12:25 +0000 (16:12 -0600)]
test suite: C4::ImportBatch

Here are some tests for functions in C4::ImportBatch.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2824: improving error messages from test suite errors
Andrew Moore [Wed, 17 Dec 2008 14:39:17 +0000 (08:39 -0600)]
bug 2824: improving error messages from test suite errors

This patch adds two warning messages to places in the test suite that
may fail. I don't think it changes any functionality, but it sure makes
it easier to figure out what has gone wrong.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agofixed "too many opened files" error during translation
Marc Chantreux [Fri, 12 Dec 2008 17:13:14 +0000 (18:13 +0100)]
fixed "too many opened files" error during translation

The problem was that the TmplTokenizer create global symbols to store file
handlers so the objects aren't destroyed by the garbage collector.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2864 [2/2]: move rss/* to misc/cronjobs/rss/*
Galen Charlton [Mon, 15 Dec 2008 15:58:47 +0000 (09:58 -0600)]
bug 2864 [2/2]: move rss/* to misc/cronjobs/rss/*

As rss.pl is not a CGI script, moved it to join the
other cronjobs.  Full documentation of the script
is in misc/cronjobs/rss/rss.pl, but to summarize:

[1] rss.pl is run on the command line to produce
    an RSS XML document.  The output should be
    placed in a directory accessible to the OPAC
    (or staff) web interface so that users can download
    the RSS feed.  An example of usage:

    misc/cronjobs/rss.pl lastAcquired.conf

    Normally rss.pl should be run periodically (e.g., daily)
    to keep the feed up-to-date.

[2] The configuration file (e.g., lastAcquired.conf) lists

    * name of the template file to use
    * path of output file
    * SQL query

    rss.pl runs the SQL query, then feeds the output of the
    query through the template to produce the output file.

[3] The template file (e.g., lastAcquired.tmpl) uses
    HTML::Template syntax like any of the HTML
    templates for the web interface.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2864 [1/2]: restore rss/rss.pl
Galen Charlton [Mon, 15 Dec 2008 15:58:46 +0000 (09:58 -0600)]
bug 2864 [1/2]: restore rss/rss.pl

Restored basic functionality of rss/rss.pl:

[1] Reverted "Add support for itemtypes. Still need to hardcode 'reservable'"
    Revert commit e7575b00edd6098a869425a69856916108e84914, which had
    replace the script with one of its templates.

[2] Minor fixes to update it, including using HTML::Template::Pro instead
    of HTML::Template, perltidy, and turning on warnings.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoAdd default classification sources and filing rules to fr-FR
Frederic Demians [Mon, 17 Nov 2008 16:38:46 +0000 (17:38 +0100)]
Add default classification sources and filing rules to fr-FR

fr-FR install wasn't populating classication rules tables:

  * class_sort_rules
  * class_sources

This patch add default values for those tables
mandatory during installation process.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agobug 2829: add a plugin for 010$a field and 210$c
Nahuel Angelinetti [Thu, 11 Dec 2008 15:39:27 +0000 (16:39 +0100)]
bug 2829: add a plugin for 010$a field and 210$c

This plugin use the 'ISBN' field(010$a) to search the "publishercode"(editor) and set it in as 210$c.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoBug 2842: ->regexp('syspref') failed for users of iso dateformat.
Joe Atzberger [Thu, 4 Dec 2008 04:33:02 +0000 (22:33 -0600)]
Bug 2842: ->regexp('syspref') failed for users of iso dateformat.

Sticky due date and patron import were the two areas affected.

15 years agoDates expanding to expose some time (HH:MM:SS) granularity.
Joe Atzberger [Fri, 19 Sep 2008 00:02:48 +0000 (19:02 -0500)]
Dates expanding to expose some time (HH:MM:SS) granularity.

t/Dates.t is essentially restored from its previous state with
the revision that it now does not use C4::Context or check syspref
for the default date format.  Instead it sets the C4::Dates default
directly, taking cue from command line argument or ENV.  ISO format
revised to accept "T" separator and "Z" (zulu) terminator. POD
expanded and corrected.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
15 years agoUpdate german opac and intranet and french intranet
Chris Cormack [Mon, 26 Jan 2009 07:48:56 +0000 (20:48 +1300)]
Update german opac and intranet and french intranet

15 years agoMore Nederlands updates
Chris Cormack [Sun, 18 Jan 2009 02:38:19 +0000 (15:38 +1300)]
More Nederlands updates

15 years agoNederlands opac update
Chris Cormack [Sat, 17 Jan 2009 07:28:18 +0000 (20:28 +1300)]
Nederlands opac update

15 years agoGerman opac updates
Chris Cormack [Thu, 15 Jan 2009 10:05:47 +0000 (23:05 +1300)]
German opac updates

15 years agoCroatian, German and Greek opac updates
Chris Cormack [Tue, 13 Jan 2009 23:06:38 +0000 (12:06 +1300)]
Croatian, German and Greek opac updates

15 years agoGreek opac
Chris Cormack [Sun, 11 Jan 2009 02:15:15 +0000 (15:15 +1300)]
Greek opac