koha.git
15 years agofix for 2117: opacbookbag should have the term 'cart' in the description
Joshua Ferraro [Fri, 20 Jun 2008 22:45:07 +0000 (17:45 -0500)]
fix for 2117: opacbookbag should have the term 'cart' in the description

15 years agofix for 2118: virtualshelves should say 'list' in the description
Joshua Ferraro [Fri, 20 Jun 2008 22:44:02 +0000 (17:44 -0500)]
fix for 2118: virtualshelves should say 'list' in the description

15 years agofix to 2142: maxItemsInSearchResults No longer used
Joshua Ferraro [Fri, 20 Jun 2008 22:42:42 +0000 (17:42 -0500)]
fix to 2142: maxItemsInSearchResults No longer used

15 years agofix to bug 1914: OpacNav system preference description contains typo
Joshua Ferraro [Fri, 20 Jun 2008 22:29:18 +0000 (17:29 -0500)]
fix to bug 1914: OpacNav system preference description contains typo

15 years agofix for 1948: LibraryName has wrong description
Joshua Ferraro [Fri, 20 Jun 2008 22:28:10 +0000 (17:28 -0500)]
fix for 1948: LibraryName has wrong description

15 years agofix to 2211: OPACUserCSS has wrong default value
Joshua Ferraro [Fri, 20 Jun 2008 22:26:12 +0000 (17:26 -0500)]
fix to 2211: OPACUserCSS has wrong default value

15 years agofix to 2179: Language Issue: Should be Holds not Reserves
Joshua Ferraro [Fri, 20 Jun 2008 22:09:49 +0000 (17:09 -0500)]
fix to 2179: Language Issue: Should be Holds not Reserves

15 years agofix for bug 1961: sprintf value needed in C4/Circulation.pm
Joshua Ferraro [Fri, 20 Jun 2008 22:04:27 +0000 (17:04 -0500)]
fix for bug 1961: sprintf value needed in C4/Circulation.pm

15 years agopatch from cnighs, fixing warn in Context.pm
Joshua Ferraro [Fri, 20 Jun 2008 22:00:58 +0000 (17:00 -0500)]
patch from cnighs, fixing warn in Context.pm

15 years agobugfix for bug introduced by anonymous session code
Chris Nighswonger [Fri, 20 Jun 2008 21:44:52 +0000 (16:44 -0500)]
bugfix for bug introduced by anonymous session code

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2201 - autoBarcode code in acq is old. Modified to only work with 'increment...
Ryan Higgins [Fri, 20 Jun 2008 21:36:01 +0000 (16:36 -0500)]
bug 2201 - autoBarcode code in acq is old. Modified to only work with 'increment', and added FIXME

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agofix for bug 2045: Network Printers Setting Does Nothing?
Joshua Ferraro [Fri, 20 Jun 2008 21:41:14 +0000 (16:41 -0500)]
fix for bug 2045: Network Printers Setting Does Nothing?

15 years agofix for 2199 for new installations, existing installations
Joshua Ferraro [Fri, 20 Jun 2008 21:35:29 +0000 (16:35 -0500)]
fix for 2199 for new installations, existing installations
can just change it manually in sysprefs to YesNo

15 years agoRemove EXPRs from includes file.
Joe Atzberger (siptest [Fri, 20 Jun 2008 21:21:14 +0000 (16:21 -0500)]
Remove EXPRs from includes file.

This prevents the following log entries:
    error EXPR:at pos 42: non-initialized variable OPACViewOthersSuggestions
EXPR must NOT be used unless the author can guarantee ALL names referenced
will be defined at the BEGINNING of TMPL execution.  That suggests that in
.inc files, only variables populated by get_template... are valid, since
the author cannot guarantee what other templates might include the file.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoCreated INSTALL.opensuse file
Ricardo Dias Marques [Fri, 20 Jun 2008 21:56:21 +0000 (22:56 +0100)]
Created INSTALL.opensuse file

Created installation instructions for installing Koha 3 in openSUSE 11.0

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoAnother API call fix to get the vendor name.
Ryan Higgins [Fri, 20 Jun 2008 20:56:40 +0000 (15:56 -0500)]
Another API call fix to get the vendor name.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoUse C4::Debug to conditionalize warn.
Joe Atzberger [Fri, 20 Jun 2008 20:18:15 +0000 (15:18 -0500)]
Use C4::Debug to conditionalize warn.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoUse C4::Debug on warn statements.
Joe Atzberger [Fri, 20 Jun 2008 20:18:14 +0000 (15:18 -0500)]
Use C4::Debug on warn statements.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoScript is not an Exporter. Convert to using C4::Debug.
Joe Atzberger [Fri, 20 Jun 2008 19:36:33 +0000 (14:36 -0500)]
Script is not an Exporter. Convert to using C4::Debug.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoThere is no doc-head-calendar.inc. I think it's called calendar.inc and
Joe Atzberger [Fri, 20 Jun 2008 19:36:32 +0000 (14:36 -0500)]
There is no doc-head-calendar.inc. I think it's called calendar.inc and

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoReplace EXPR.
Joe Atzberger [Fri, 20 Jun 2008 19:36:31 +0000 (14:36 -0500)]
Replace EXPR.

Prevents log error:
EXPR:at pos 14: non-initialized variable notforloantext

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoRemove EXPRs. Also added all jacket images to Overdue tab.
Joe Atzberger [Fri, 20 Jun 2008 19:36:29 +0000 (14:36 -0500)]
Remove EXPRs. Also added all jacket images to Overdue tab.

Standardized table layout with colspan=2 for Title header,
the first being the icon or jacket image.  Discovered a bug
when I fixed the "toggle/highlight" code to work (using loop
context var __odd__), namely that the highlight styling overrides
the red overdue styling.  Commented out that conditional with a
FIXME.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix call to wrong API fcn resulting in missing Vendor information on two acq pages.
Ryan Higgins [Fri, 20 Jun 2008 20:19:15 +0000 (15:19 -0500)]
Fix call to wrong API fcn resulting in missing Vendor information on two acq pages.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug: 2176 - database fix
Andrew Moore [Fri, 20 Jun 2008 19:58:42 +0000 (14:58 -0500)]
bug: 2176 - database fix

I had the create table statements in the wrong order, so they would not apply cleanly.
This is an update to database version 091, and does not take a new number.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix broken link and quick formatting of currency.
Ryan Higgins [Fri, 20 Jun 2008 19:49:21 +0000 (14:49 -0500)]
Fix broken link and quick formatting of currency.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBugfix bad template variable, causing no data to display on bookfund.pl
Ryan Higgins [Fri, 20 Jun 2008 19:40:51 +0000 (14:40 -0500)]
Bugfix bad template variable, causing no data to display on bookfund.pl

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBugfix 1417 : library was not being saved on order edits.
Ryan Higgins [Fri, 20 Jun 2008 19:21:49 +0000 (14:21 -0500)]
Bugfix 1417 : library was not being saved on order edits.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agofix for 2257: OPAC news does not display if more than one language is checked in...
Joshua Ferraro [Fri, 20 Jun 2008 19:30:31 +0000 (14:30 -0500)]
fix for 2257: OPAC news does not display if more than one language is checked in opaclanguages pref

15 years agobug 1710 and 1739: availability for item-level holds
Galen Charlton [Fri, 20 Jun 2008 18:59:33 +0000 (13:59 -0500)]
bug 1710 and 1739: availability for item-level holds

Fixed rules for determining whether an item is
available for an item-level hold request.  Create a
new function in C4::Reserves, IsAvailableForItemRequest(),
that checks whether an item is potentially available for
an item-level hold request.

An item is considered available if:

* it is not lost AND,
* it is not marked not for loan AND,
* it is not withdrawn AND,
* it is not damaged (unless the AllowHoldsOnDamagedItems syspref is ON), AND
* it is not on loan (unless the AllowOnShelfHolds syspref is ON)

Preventing a hold request on withdrawn items is bug 1739, as is
the new preference on whether to allow holds on damaged items.

Removing the condition that an item cannot be requested if
it has already been requested by another patron is the topic of bug 1710.

Note that this patch does not change the behavior where if
independent branches is on and the canreservefromotherbranches
syspref is off, a staff operator is prevented from placing
an item-level hold request on an item from a different branch.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 1710 and 1739: two new sysprefs (DB rev 092)
Galen Charlton [Fri, 20 Jun 2008 18:59:32 +0000 (13:59 -0500)]
bug 1710 and 1739: two new sysprefs (DB rev 092)

As part of fixing hold request bugs 1710 and 1739,
two new system preferences are defined:

AllowOnShelfHolds: YesNo, default value OFF
  * if ON, allow item-level hold requests to be
    placed for available items that are not on loan

AllowHoldsOnDamagedItems: YesNo, default value ON
  * if OFF, item-level hold requests cannot
    be placed on items that are marked damaged.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix for 2187: http_accept_language feature not working
Joshua Ferraro [Fri, 20 Jun 2008 19:09:12 +0000 (14:09 -0500)]
Fix for 2187: http_accept_language feature not working

15 years agobug 2176: adding new system preference to French sysprefs script.
Andrew Moore [Fri, 20 Jun 2008 18:13:44 +0000 (13:13 -0500)]
bug 2176: adding new system preference to French sysprefs script.

I forot to add the new EnhancedMessagingPreferences system preference to the French SQL. I
hope I added it in the right place. The 'explanation' is untranslated.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176: adding SMS::Send to list of dependencies
Andrew Moore [Fri, 20 Jun 2008 18:02:04 +0000 (13:02 -0500)]
Bug 2176: adding SMS::Send to list of dependencies

SMS::Send is used by the new enhanced messaging stuff. It's a pure-perl module that
provides a consistent interface to SMS sending gateways. There are alredy
a handful of driver modules for gateways on CPAN, and adding one for a new gateway
is possible.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoAdding an automated test for POD correctness.
Andrew Moore [Fri, 20 Jun 2008 18:02:03 +0000 (13:02 -0500)]
Adding an automated test for POD correctness.

This test script checks all perl files in the C4 directory for POD correctness. It is
completely optional, and as of yet, is not actually run when you run the test suite.
It's just a handy way to check our POD documentation, which should be correct before
we release code.

This script can be invoked with 'prove -v xt/author/podcorrectness.t'

Additionally, this is the first test in the 'xt' directory. Current perl testing practices
have reserved the 'xt' directory for tests that should be run by the code authors before
release. See:
http://perl-qa.hexten.net/wiki/index.php/Oslo_QA_Hackathon_2008_:Achievements#Testing_Best_Practices
for more information.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176 (5/5): adding staff interface to patron messaging preferences
Andrew Moore [Fri, 20 Jun 2008 18:02:02 +0000 (13:02 -0500)]
Bug 2176 (5/5): adding staff interface to patron messaging preferences

I added another tab to the "patron" area of the staff interface to let staff
edit patron messaging preferences.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176 (4/5): adding RSS feed for patron overdue alerts
Andrew Moore [Fri, 20 Jun 2008 18:02:01 +0000 (13:02 -0500)]
Bug 2176 (4/5): adding RSS feed for patron overdue alerts

opac-mymessages.pl and opac-mymessages.tmpl generate an RSS feed of a patron's messages from the message_queue.

Some more methods in C4::Letters to let us pluck out the right entries in the queue.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new...
Andrew Moore [Fri, 20 Jun 2008 18:02:00 +0000 (13:02 -0500)]
Bug 2176 (3/5): adding methods to manage message_queue, new advance_notices.pl, new C4::SMS module

I've added methods to to C4::Letters to manage the database table
message_queue. This will let us keep track of messages sent
via email, sms, and rss to patrons. That way, we can show the history,
deal with failures, and reconstruct an RSS feed when needed.

misc/cronjobs/overduenotics.pl has been added. It prepares advance notices
and item due notices and stages messages to be sent in the message_queue
table.

C4::Overdues::Getoverdues now takes two optional arguments to tell it how
old of overdues to fetch.

Also, a C4::Circualtion::getUpcomingDueIssues method was added that
advance_notices.pl uses.

misc/cronjobs/process_message_queue.pl has been added. It sends the email
or SMS messages out of the message queue.

The C4::SMS module didn't work at all, and it has been rebuilt to use
an external perl module from CPAN, SMS::Send.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176 (2/5): adding patron interface to update messaging preferences
Andrew Moore [Fri, 20 Jun 2008 18:01:59 +0000 (13:01 -0500)]
Bug 2176 (2/5): adding patron interface to update messaging preferences

This patch allows patrons to update their messaging preferences. This
includes methods in C4::Members to manage patron messaging preferences.

added cgi script to allow patron to edit their messaging preferences

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agorefactor C4::Auth::get_template_and_user for readability
Andrew Moore [Fri, 20 Jun 2008 18:01:58 +0000 (13:01 -0500)]
refactor C4::Auth::get_template_and_user for readability

I'd like to add another template parameter to geta_template_and user, but found it diffiult due to unreadability.

I stanadardized the whitespace in a portion of get_template_and_user,
alphabetized the parameters, finding a duplicate in one spot,
and then extracted the common template parameters that are set the same
regardless of template type.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoBug 2176 (1/5): database update: adding message_queue table and tables to hold patron...
Andrew Moore [Fri, 20 Jun 2008 15:58:31 +0000 (10:58 -0500)]
Bug 2176 (1/5): database update: adding message_queue table and tables to hold patron messaging preferences

Updates to kohastructure.sql and updatedatabase.pl:
- add new message_queue table
- add message_transport_types table
- add message_attributes table
- add message_transports table
- add borrower_message_preferences table
- add borrower_message_transport_preferences table
- adding EnhancedMessagingPreferenes to sysprefs SQL.

Added column to borrowers table to hold SMS Alert Number.
Added some more sample notices (letters) that will be sent for patron alerts
added some sample SQL to configure messaging.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agokohabug 2238 This patch allows patrons to add books to public open/free lists whether...
Chris Nighswonger [Fri, 20 Jun 2008 05:36:10 +0000 (00:36 -0500)]
kohabug 2238 This patch allows patrons to add books to public open/free lists whether they are logged in or not.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agokohabug 1873 Fixes shelves.pl so that the date is displayed in the 'date added' colum...
Chris Nighswonger [Fri, 20 Jun 2008 02:08:16 +0000 (21:08 -0500)]
kohabug 1873 Fixes shelves.pl so that the date is displayed in the 'date added' column of the virtual shelf contents

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agokohabug 1875 Public lists/virtualshelves are displayed and viewable whether a patron...
Chris Nighswonger [Wed, 11 Jun 2008 12:10:02 +0000 (07:10 -0500)]
kohabug 1875 Public lists/virtualshelves are displayed and viewable whether a patron is logged in or not.

NOTE: This patch introduces code which generates an anonymous session when a patron first browses to OPAC.
This anonymous session contains a minimal amount of information including the results of a query to discover
all public lists/shevles. When the user logs in, the anonymous session is cleared and a new session created
for that user.

kohabug 1875 - fix error when editing a patron record

C4::Auth::checkauth was not distinguishing between a
'userid' input from an OPAC or staff login form and
a 'userid' input from (e.g.,) the patron editor.
Consequently, adding or editing a patron record would
result in Koha trying to log in as the new patron.

To resolve this, added a hidden input to all login
forms, 'koha_login_context', to explicitly signal
when a login is occurring.  The value of this input
can be 'opac', 'intranet', or 'sco' - the value is
not used at present, but may be of use later.

C4::Auth - added debug flag to two warns

kohabug 1875 - create anonymous sessions only for OPAC

No need to create an anonymous session for the intranet.

set yuipath correct for login pages

When preparing the template parameters for a login form,
C4::Auth was overriding the value of yuipath set
by C4::Output::gettemplate(), thus causing 404 errors
if the 'yuipath' syspref was set to 'local'.

kohabug 1875 - avoid warns viewing lists anonymously

During an anonymous OPAC session, the $loggedinuser variable
is not set.  As the undefined value causes warns in
C4::VirtualShelves::Page::shelfpage, for the purpose of the
shelfpage call the loggedinuser is set to -1, which should
not correspond to any real borrower number.

This is admittedly a hack to avoid digging through all
of C4::VirtualShelves to deal with lists viewed anonymously.

kohabug 1875 Refactoring of &ModShelf to avoid overwriting list owner needlessly

kohabug 1875 Avoid warning if can't find owner of shelf

Since virtualshelves.owner is not a true FK of borrowersnumber.number,
set ownername to '' if can't find the patron

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2265: fix problem when cloning MARC field
Galen Charlton [Fri, 20 Jun 2008 14:35:42 +0000 (09:35 -0500)]
bug 2265: fix problem when cloning MARC field

Correctly set indicators when cloning a field
in the MARC editor.  Prior this fix, a cloned
field would not be saved.  Bug introduced in
patch for bug 2207.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoDarrel's patch to fix sorting by size of order
Joshua Ferraro [Fri, 20 Jun 2008 14:14:17 +0000 (09:14 -0500)]
Darrel's patch to fix sorting by size of order

15 years agosorting authority list
paul [Fri, 20 Jun 2008 10:34:46 +0000 (12:34 +0200)]
sorting authority list

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agovarious fixes for acquisition histsearch
paul [Fri, 20 Jun 2008 10:34:45 +0000 (12:34 +0200)]
various fixes for acquisition histsearch

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agojust doing a <= / >= instead of a < / > in history search.
paul [Fri, 20 Jun 2008 10:34:43 +0000 (12:34 +0200)]
just doing a <= / >= instead of a < / > in history search.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - remove base64 functions from C4::Koha
Galen Charlton [Fri, 20 Jun 2008 13:11:23 +0000 (08:11 -0500)]
bug 2000 - remove base64 functions from C4::Koha

With the removal of admin/finesrules.pl and admin/issuingrules.pl,
the functions str_to_base64() and base64_to_str() in C4::Koha
are no longer used.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - remove admin/issuingrules.pl
Galen Charlton [Fri, 20 Jun 2008 13:11:22 +0000 (08:11 -0500)]
bug 2000 - remove admin/issuingrules.pl

Patch to remove issuingrules.pl in favor of
using smart-rules.pl to manage loan and fine
rules.  Several reasons for this:

* issuingrules.pl's matrix could grow rather large
  if the library has a large number of item types
  and patron categories
* successfully entering rules via issuingrules.pl
  requires placing commas within input fields
* a sparse circulation policy matrix takes the
  same amount of screen space as one that uses
  rules for a lot of specific patron category/item type
  combinations.
* having two administrative interfaces to the same
  policy settings could be confusing.
* UI design of smart-rules.pl better lends itself
  to adding more policy setting attributes to the
  rules matrix.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - removed finesrules.pl
Galen Charlton [Fri, 20 Jun 2008 13:11:21 +0000 (08:11 -0500)]
bug 2000 - removed finesrules.pl

Removed the separate admin/finesrules.pl script
to set the fines policy matrix: since admin/finesrules.pl
and admin/issuingrules.pl both touch issuingrules.pl, creating
a specific fine rule could silently override a default issuing
rule and prevent items from being checked out.

Circulation policy matrix settings for fines are now
handled in admin/smart-rules.pl

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - changes to TooMany()
Galen Charlton [Fri, 20 Jun 2008 13:11:20 +0000 (08:11 -0500)]
bug 2000 - changes to TooMany()

The C4::Circulation::TooMany() function, which determines
if a patron is at the maximum loan limit, has been
changed to work as follows:

1. Checks the issuing rule that would apply to the
   prospective loan to see if a loan limit (maxissueqty)
   has been set.
2. Counts the number of loans that the patron has
   that would fall under that loan rule.

IMPORTANT: that means that if a specific loan rule
exists for the branch, patron category, and item type
in question, *only* that rule's maxissueqty will be
checked here - it will not go on to check whether
a less specific rule has a lower loan limit.

3. If adding one more loan would bring that count
   over the limit, returns a "too many" error.
4. If the loan hasn't exceeded a specific limit, checks
   whether a branch/patron category circ rule has
   specified a loan limit, regardless of item type.
   If the patron has already reached *that* limit, returns
   the "too many" error.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - add C4::Circulation::GetBranchBorrowerCircRule
Galen Charlton [Fri, 20 Jun 2008 13:11:19 +0000 (08:11 -0500)]
bug 2000 - add C4::Circulation::GetBranchBorrowerCircRule

This routine retrieves the branch/patron category circulation
rules for a given branch and patron category.  The return
value is a hashref containing the following key:

maxissueqty - maximum number of loans across all item types

This will first check for a specific branch and
category match from branch_borrower_circ_rules.

If no rule is found, it will then check default_branch_circ_rules
(same branch, default category).  If no rule is found,
it will then check default_borrower_circ_rules (default
branch, same category), then failing that, default_circ_rules
(default branch, default category).

If no rule has been found in the database, it will default to
the built in rule:

maxissueqty - undef

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000: addition changes to rules editor
Galen Charlton [Fri, 20 Jun 2008 13:11:18 +0000 (08:11 -0500)]
bug 2000: addition changes to rules editor

* Added ability to specify total loans allowed at a library
  for the default patron category.  If set, the default
  limit is applied if no rule for the specific library
  and patron category is set.
* Added ability to specify default total loans allowed
  for the default library; this is applied if no rule
  for the specify library is set.
* Form now indicates if the number of current checkouts
  allowed is unlimited.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - add total loan limit to alt. issuing rules
Galen Charlton [Fri, 20 Jun 2008 13:11:17 +0000 (08:11 -0500)]
bug 2000 - add total loan limit to alt. issuing rules

The alternate issuing rules editor can now allow
defining the maximum number of loans that a borrower
of a given category can take out per branch, regardless
of item type.

The form for entering this limit now appears below
the form for setting loan rules per patron category
and item type.  The form only appears if a specific
branch is chosen, not if the default branch is used.

Also, some terminology changes:

* "Amount Loanable" => "Current Checkouts Allowed"
* "Amount" => "Fine Amount"
* "Grace Period" => "Fine Grace Period"
* "Charging Interval" => "Fine Charging Interval"
* "Loan time" => "Loan Period"

Documentation change: new screenshots for the alternate
loan rules form.

squashme terminology

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - fix order of issuingrule lookup
Galen Charlton [Fri, 20 Jun 2008 13:11:16 +0000 (08:11 -0500)]
bug 2000 - fix order of issuingrule lookup

Extended help on the alternate circulation rules
form to list the order of issuingrules lookup as
follows:

same library, same patron type, same item type</li>
same library, same patron type, default item type</li>
same library, default patron type, same item type</li>
same library, default patron type, default item type</li>
default library, same patron type, same item type</li>
default library, same patron type, default item type</li>
default library, default patron type, same item type</li>
default library, default patron type, default item type</li>

This includes modifying two routines in C4::Circulation to
follow this order: GetLoanLength() and GetIssuingRule().

The reason for this change is to have Koha exhaust all issuingrules
possibilities for a branch before checking the rules for
the default branch - this is consistent with what an admin
might expect from looking at the issuingrules forms, which display
settings a branch at a time, and is more consistent with how
circulation rules should work for indepdendent branches.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - alternate issuing rules - set sorting of rules
Galen Charlton [Fri, 20 Jun 2008 13:11:15 +0000 (08:11 -0500)]
bug 2000 - alternate issuing rules - set sorting of rules

Issuing rules are now explicitly sorted by patron category,
then item type.  The default patron category sorts last; within
a list of item types for a given patron category, the default
item type sorts last.  This follows the order in which
the issuing rules are applied.

Since the primary sort is patron category, also moved that
to be the first column in the issuing rules table.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - alternate issuing rules - some form cleanup
Galen Charlton [Fri, 20 Jun 2008 13:11:14 +0000 (08:11 -0500)]
bug 2000 - alternate issuing rules - some form cleanup

Improvements to smart-rules.pl to allow it to
replace issuingrules.pl.

* standardized "borrower type" to "patron category"
* made default item type and patron category ('Any')
  translatable
* regularized construction of parameters for rule
  deletion operatrion

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2000 - added several circ rules tables (DB rev 090)
Galen Charlton [Fri, 20 Jun 2008 13:11:13 +0000 (08:11 -0500)]
bug 2000 - added several circ rules tables (DB rev 090)

The first new table is branch_borrower_circ_rules.

This table is used to store circulation rule attributes
that apply to a combination of patron category and branch
across all item types.  The one attribute defined is
maxissueqty, which sets the maximum number of loans
that a patron of a given category can take out at a given
branch.

Note that branch_borrower_circ_rules is for attributes
that apply across all item types.  This means that
issuingrules.maxissueqty has a different meaning: it is
the maximum number of loans per branch, category, and item type;
if issuingrules.itemtype is '*', that is a *default*
circulation rule used if no more specific rule is found.

The new table will allow the implementation of total
loan limit across item types without making the wildcard
'*' in issuingrules ambiguous.  Specifically, if branchcode,
categorycode, or itemtype is issuingrules is '*', that will now
always mean a loan rule to be applied if a more specific rule cannot be found.
Setting issuingrules.itemtype to '*' will no longer mean
to set a total limit across item types for maxissueqty.

The remaining new tables are used to store default
rules for the default branch, the default patron category,
or both:

default_branch_circ_rules - for a given branch, specify
the rule to apply if no more specific rule on
branch and patron category is found (i.e. patron category is default)

default_borrower_circ_rules - for a given patron category,
specify the rule to apply if no more specific rule
on branch patron category is found (i.e., branch is default)

default_circ_rules - global default if no more specify rule
on patron category and branch is available.  Note that this
table is constructed so that it can have at most
one row.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoadding string for translator
paul [Fri, 20 Jun 2008 10:34:52 +0000 (12:34 +0200)]
adding string for translator

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agofrench translation updated (again)
paul [Fri, 20 Jun 2008 10:34:51 +0000 (12:34 +0200)]
french translation updated (again)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoupdating french translation (lot of fixes)
paul [Fri, 20 Jun 2008 10:34:50 +0000 (12:34 +0200)]
updating french translation (lot of fixes)

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agomovin patron flags to template to have translatable strings
paul [Fri, 20 Jun 2008 10:34:49 +0000 (12:34 +0200)]
movin patron flags to template to have translatable strings

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoescaping field to deal with quotes in shelf name
paul [Fri, 20 Jun 2008 10:34:48 +0000 (12:34 +0200)]
escaping field to deal with quotes in shelf name

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agominor fixes in marc frameworks
paul [Fri, 20 Jun 2008 10:34:47 +0000 (12:34 +0200)]
minor fixes in marc frameworks

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agominor translation fixes
paul [Fri, 20 Jun 2008 10:34:44 +0000 (12:34 +0200)]
minor translation fixes

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoAdding some suggestion reasons in french
paul [Fri, 20 Jun 2008 10:34:42 +0000 (12:34 +0200)]
Adding some suggestion reasons in french

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoSIP - Lots of regexp hacking of input streams and verbose debugging feedback.
Joe Atzberger (siptest [Fri, 20 Jun 2008 03:23:00 +0000 (22:23 -0500)]
SIP - Lots of regexp hacking of input streams and verbose debugging feedback.

The basic problem is that the SIP logic doesn't know where the
input is coming from.  It might be a RAW socket, and it might
be telnet.  If it is telnet, although the specs declare a
character set (from MS, unfortunately), they do not specify a telnet
implementation.  So you might get telnet handshaking or
renegotiations in the middle of an otherwise peaceful session and
these should not be taken as SIP commands.  Patches include a move
towards using $CRLF from Socket to avoid problems w/ foreign platform
mapping \n and \r to \015 or \012.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2264: do not clear patron zipcode and city
Galen Charlton [Thu, 19 Jun 2008 21:20:28 +0000 (16:20 -0500)]
bug 2264: do not clear patron zipcode and city

When edting only a part of the patron record (e.g.,
the library use section or the alternate address), the
zipcode and city were cleared due to an error in
form processing.  Now the city and zipcode are set
only of those fields are actually in the submitted form.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2263 - transfer zipcode when selecting guarantor
Galen Charlton [Thu, 19 Jun 2008 21:20:27 +0000 (16:20 -0500)]
bug 2263 - transfer zipcode when selecting guarantor

The template for the guarantor search implies that
the zipcode is one of the values to be copied from
guarantor to guarantee.  Fixed so that the transfer
can actually take place.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2262 - fix delete guarantor button
Galen Charlton [Thu, 19 Jun 2008 21:20:26 +0000 (16:20 -0500)]
bug 2262 - fix delete guarantor button

Added an ID attribute so that the JavaScript
for the 'delete guarantor' button could
clear the guarantorid field.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoRedesigning and bugfixing language-picker. Switching from fixed footer positioning...
Owen Leonard [Thu, 19 Jun 2008 15:49:27 +0000 (10:49 -0500)]
Redesigning and bugfixing language-picker. Switching from fixed footer positioning to one with flows with page length. Fixing major unreported bug which prevented any but the first sublanguage menu from displaying.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2253: improve rebuild_zebra's handling of zebraqueue
Galen Charlton [Thu, 19 Jun 2008 14:30:59 +0000 (09:30 -0500)]
bug 2253: improve rebuild_zebra's handling of zebraqueue

Prior to this patch, rebuild_zebra.pl -z was effectively
hanging on to a lock on the zebraqueue table, preventing
other scripts from inserting new entries into the table.
This had the effect of causing circulation operations
to time out.

Refactored by having rebuld_zebra.pl pull the active
queue into memory, then mark entries done by zebraqueue.id.
Consequently, rebuild_zebra.pl should no longer
block adding new entries into zebraqueue.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2258 - new script to sync embedded items
Galen Charlton [Thu, 19 Jun 2008 14:03:37 +0000 (09:03 -0500)]
bug 2258 - new script to sync embedded items

Created a new script, sync_items_to_marc_bib.pl,
to replace the item tags embedded in the MARC bib
records with fresh versions taken from the items table.

This script should be run as follows:

maintenance/sync_items_to_marc_bib.pl --run-update

Assuming that you're using Zebra, rebuild_zebra.pl -b -z
or rebuild_zebra.pl -b -r should be run after running
this script.

This script should be run if you have used
link_bibs_to_authorities.pl prior to the first
patch for bug 2258.  It can also be used if there
is any reason to suspect that the embedded item tags
do not reflect the items table.

With this script I am creating a maintenance/ subdirectory of
misc/ to hold scripts that are meant to fix problems
in the database but are not (or should not be, anyway) necessary
for regular use.

Documentation: add to documentation for server side scripts

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoRemove 95c and 95r subfields from default MARC21 framework -- These have no tag defin...
Ryan Higgins [Tue, 17 Jun 2008 22:00:03 +0000 (17:00 -0500)]
Remove 95c and 95r subfields from default MARC21 framework -- These have no tag definitions.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix for bug 2260: UNIMARC misconfiguratin on itemtype
Joshua Ferraro [Thu, 19 Jun 2008 13:19:37 +0000 (08:19 -0500)]
Fix for bug 2260: UNIMARC misconfiguratin on itemtype

WARNING: THIS PATCH REQUIRES A REINDEX FOR UNIMARC RECORDS

15 years agoCirculate permission misspelling
Joshua Ferraro [Thu, 19 Jun 2008 00:46:13 +0000 (19:46 -0500)]
Circulate permission misspelling

15 years agoBug: 2259: eliminate lines too long for git to use.
Andrew Moore [Wed, 18 Jun 2008 18:04:17 +0000 (13:04 -0500)]
Bug: 2259: eliminate lines too long for git to use.

This patch modifies 13 HTML templates and includes that have lines in them longer than 998 characters. Lines this long are known to break git.

I believe that none of these change behaviour at all, but I'm concerned about one of them. It adds whitespace (carraige returns) inside a <title> tag. I'm not certain that all browsers will deal with this OK.

No documentation changes necessary here.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2258 - do not duplicate embedded items
Galen Charlton [Wed, 18 Jun 2008 19:50:22 +0000 (14:50 -0500)]
bug 2258 - do not duplicate embedded items

If a MARC bib is modified by this batch job,
do not duplicate the item tags embedded in
it (e.g., 952 for MARC21).  When modifying
a bib record, any embedded item tags must
be removed before calling ModBiblio - perhaps
this should be moved to ModBiblio itself.

Also removed an error in the job's help text.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix for bug 2212: Searching with Itemtype limit doesn't work
Joshua Ferraro [Wed, 18 Jun 2008 18:57:22 +0000 (13:57 -0500)]
Fix for bug 2212: Searching with Itemtype limit doesn't work

The issue was that the index for itemtype is different depending
on whether you're using item-level or bib-level itemtypes. This
patch detects the system choice and sets the index properly

15 years agoResolves bug 2250: RFC: New System Preference to Determine which 'Types' and associat...
Joshua Ferraro [Wed, 18 Jun 2008 18:01:20 +0000 (13:01 -0500)]
Resolves bug 2250: RFC: New System Preference to Determine which 'Types' and associated icons to display in advanced Search

For documentation, please indicate that as part of profiling,
staff can refer to the AdvancedSearchTypes system preference to
choose where to draw the advanced search 'Types' from. Currently
this is implemented as a choice, between itemtypes and ccodes,
but it's been designed to work with any authorised value so long
as an index exists for searching by that authorised value.

By default, and if this syspref doesn't exist, it will pull from
itemtypes as before.

15 years agoA better fix for Bug 2229, I think. Text inside basket.js can be translated fine...
Owen Leonard [Wed, 18 Jun 2008 16:24:58 +0000 (11:24 -0500)]
A better fix for Bug 2229, I think. Text inside basket.js can be translated fine, this instance simply lacked the call to the dummy function for gettext. It's important /not/ to have the "Cart" text in masthead.inc because there should be no Cart link for users with javascript turned off.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoAdding required jquery files for update Cart notification popup.
Owen Leonard [Wed, 18 Jun 2008 15:47:53 +0000 (10:47 -0500)]
Adding required jquery files for update Cart notification popup.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoPosition of cart details popup needs to be specified numerically since jquery can...
Owen Leonard [Wed, 18 Jun 2008 15:56:56 +0000 (10:56 -0500)]
Position of cart details popup needs to be specified numerically since jquery can't seem to accurately calculate the dimensions of the cart button.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoContinuing work on Cart popup
Owen Leonard [Wed, 18 Jun 2008 15:56:41 +0000 (10:56 -0500)]
Continuing work on Cart popup

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoTesting change to cart popup display system. Attempting to fix display flakiness...
Owen Leonard [Wed, 18 Jun 2008 15:56:30 +0000 (10:56 -0500)]
Testing change to cart popup display system. Attempting to fix display flakiness associated with YUI method.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix for Bug 2240, "opac-search.pl masthead does not include 'cart' and 'list' buttons...
Owen Leonard [Wed, 18 Jun 2008 14:58:12 +0000 (09:58 -0500)]
Fix for Bug 2240, "opac-search.pl masthead does not include 'cart' and 'list' buttons, " and other minor markup corrections.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoLowering truncation threshold for display of system preference values to better accom...
Owen Leonard [Wed, 18 Jun 2008 14:58:05 +0000 (09:58 -0500)]
Lowering truncation threshold for display of system preference values to better accomodate average display size. Compromise fix for Bug 2132, "Sys Pref Column too Wide."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoFix for Bug 2097, "Extra bar after subject headings in OPAC."
Owen Leonard [Wed, 18 Jun 2008 14:57:57 +0000 (09:57 -0500)]
Fix for Bug 2097, "Extra bar after subject headings in OPAC."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoAdding missing menu item for Stop Words. Fixes Bug 1995, "Link Missing from Admin...
Owen Leonard [Tue, 17 Jun 2008 20:03:55 +0000 (15:03 -0500)]
Adding missing menu item for Stop Words. Fixes Bug 1995, "Link Missing from Admin Menu."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoRestructuring guarantor display to address Bug 2220 ("Guarantor needs two fields...
Owen Leonard [Tue, 17 Jun 2008 19:56:08 +0000 (14:56 -0500)]
Restructuring guarantor display to address Bug 2220 ("Guarantor needs two fields to be labeled"). This change probably means an updated screenshot is necessary.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoWhitespace was causing table sorting problem. Fixes Bug 2215, "In page JavaScript...
Owen Leonard [Tue, 17 Jun 2008 19:55:58 +0000 (14:55 -0500)]
Whitespace was causing table sorting problem. Fixes Bug 2215, "In page JavaScript sort not working for title on holds tab for my summary."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoCorrection to allow pop-up window to scroll. fixes Bug 2209, "Editing records in...
Owen Leonard [Tue, 17 Jun 2008 19:55:51 +0000 (14:55 -0500)]
Correction to allow pop-up window to scroll. fixes Bug 2209, "Editing records in the inventory."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoMarkup corrections. You can't embed a <!-- TMPL_IF --> inside an HTML tag because...
Owen Leonard [Tue, 17 Jun 2008 18:31:30 +0000 (13:31 -0500)]
Markup corrections. You can't embed a <!-- TMPL_IF --> inside an HTML tag because it causes problems for the translation script.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoMarkup correction. You can't embed a <!-- TMPL_IF --> inside an HTML tag because...
Owen Leonard [Tue, 17 Jun 2008 18:31:12 +0000 (13:31 -0500)]
Markup correction. You can't embed a <!-- TMPL_IF --> inside an HTML tag because it causes problems for the translation script.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoremove some warns
Ryan Higgins [Tue, 17 Jun 2008 18:17:00 +0000 (13:17 -0500)]
remove some warns

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agobug 2252 - check correct items for item-specific holds
Galen Charlton [Tue, 17 Jun 2008 15:12:25 +0000 (10:12 -0500)]
bug 2252 - check correct items for item-specific holds

C4::Reserves::_Findgroupreserves(), instead of
getting all requests for a bib, now gets only the
requests that are title-level (itemnumber is null)
or for that specific item.  This prevents an item
from filling an item-level hold for a different item
attached to the same bib, which is the expected
behavior for item-level holds.

[LL Bug 22]

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoCorrrecting layout for opacuserlogin = 0. Fixes Bug 2228, "Wrong page design on opac...
Owen Leonard [Tue, 17 Jun 2008 13:27:05 +0000 (08:27 -0500)]
Corrrecting layout for opacuserlogin = 0. Fixes Bug 2228, "Wrong page design on opac-main.pl when no login section."

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoRemoving redundant column. Fixes Bug 2202, "No need for View Column on Authority...
Owen Leonard [Tue, 17 Jun 2008 13:26:56 +0000 (08:26 -0500)]
Removing redundant column. Fixes Bug 2202, "No need for View Column on Authority Search"

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
15 years agoTerminology correction (fixes Bug 2200, "Mislabeled Column on Overdues Report")
Owen Leonard [Tue, 17 Jun 2008 12:53:15 +0000 (07:53 -0500)]
Terminology correction (fixes Bug 2200, "Mislabeled Column on Overdues Report")

Signed-off-by: Joshua Ferraro <jmf@liblime.com>