Commit Graph

9878 Commits

Author SHA1 Message Date
Galen Charlton 2afc052f64 Revert "If itemnumber is sent to catalogue/moredetail.pl use it"
Applied wrong version of patch.  Oops.

This reverts commit 9eb1465b28.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:14:05 +12:00
Joe Atzberger 4c54059844 Fines fixes: apparent problems with fines prevent processing.
CalcFine returned values that mismatched expectations in fines.pl.

fines.pl refactored: added debugging, prevent needless recreation of
Calendar objects by storing them in hash by branch.
Still outstanding problems with fines, including the output of a field
that has no other references in Koha (so is always undef) and the
incorrect description of FinesMode.

Calendar exported "new" erroneously.  I also cleaned up the queries to
avoid needlessly compiling additional statement handles.

Please test and consider application to 3.0 maintenance.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:12:41 +12:00
Michael Hafen 04d8cfd655 If itemnumber is sent to catalogue/moredetail.pl use it
If itemnumber is part of the url for catalogue/moredetail.pl put it to use.
This happens in members/boraccount.pl if a fine is attached to a barcode.

This patch makes moredetail.pl show only the item specified by itemnumber.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:10:30 +12:00
Joe Atzberger fac72f1162 Minor SIP cleanup, conditionalize warnings.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:07:07 +12:00
Jesse Weaver 068ffa861c fix number two for bug 1204: Lists of issues and overdues on opac-user.pl
This makes opac-user.pl sort the output from GetPendingIssues itself, by descend
ing due date.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:04:17 +12:00
Owen Leonard a5a0e4f4a9 Fix for Bug 2424: Altering layout of advanced search screen to make it compatible with Internet Explorer 6. Documentarians: this will require an updated screenshot.
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 11:01:36 +12:00
Galen Charlton 25f6fa4581 bug 2545: fix XSLTDetailsDisplay
Corrected so that when XSLTDetailsDisplay is ON but
XSLTResultsDisplay is OFF, the portion of the OPAC bib
details page that's derived from the MARC bib record
is no longer missing.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 10:56:26 +12:00
Jesse Weaver 3d71f57306 Fix itemtype image problem in moremember.pl
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 10:30:24 +12:00
Galen Charlton eab9d6900d bug 2509: fix file permissions
Following suggestion by Vincent Danjean for Debian
packaging, 0755 -> 0644 for non-executable
files.

Also removed shebang from a few modules in C4.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 10:29:07 +12:00
Galen Charlton 973b9a288a bug 2540: allow download of report
$error return C4::Reports::execute_query is
always defined.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-04 10:28:19 +12:00
Jesse Weaver 3095040986 fix for bug 1771: Template errors with remote itemtype image
This adds a new function, getitemtypeimagelocation, that returns the image
unmodified for absolute urls and returns the proper intranet or opac path
otherwise. It also updates all of the relevant files to use that function.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 10:23:10 +12:00
Jesse Weaver b3e0e2bfe1 Fix for minor error in shelfbrowser queries
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 10:08:08 +12:00
Jesse Weaver c09f1b3d72 fix for bug 2477: Improve Speed of the Shelf Browser
This patch updates the queries for the shelf browser in opac-detail.pl for a
slight performance gain. It also adds a param for dateformat to C4::Auth to
fix a warning.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 10:06:20 +12:00
Galen Charlton a2c4c5353b bug 2527: avoid targeting of items on hold shelf
SQL fix to properly ensure that if an item is on
the hold shelf, it will not be used for request
targeting, which applies only to items that are
not already on the hold shelf.

Prior to this fix, when checking out an item on the
hold shelf that fills patron A's hold request, it
was possible for that request to not be marked as
filled if another patron had an item-level request
on the item; the second patron's request was
incorrectly targeted by that item.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:38:21 +12:00
Andrew Moore 24d9a112d0 Bug 2524: improving the submitted test reports
switching from 'prove' to 'perl' to run the test scripts when we're preparing
them to be submitted to smolder. Prove adds an additional summary at the end
of the test run which confuses the TAP parser in smolder. It thinks that an
additional test has been run, and it fails it.

Then, I added a '-' before the command in the Makefile. THat's so that even
if 'perl' returns a failing code (because some tess failed), the rest of the
rules are run and a report gets submitted. Othewise, only passing reports
get sent.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:37:57 +12:00
Andrew Moore 859c105e23 Bug 2524: Adding script to submit test reports to smolder server
This patch adds a target in the t/Makefile and a script in t/smolder_smoke_signal
to submit the results of test runs to a smolder server. It will allow users to submit
their own test results to a central location by running "make submit" from the t/
directory.

Smolder is a web-based application that aggregates and presents the output of
tests. We have an instance running at:
http://arwen.metavore.com:8000/app/public_projects/smoke_reports/1

More information about using smolder for Koha is available at:
http://wiki.koha.org/doku.php?id=en:development:smoke_reports

I intend to have the test suite run each night automatically and the results
sent to the smolder server. This will help us keep track of the current state
of the the code and possibly catch bugs introduced by changes. I encourge others
to submit their own test results if they want, especially if they are on an unusual
platform or are with a non-standard configuration.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:37:20 +12:00
Galen Charlton 5eafcf52de bug 2522 [3/3]: populate hold_fill_targets
This batch job now automatically populates the
holds request targeting table hold_fill_targets.

This patch is essentially a revamp of the job,
and includes fixes for the following bugs:

2281 (holds queue report including unavailable items)
2331 (holds queue report not working with item-level
      holds)
2332 (holds queue script should attempt to fill
      many requests as possible).

Several functions in this batch job are candidates
for being moved to C4::Reserves:

GetBibsWithPendingHoldRequests()
GetPendingHoldRequestsForBib()
GetItemsAvailableToFillHoldRequestsForBib()
MapItemsToHoldRequests()

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:35:24 +12:00
Galen Charlton 799a663ada bug 2522 [2/3]: C4::Reserves support for request targeting
_Findgroupreserve, which identifies which hold request an
item should fill, is modified to check to see if
that item is targeted to fill a specific hold request.

It first checks for a targeted match with an item-level hold request,
then a targeted match with a title-level request.  If no
such targeted match exists, it then checks for the top entries
in the holds queue.

The hold targeting map (i.e., the hold_fill_targets table) is
populated by the build_holds_queue.pl batch job.  If that
job is not used, the behavior of _Findgroupreserve
is not changed.

This patch also

* adjusts ModReserveMinusPriority so that it calls
  _FixPriority().
* adjusts circ/returns.pl so that it
  correctly detects transfers.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:35:08 +12:00
Galen Charlton 25652bd554 bug 2522 [1/3]: DB rev 3.1/001 - hold request targetting
For bug 2522, add a new table called hold_fill_targets to
implement hold request targeting.  This table
has the following columns:

  borrowernumber     - identify request
  biblionumber       - ditto
  itemnumber         - item targeted to fill request
  source_branchcode  - current location of item
  item_level_request - if 1, request is item-level

For bug 2331, adds a column called item_level_request
to tmp_holdsqueue.

Note: both of the item_level_request columns can
go away once reserves is modified so that
it is clear whether a request is item-level or
bib-level.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:34:46 +12:00
Jesse Weaver 85dd489bec Fix for bug 2155: duplicate checkin box on returns screen
This changes some css and markup to make the return box at the top not show when one is on the checkin screen. It also moves the markup for the autocompleting search box to its own file.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:30:25 +12:00
Galen Charlton 2d5540d990 bug 2341: OPAC title-level holds permitted when items are on-order
Changed so that the presence of an on-order item (items.notforloan =- -1)
permits a title-level hold request to be made.  Prior to this patch,
if all of the items linked to the bib were on-order, no title-level
request was permitted.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 09:26:40 +12:00
Galen Charlton 8b5a91cf14 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>
2009-09-04 08:57:12 +12:00
Mason James f6cc28fa99 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>
2009-09-04 08:53:50 +12:00
Chris Nighswonger c6ba59ce9e kohabug 2507 Fixing labels search to indicate keyword rather than title search
Documentation may require an updated screen shot

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-04 08:47:50 +12:00
Chris Cormack dbca3598cc masthead - realign terminology for Tag Cloud
Tag Cloud should link to user-generated tags, in a cloud display.
What used to be called "Tag Cloud" (ISBD subject links for UNIMARC libraries)
should be called a "Subject ...".  AFAICT it doesn't currently use a "cloudy"
display, so some other term might be more appropriate.

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

Conflicts:

	koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc
2009-09-04 08:34:04 +12:00
Chris Cormack 2505e0f415 French opac updates 2009-09-01 10:22:49 +12:00
Chris Cormack 825d6c2a04 Italian updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-29 21:38:41 +12:00
Chris Cormack fcdefd6bcf Italian Translation updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-26 22:24:52 +12:00
Chris Cormack 8acf94bf5b Malay po files
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-24 20:58:51 +12:00
Chris Cormack 7a4cf8f0d1 Dutch language updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-23 22:45:54 +12:00
Chris Cormack 5bfe971add Italian and Turkish updates
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-20 22:35:47 +12:00
Chris Cormack ad68fe2ba4 Turkish updates for 3.0.x
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-08-16 06:58:02 +12:00
Chris Cormack 6c1bc4f5c4 Turkish and German updates 2009-08-15 18:09:03 +12:00
Chris Cormack dd10f84c98 Fixing a bug in Turkish 2009-08-09 21:42:26 +12:00
Chris Cormack d0c80f1b1a Dutch, German and Turkish language updates 2009-08-08 20:25:50 +12:00
Chris Cormack c8be5c0f87 German and French updates 2009-08-05 14:58:22 +12:00
Chris Cormack 587cddf618 German, French, NZ english, and Tagalog updates 2009-08-01 07:29:25 +12:00
Chris Cormack 66a52cd2d2 German, French, Italian, Dutch and Tetum updates 2009-07-28 20:17:39 +12:00
Chris Cormack b5cb46d241 Tagalog added for translation 2009-07-09 15:54:41 +12:00
Chris Cormack 0a5face5df German updates 2009-07-09 15:53:08 +12:00
Chris Cormack 449d705ea9 Little fix to Maori 2009-07-06 13:33:00 +12:00
Chris Cormack 979883d2b3 Maori Opac Translation finished 2009-07-06 13:18:20 +12:00
Chris Cormack ab8053f376 Bengali, french canadian and tetun updates 2009-07-04 22:44:37 +12:00
Henri-Damien LAURENT b2a4853fc5 Preparing 3.0.3 2009-06-26 15:57:18 +02:00
Henri-Damien LAURENT 94d2f60470 Bug Fixing : 3334
MANIFEST.SKIP with grouping orig back and old
had a problem with hold-transfer-slip.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-06-26 13:33:10 +02:00
Henri-Damien LAURENT f15c5eb843 Bug Fix 3320 : condition on enabling field input was wrong 2009-06-26 10:33:59 +02:00
Chris Cormack 676f8059b7 French and greek updates 2009-06-23 11:23:30 +12:00
Chris Cormack 31bb66a8cb Tetun, German and Turkish updates 2009-06-19 01:57:56 +12:00
Chris Cormack c2d419b147 Turkish updates 2009-06-16 14:53:17 +12:00
Chris Cormack b06857bb49 German and Turkish updates 2009-06-15 07:31:27 +12:00