koha.git
11 years agoAdding 3.10 release notes v3.10.00
Paul Poulain [Fri, 23 Nov 2012 15:27:57 +0000]
Adding 3.10 release notes

11 years agoBumping version to 3.10.0 and adding sponsors that are were not already written
Paul Poulain [Mon, 19 Nov 2012 16:16:33 +0000]
Bumping version to 3.10.0 and adding sponsors that are were not already written

Sponsored-by: Central Kansas Library System (CKLS), Plum Creek Library System and Washoe County Library System
Sponsored-by: Los Gatos Public Library and Harrison Carmel Public Library
Sponsored-by: Talking Tech
Sponsored-by: VOKAL
Sponsored-by: Brooklyn Law School Library
Sponsored-by: North Central Regional Library (NCRL)
Sponsored-by: Washoe County Library System
Sponsored-by: Corpus Christi Public Libraries
Sponsored-by: Northeast Kansas Library System (NEKLS)
Sponsored-by: Université d'Aix-Marseille
Sponsored-by: Université de Rennes 2
Sponsored-by: Université de Lyon 3
Sponsored-by: Université de St Etienne
Sponsored-by: BdP de la Meuse

11 years agoMerge remote-tracking branch 'tamil/3.10.0-translate' into 3.10.xb
Paul Poulain [Fri, 23 Nov 2012 14:50:26 +0000]
Merge remote-tracking branch 'tamil/3.10.0-translate' into 3.10.xb

11 years agoBug 9018 Italian translation of ccsr.po
Paul Poulain [Fri, 23 Nov 2012 10:06:44 +0000]
Bug 9018 Italian translation of ccsr.po

11 years agoBug 9018 generated ccsr translation file
Paul Poulain [Fri, 23 Nov 2012 10:15:44 +0000]
Bug 9018 generated ccsr translation file

(see http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9018#c13 that explain how I made them)

11 years agoMerge remote-tracking branch 'origin/new/bug_9122' into 3.10.xb
Paul Poulain [Fri, 23 Nov 2012 14:41:35 +0000]
Merge remote-tracking branch 'origin/new/bug_9122' into 3.10.xb

11 years agoBug 9122: fix the problem when writing-off a fine
Paul Poulain [Fri, 23 Nov 2012 13:32:42 +0000]
Bug 9122: fix the problem when writing-off a fine

The problem was introduced by the addition of accountlines_id in bug 7671

The WriteOffFee sub was called with accountlines_id as second parameter
but still dealing with the accountno column.

As a result, the UPDATE was failing (updating nothing), and the fine
note written off even if the writeoff itself was saved. In other words:
the writeoff was not "attached" to the fine.

This patch fixes the problem.

Test plan: do what katrin says in initial description of the problem:
- add some fines manually, I did 'new card' and sundry
- try writing off all of them or one of them
- the fine is correctly written off

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years ago3.10.0 Translation Update
Frédéric Demians [Fri, 23 Nov 2012 11:46:19 +0000]
3.10.0 Translation Update

11 years agoMerge remote-tracking branch 'origin/new/bug_9078' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:42:47 +0000]
Merge remote-tracking branch 'origin/new/bug_9078' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8800' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:41:35 +0000]
Merge remote-tracking branch 'origin/new/bug_8800' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9064' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:41:09 +0000]
Merge remote-tracking branch 'origin/new/bug_9064' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8954' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:40:50 +0000]
Merge remote-tracking branch 'origin/new/bug_8954' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8844' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:39:22 +0000]
Merge remote-tracking branch 'origin/new/bug_8844' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9024' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:38:43 +0000]
Merge remote-tracking branch 'origin/new/bug_9024' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9017' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:38:28 +0000]
Merge remote-tracking branch 'origin/new/bug_9017' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9070' into 3.10.x
Paul Poulain [Thu, 22 Nov 2012 15:34:17 +0000]
Merge remote-tracking branch 'origin/new/bug_9070' into 3.10.x

11 years agoBug 9078 - fixing exceptions broke tests
Tomas Cohen Arazi [Wed, 21 Nov 2012 15:54:46 +0000]
Bug 9078 - fixing exceptions broke tests

Fixing the holiday exceptions arised a problem with how the test data was constructed.
This made several tests fail.

This patch fixes the add_holiday function. Tests should pass now.

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9078 - is_holiday should honour holiday exceptions
Tomas Cohen Arazi [Wed, 21 Nov 2012 13:43:11 +0000]
Bug 9078 - is_holiday should honour holiday exceptions

Make is_holiday return 0 for holiday exceptions.

Note: This patch makes several current ok tests fail. My first guess is test data is not
constructed ok. More on this later.

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8800' into 3.12-master
Jared Camins-Esakov [Thu, 22 Nov 2012 14:20:07 +0000]
Merge branch 'bug_8800' into 3.12-master

11 years agoBug 8800 - useDaysMode=Datedue wrong behaviour (revisited)
Tomas Cohen Arazi [Fri, 21 Sep 2012 15:50:26 +0000]
Bug 8800 - useDaysMode=Datedue wrong behaviour (revisited)

useDaysMode=Datedue wasn't used as advertised in the docs. Added
next_open_day and prev_open_day subs to Koha::Calendar and some tests for them.

- Koha::Calendar->addDate was rewritten in a more sane way (also split into
  addHours and addDays for convenience).
- Fixed a bug introduced in Bug 8966 regarding dt truncation and dtSets->contains
- Minor docs typos
- Use the passed Calendar mode or default to 'Calendar' in Koha::Calendar->_mockinit.
- Tests

I'm writing some db-dependent tests for is_holiday, and hopefully for CalcDateDue so any
rewrite/followup doesn't break things.

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9064: Increment version number
Jared Camins-Esakov [Thu, 22 Nov 2012 14:04:05 +0000]
Bug 9064: Increment version number

Database update for bug 9064 has been given version 3.09.00.067

11 years agoBug 9064: fix statistics.ccode column
Paul Poulain [Wed, 21 Nov 2012 12:46:59 +0000]
Bug 9064: fix statistics.ccode column

From updatedatabase.pl:
    $dbh->do("ALTER TABLE statistics ADD COLUMN ccode VARCHAR ( 10 ) NULL AFTER associatedborrower");
From kohastructure.sql:
  `ccode` int(11) default NULL, -- foreign key from the items table, links transaction to a specific collection code

The variant in updatedatabase.pl is probably what was wanted.

This patch fixes the kohastructure and add another updatedatabase.pl, in case someone has a broken install.
This should not happen, because 3.10.0 still not released, but just in case...

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8954' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 19:40:15 +0000]
Merge branch 'bug_8954' into 3.12-master

11 years agoBug 8954: Make languages list in advanced search translatable (revision 1)
Mathieu Saby [Thu, 8 Nov 2012 23:49:49 +0000]
Bug 8954: Make languages list in advanced search translatable (revision 1)

In opac-search.pl and search.pl, this patch moves the $lang variable from the end to the begining of the script, and use it as a parameter for getAllLanguages.
In Languages.pm, getAllLanguages function is modified :
- if no parameter is passed to the function, it returns english languages names
- if a $lang parameter conforming to RFC4646 syntax is passed :
-- the function returns languages names translated in $lang if possible
-- if a language name is not translated in $lang in database, the function returns english language name
To test, set your opac and staff interface in english and in other languages and check search.pl and opac-search.pl :
- If language names in your languages_description table are translated in the same language you use for your GUI, the language names in dropdown list will be translated in this language (+native name).
- If your GUI is in english, or in a language into whitch languages names are not translated in languages_description, the dropdown list will stay in english (+native name).

Signed-off-by: Marc Veron <veron@veron.ch>

Patch behaves as expected.

With Opac language set to French I got all languages with French language name.
With German (de-DE), I got only a few with German language names (and all other with English ones),
this was due to missing entries for de-DE in table language_descriptions.
This behaviour is consistent with the description above.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Tested language list in OPAC and staff advanced search is translated
properly after applying the patch. Checked that language switcher still
works like it should.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Fixed typo in POD.

11 years agoMerge branch 'bug_8844' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 19:24:46 +0000]
Merge branch 'bug_8844' into 3.12-master

11 years agoMerge branch 'bug_9024' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 19:14:15 +0000]
Merge branch 'bug_9024' into 3.12-master

11 years agoBug 9024: Fix typo
Mirko Tietgen [Tue, 20 Nov 2012 16:39:01 +0000]
Bug 9024: Fix typo

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9024: Add missing sample data to existing files
Katrin Fischer [Wed, 7 Nov 2012 15:04:06 +0000]
Bug 9024: Add missing sample data to existing files

Adds missing authorised values (enhancement)

Adds missing slip notice templates (bug fix)
Koha will complain if you try to print a slip and there is no notice
defined for them, so this is not really an improvement, but kind of a bug fix.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9024: Adding sample patron attributes to German web installer
Katrin Fischer [Wed, 7 Nov 2012 14:39:48 +0000]
Bug 9024: Adding sample patron attributes to German web installer

Adds SHOW_BCODE as sample patron attribute to the German web installer.

To test:
- Run the web installer in German, make sure the new sample data shows up
and can be installed.

Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9017' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 19:10:59 +0000]
Merge branch 'bug_9017' into 3.12-master

11 years agoBug 9017 - Quote of the day: Table footer not translated
Marc Veron [Wed, 7 Nov 2012 12:56:42 +0000]
Bug 9017 - Quote of the day: Table footer not translated

The strings for the table footer of the QOD feature are translated in /datatables-strings.inc, but they did not show up in staff client due to missing code in quotes.tt -> $(document).ready(function(), part "oLanguage"
Code added as appropriate.
See: http://datatables.net/usage/i18n

Additionally, quotes.tt had a stray </script> tag after [% INCLUDE 'datatables-strings.inc' %]

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9070: [SIGNED-OFF] authority searches in auth_finder error out
Jared Camins-Esakov [Tue, 13 Nov 2012 16:02:24 +0000]
Bug 9070: [SIGNED-OFF] authority searches in auth_finder error out

When using authority records imported into Koha from elsewhere, you
can get an error like:
    Can't use string ("HASH(0xbc6c{30)") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/AuthoritiesMarc.pm line 363.
in authorities/auth_finder.pl. This patch fixes that error.

To test:
1) You will need records imported from elsewhere.
2) Use the authority control plugin in a bib record to search for one of
   those headings.
3) Observe you get a nasty error.
4) Apply patch.
5) Repeat step 2.
6) Observe the error is gone.
7) Sign off.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Works as advertised. No warning about "defined(%hash) is deprecated"
under perl v5.10.1.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge remote-tracking branch 'origin/new/bug_8971' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:59:03 +0000]
Merge remote-tracking branch 'origin/new/bug_8971' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9023' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:58:48 +0000]
Merge remote-tracking branch 'origin/new/bug_9023' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9020' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:45:38 +0000]
Merge remote-tracking branch 'origin/new/bug_9020' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8975' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:45:09 +0000]
Merge remote-tracking branch 'origin/new/bug_8975' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_7932' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:29:04 +0000]
Merge remote-tracking branch 'origin/new/bug_7932' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_7368' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:28:13 +0000]
Merge remote-tracking branch 'origin/new/bug_7368' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8997' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:27:48 +0000]
Merge remote-tracking branch 'origin/new/bug_8997' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8880' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:27:30 +0000]
Merge remote-tracking branch 'origin/new/bug_8880' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8750' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:26:38 +0000]
Merge remote-tracking branch 'origin/new/bug_8750' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9058' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:26:04 +0000]
Merge remote-tracking branch 'origin/new/bug_9058' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9107' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:24:43 +0000]
Merge remote-tracking branch 'origin/new/bug_9107' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9046' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:24:12 +0000]
Merge remote-tracking branch 'origin/new/bug_9046' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9085' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:23:24 +0000]
Merge remote-tracking branch 'origin/new/bug_9085' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9066' into 3.10.x
Paul Poulain [Tue, 20 Nov 2012 15:22:49 +0000]
Merge remote-tracking branch 'origin/new/bug_9066' into 3.10.x

11 years agoBug 8971 - Sort holds queue report using DataTables
Owen Leonard [Thu, 25 Oct 2012 16:38:46 +0000]
Bug 8971 - Sort holds queue report using DataTables

Replacing the old tablesorter plugin with DataTables on
this page will fix sorting bugs related to whitespace and
markup in table cells which tablesorter couldn't handle.

I have also taken the liberty of changing the default sort
from patron to call number, assuming that the librarian
uses this list to pull items from the shelf, and the shelf
is organized by call number.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9023' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 13:05:28 +0000]
Merge branch 'bug_9023' into 3.12-master

11 years agoBug 9023: Update installer text files
Katrin Fischer [Wed, 7 Nov 2012 14:21:17 +0000]
Bug 9023: Update installer text files

Corrected some information about the provided sample data and corrected
text files to obey capitalization rules.

To test:
I suggest taking a look at the patch file and also taking a look at the
English web installer, checking if it works, if there are typos or wrong
information.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9023: Remove NY Z39.50 servers from installer txt files
Katrin Fischer [Wed, 7 Nov 2012 13:54:52 +0000]
Bug 9023: Remove NY Z39.50 servers from installer txt files

Broken Z39.50 targets were removed with patch for bug 3782, but are still
mentioned in the text files.

This patch corrects that mistake.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9020' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 13:00:32 +0000]
Merge branch 'bug_9020' into 3.12-master

11 years agoBug 9020 - Translate new permissions for 3.10 nb-NO
Magnus Enger [Mon, 12 Nov 2012 11:00:44 +0000]
Bug 9020 - Translate new permissions for 3.10 nb-NO

To test:
- Apply the patch
- Check that installer/data/mysql/nb-NO/1-Obligatorisk/userpermissions.sql
  can be loaded into the DB without errors (you might have to do "DELETE
  FROM permissions" first)
- Check that there are no English strings when you edit the permissions
  of a patron

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9020: [SIGNED-OFF] Translate new permissions for 3.10 de-DE
Katrin Fischer [Wed, 7 Nov 2012 13:01:49 +0000]
Bug 9020: [SIGNED-OFF] Translate new permissions for 3.10 de-DE

To test:
- Run the web installer in German
- Check that all permissions for a staff patron are translated

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
I did not do a complete install, but I:
- Applied the patch
- Loaded installer/data/mysql/de-DE/mandatory/userpermissions.sql
  into MySQL without any trouble
- Logged in to the staff client and found no untranslated permissions
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 8844: UNIMARC_sync_date_created_with_marc_biblio.pl creates a modification log
Fridolyn SOMERS [Fri, 28 Sep 2012 16:43:50 +0000]
Bug 8844: UNIMARC_sync_date_created_with_marc_biblio.pl creates a modification log

Signed-off by : Mathieu Saby <mathieu.saby@univ-rennes2.fr>

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8975' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:42:48 +0000]
Merge branch 'bug_8975' into 3.12-master

11 years agoBug 8975 - search results should say on order in staff client
Owen Leonard [Fri, 2 Nov 2012 15:40:52 +0000]
Bug 8975 - search results should say on order in staff client

In order to allow holds on items with notforloan = -1, processing
of "unavailable" items in Search.pm was altered to exclude items
with notforloan < 0. (See Bug 2341: items marked 'on order' not
 reserveable from search results). Doing so meant that such items
were excluded from the list, in staff client search results, of
items which are unavailable.

This patch changes the logic of that processing so that items
with notforloan < 0 are considered unavailable, but can still
be placed on hold.

To test, edit a record with a single item and view that record
in search results. When the item is is on order (notforloan -1)
it should say so. The holds link should be INactive only if:

- item is withdrawn AND/OR
- item is lost AND/OR
- item is damaged (and AllowHoldsOnDamagedItems is off) AND/OR
- item is not for loan, with notforloan > 0

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>

All tests pass (note that a reindex is required if changing item
statuses - which is why my first tests failed).

Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 7932 [Revised] Twitter share doesn't work with socialnetworks
Owen Leonard [Thu, 1 Nov 2012 15:21:37 +0000]
Bug 7932 [Revised] Twitter share doesn't work with socialnetworks

The only way I can get this to work consistently is to use
Twitter's own code as documented here:

https://dev.twitter.com/docs/tweet-button

This requires that we use the tweet button generated by Twitter
rather than the smaller image we were using before. Using the
documented options for generating a custom button produced the
same inconsistent behavior this patch attempts to fix.

Because of the change of appearance I moved the Twitter button
to last in line so that similarly-sized buttons were grouped. I
also changed the configuration of the Google+ button to exclude
the count, saving some horizontal space.

Revision removes explicit declaration of share URL. I think when
testing this previously I assumed it was required when in fact
the share URL wasn't working because it was a localhost address.

Localhost addresses are apparently rejected by Twitter. Testers
beware.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9046' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:32:29 +0000]
Merge branch 'bug_9046' into 3.12-master

11 years agoBug 9046: Followup FIX perl v5.10 raises an error if itemnumbers if undefined
Jonathan Druart [Mon, 12 Nov 2012 09:18:30 +0000]
Bug 9046: Followup FIX perl v5.10 raises an error if itemnumbers if undefined

If the itemnumbers parameter is undef, perl raises an error :
"Can't use an undefined value as an ARRAY reference"

Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_7368' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:24:55 +0000]
Merge branch 'bug_7368' into 3.12-master

11 years agoBug 7368: Removing occurrences of dependant= feature in javascript open calls
Marcel de Rooy [Mon, 12 Nov 2012 12:17:04 +0000]
Bug 7368: Removing occurrences of dependant= feature in javascript open calls

The window feature dependant= should have been written as dependent=
Note that this feature is ignored in most/current browsers.
Since the feature was misspelled, removing it will not change any
behavior or hurt anybody.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8997' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:20:23 +0000]
Merge branch 'bug_8997' into 3.12-master

11 years agoBug 8997: Unnecessary call to getAllLanguages
Paul Poulain [Wed, 31 Oct 2012 17:22:14 +0000]
Bug 8997: Unnecessary call to getAllLanguages

In C4/Language, getTranslatedLanguages calls getAllLanguage, passes it
to _build_languages_arrayref, that does nothing of it. Removing this
dead code will clean & reduce SQL overhead

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
I tried switching between languages and enabling and disabling
languages, and could not see any change with the patch applied.

Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8880' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:19:17 +0000]
Merge branch 'bug_8880' into 3.12-master

11 years agoBug 8880 - Uninitialized variables trigger error log entries
Mark Tompsett [Fri, 5 Oct 2012 12:33:47 +0000]
Bug 8880 - Uninitialized variables trigger error log entries

Simply by logging in, clicking Circulation, clicking the
'Check out' link, error log entries were generated.

This patch ensures $findborrower, $barcode, and $print are all
initialized by adding "|| q{}" onto their initializations.
This reduces the silent error log entries generated.

As this patch would overlap with bug 8826 in the initialization
of hashes to prevent other error logs, those changes are in this
patch. Applying this patch without having applied the patch for
bug 8826.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 8750 - Chronological terms authorities not correctly indexed (trivial fix)
Tomas Cohen Arazi [Mon, 10 Sep 2012 18:27:53 +0000]
Bug 8750 - Chronological terms authorities not correctly indexed (trivial fix)

Patch re-done so it applies, had that double-utf8 problem

There was no entry in authority's record.abs for indexing chronological
terms. They couldn't be searched and (obviously) linked.

I've added those entries using the index names defined in
authorities/etc/bib1.att

Regards
To+

Sponsored-by: Universidad Nacional de Córdoba
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9058' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 12:02:00 +0000]
Merge branch 'bug_9058' into 3.12-master

11 years agoBug 9058 - Norwegian default for CalendarFirstDayOfWeek
Magnus Enger [Mon, 12 Nov 2012 11:16:48 +0000]
Bug 9058 - Norwegian default for CalendarFirstDayOfWeek

Sets a sensible default for CalendarFirstDayOfWeek in
installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.sql

To test:
- Do a complete web install in Norwegian
  OR
- Load installer/data/mysql/nb-NO/1-Obligatorisk/system_preferences.sql
  into MySQL from the command line
- Check that CalendarFirstDayOfWeek is set to 'Monday' and that
  calendars display Monday as the first day of the week.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9107' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 11:57:38 +0000]
Merge branch 'bug_9107' into 3.12-master

11 years agoBug 9107: Increment version number
Jared Camins-Esakov [Tue, 20 Nov 2012 11:57:22 +0000]
Bug 9107: Increment version number

Database update for bug 9107 has been given version 3.09.00.066

11 years agoBug 9107: remove the syspref from the database, as well
Paul Poulain [Tue, 20 Nov 2012 10:44:18 +0000]
Bug 9107: remove the syspref from the database, as well

The syspref has been introduced during 3.9, so only a few libraries
should have it, but for consistency it must be removed.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9107: Remove the obsolete DidYouMeanFromAuthorities syspref
Jared Camins-Esakov [Mon, 19 Nov 2012 16:29:30 +0000]
Bug 9107: Remove the obsolete DidYouMeanFromAuthorities syspref

Even though the DidYouMeanFromAuthorities syspref was replaced by a "Did
You Mean?" configuration page, the syspref was showing up in the
syspref editor on the Searching tab.

Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9046: FIX wrong test on an arrayref instead of an array
Jonathan Druart [Fri, 9 Nov 2012 17:34:40 +0000]
Bug 9046: FIX wrong test on an arrayref instead of an array

EmbedItemsInMarcBiblio does not embed items when the itemnumbers param
is given. That breaks the export tools (used from commandline).

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9085' into 3.12-master
Jared Camins-Esakov [Tue, 20 Nov 2012 11:50:46 +0000]
Merge branch 'bug_9085' into 3.12-master

11 years agoBug 9085 - Installer will not run with DEBUG set
Chris Nighswonger [Wed, 14 Nov 2012 20:36:21 +0000]
Bug 9085 - Installer will not run with DEBUG set

This is due to raising all db errors combined with the fact that attempts
to make selections from a non-existent systempreferences table raises db errors.

The installer should run even with DEBUG set, otherwise dropping and recreating
a development database becomes somewhat of a chore. This patch adds code to
check for the existence of the systempreferece table. If the table exists, then
RaiseError is enabled on the database handle. Otherwise it is disabled to allow
the installer to run without throwing an error.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
The installer can now be run both with and without DEBUG set.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 9066: VirtualShelves db access not Plack+MariaDB compatible
Jared Camins-Esakov [Tue, 13 Nov 2012 14:25:42 +0000]
Bug 9066: VirtualShelves db access not Plack+MariaDB compatible

The $dbh database handle in C4::VirtualShelves was declared at the
module level, which means under Plack it is initialized only once, when
the server first starts. With the default MySQL configuration this is
not a problem, since the MySQL connection does not time out, but the
MariaDB default configuration does time out, resulting in every page
that calls any sub in C4::VirtualShelves failing after a certain period.
This patch eliminates the module-level $dbh variable and replaces it
with $dbh handles in each subroutine that requires it.

To test:
Confirm that Virtual Shelves functionality still works as expected. The
problem is not reproducible when using Apache or Plack+MySQL, but if
everything works after the patch has been applied, the changes are safe.

Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge remote-tracking branch 'origin/new/bug_8968' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:35:28 +0000]
Merge remote-tracking branch 'origin/new/bug_8968' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_7500' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:34:39 +0000]
Merge remote-tracking branch 'origin/new/bug_7500' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_6428' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:33:53 +0000]
Merge remote-tracking branch 'origin/new/bug_6428' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9039' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:33:38 +0000]
Merge remote-tracking branch 'origin/new/bug_9039' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9050' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:32:52 +0000]
Merge remote-tracking branch 'origin/new/bug_9050' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8945' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:32:29 +0000]
Merge remote-tracking branch 'origin/new/bug_8945' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8892' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:31:04 +0000]
Merge remote-tracking branch 'origin/new/bug_8892' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9054' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:29:32 +0000]
Merge remote-tracking branch 'origin/new/bug_9054' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9036' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:29:13 +0000]
Merge remote-tracking branch 'origin/new/bug_9036' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_7119' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:28:26 +0000]
Merge remote-tracking branch 'origin/new/bug_7119' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_8915' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:27:50 +0000]
Merge remote-tracking branch 'origin/new/bug_8915' into 3.10.x

11 years agoMerge remote-tracking branch 'origin/new/bug_9053' into 3.10.x
Paul Poulain [Fri, 16 Nov 2012 17:18:39 +0000]
Merge remote-tracking branch 'origin/new/bug_9053' into 3.10.x

11 years agoBug 8968 "Add to cart" translatable on OPAC result page
Frédéric Demians [Thu, 25 Oct 2012 08:07:54 +0000]
Bug 8968 "Add to cart" translatable on OPAC result page

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoBug 7500 [Lists follow-up] Use CSS Sprites for faster page loading
Owen Leonard [Thu, 8 Nov 2012 17:19:05 +0000]
Bug 7500 [Lists follow-up] Use CSS Sprites for faster page loading

I just noticed there were a couple of instances where the lists
page referred to an image which was removed in a previous patch
for Bug 7500. This patch corrects it.

To test, edit a list in the OPAC. The breadcrumbs menu should
have no broken images.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_6428' into 3.12-master
Jared Camins-Esakov [Tue, 13 Nov 2012 14:48:16 +0000]
Merge branch 'bug_6428' into 3.12-master

11 years agoBug 6428 follow-up: Increment version number
Jared Camins-Esakov [Tue, 13 Nov 2012 14:45:19 +0000]
Bug 6428 follow-up: Increment version number

Database update for bug 6428 (follow-up) has been given version 3.09.00.065

11 years agoBug 6428 [Follow-up] refered column 'items.coded_location_qualifier' does not exist
Nuño López Ansótegui [Mon, 12 Nov 2012 08:36:35 +0000]
Bug 6428 [Follow-up] refered column 'items.coded_location_qualifier' does not exist

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

11 years agoMerge branch 'bug_9039' into 3.12-master
Jared Camins-Esakov [Tue, 13 Nov 2012 01:06:31 +0000]
Merge branch 'bug_9039' into 3.12-master

11 years agoBug 9039 - Tests in the basic test suite should only test code based on required...
Chris Nighswonger [Thu, 8 Nov 2012 21:14:52 +0000]
Bug 9039 - Tests in the basic test suite should only test code based on required dependencies/modules

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_9050' into 3.12-master
Jared Camins-Esakov [Mon, 12 Nov 2012 23:54:24 +0000]
Merge branch 'bug_9050' into 3.12-master

11 years agoBug 9050: Use safer adelete when deleting records from Zebra index
Jared Camins-Esakov [Sat, 10 Nov 2012 13:40:19 +0000]
Bug 9050: Use safer adelete when deleting records from Zebra index

Previously we used the "delete" command in zebraidx, which fails when
you try to delete a record that doesn't exist in the index. By changing
to the "adelete" command, we can reduce the likelihood of a failed
delete causing ghost records. A symptom of this problem is the warning
message occasionally encountered when indexing from the zebraqueue,
"[warn] cannot delete record above (seems new)."

To test:
1) Add a recordDelete action for a record that does not exist to
   zebraqueue in MySQL:
   INSERT INTO zebraqueue (biblio_auth_number, operation, server) \
       VALUES (999999999, 'recordDelete', 'biblioserver');
2) Run `rebuild_zebra.pl -b -z -v [-x]`.
3) Note that you do not get the message "[warn] cannot delete record
   above (seems new)".

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8945' into 3.12-master
Jared Camins-Esakov [Mon, 12 Nov 2012 23:49:43 +0000]
Merge branch 'bug_8945' into 3.12-master

11 years agoBug 8945: Add missing acq help file
Nicole C. Engard [Fri, 9 Nov 2012 15:48:16 +0000]
Bug 8945: Add missing acq help file

This adds the missing order from staged file help doc
to Koha.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

11 years agoMerge branch 'bug_8892' into 3.12-master
Jared Camins-Esakov [Mon, 12 Nov 2012 23:44:59 +0000]
Merge branch 'bug_8892' into 3.12-master