Commit Graph

17470 Commits

Author SHA1 Message Date
Owen Leonard 79eafcd16a Bug 8163: Click to populate XSLT preferences with "default" or empty values
This patch adds markup and JavaScript to the system preferences
interface so that the user can click "default" or "empty" to populate
an XSLT-related pref with those vaules.

To test, open system preferences for the OPAC or staff client. In
the description for an XSLT-related preference click the "default"
link to populate the field with "default." Click the "leave empty"
link to empty the field.

Revised according to Julian Maurice's suggestion for a more
generic, flexible way to implement it.

Signed-off-by: Melia Meggs <melia@test.bywatersolutions.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-11-26 14:10:26 +13:00
Jonathan Druart 3b3048d1fa Bug 8758: Remove useless code in circ/returns.pl
Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Before applying the patch I removed the [% IF %] from
around the markup which is removed by this patch. A table
of title and patron information appeared which I don't
remember ever seeing before. This tells me it's really
unused.

After applying the patch I performed some check-ins on both
checked out items and items which were on hold. All operations
completed normally.
Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-11-26 14:02:04 +13:00
Owen Leonard c443b49768 Bug 9008 [Follow-up] Warn if librarian logged-in with mysql/admin account
- Correcting typo
- Adding markup tweaks
- Adjusting the wording of the warning

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-11-26 13:35:38 +13:00
Paul Poulain 1eb42ef167 Bug 9008: warn if user is logged-in with admin account
Test plan:
* log-in staff interface with admin (mysql) account => there's a large warning on the homepage
* log-in with another account => nothing displayed

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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
2012-11-26 13:35:18 +13:00
Paul Poulain 5d92ab39a6 Adding 3.10 release notes 2012-11-23 16:27:57 +01:00
Paul Poulain e261ec301d 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
2012-11-23 15:51:07 +01:00
Paul Poulain f41cd9e9a7 Merge remote-tracking branch 'tamil/3.10.0-translate' into 3.10.xb 2012-11-23 15:50:26 +01:00
Paul Poulain 4fd58d8e9d Bug 9018 Italian translation of ccsr.po 2012-11-23 15:49:56 +01:00
Paul Poulain aa4899c97f 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)
2012-11-23 15:49:48 +01:00
Paul Poulain d9cd1d9368 Merge remote-tracking branch 'origin/new/bug_9122' into 3.10.xb 2012-11-23 15:41:35 +01:00
Paul Poulain ab159bd8a2 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>
2012-11-23 09:09:53 -05:00
Frédéric Demians 0bf8e93da8 3.10.0 Translation Update 2012-11-23 12:46:19 +01:00
Paul Poulain f0da77b872 Merge remote-tracking branch 'origin/new/bug_9078' into 3.10.x 2012-11-22 16:42:47 +01:00
Paul Poulain f5dbb25383 Merge remote-tracking branch 'origin/new/bug_8800' into 3.10.x 2012-11-22 16:41:35 +01:00
Paul Poulain 28ab5f9597 Merge remote-tracking branch 'origin/new/bug_9064' into 3.10.x 2012-11-22 16:41:09 +01:00
Paul Poulain 07d440ca51 Merge remote-tracking branch 'origin/new/bug_8954' into 3.10.x 2012-11-22 16:40:50 +01:00
Paul Poulain 348030267c Merge remote-tracking branch 'origin/new/bug_8844' into 3.10.x 2012-11-22 16:39:22 +01:00
Paul Poulain e9df880667 Merge remote-tracking branch 'origin/new/bug_9024' into 3.10.x 2012-11-22 16:38:43 +01:00
Paul Poulain 5ca8a9e768 Merge remote-tracking branch 'origin/new/bug_9017' into 3.10.x 2012-11-22 16:38:28 +01:00
Paul Poulain 81a512073d Merge remote-tracking branch 'origin/new/bug_9070' into 3.10.x 2012-11-22 16:34:17 +01:00
Tomas Cohen Arazi afc860d66b 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>
2012-11-22 09:27:46 -05:00
Tomas Cohen Arazi 8615996749 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>
2012-11-22 09:27:21 -05:00
Jared Camins-Esakov f7fabc661c Merge branch 'bug_8800' into 3.12-master 2012-11-22 09:20:07 -05:00
Tomas Cohen Arazi 7b18e2146c 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>
2012-11-22 09:11:19 -05:00
Jared Camins-Esakov 64b9bc74bf Bug 9064: Increment version number
Database update for bug 9064 has been given version 3.09.00.067
2012-11-22 09:04:05 -05:00
Paul Poulain b5474b7f95 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>
2012-11-22 09:01:30 -05:00
Jared Camins-Esakov be19f11e97 Merge branch 'bug_8954' into 3.12-master 2012-11-20 14:40:15 -05:00
Mathieu Saby 8718629c5c 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.
2012-11-20 14:39:56 -05:00
Jared Camins-Esakov c11b8c144d Merge branch 'bug_8844' into 3.12-master 2012-11-20 14:24:46 -05:00
Jared Camins-Esakov c085b9eb91 Merge branch 'bug_9024' into 3.12-master 2012-11-20 14:14:15 -05:00
Mirko Tietgen f5703f8bc7 Bug 9024: Fix typo
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-11-20 14:14:09 -05:00
Katrin Fischer a0819d9baa 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>
2012-11-20 14:14:09 -05:00
Katrin Fischer 27e2f67898 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>
2012-11-20 14:13:46 -05:00
Jared Camins-Esakov 86dfc69e8e Merge branch 'bug_9017' into 3.12-master 2012-11-20 14:10:59 -05:00
Marc Veron abf72944dd 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>
2012-11-20 14:10:19 -05:00
Jared Camins-Esakov af02e22ce5 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>
2012-11-20 14:09:02 -05:00
Paul Poulain d63150f7e3 Merge remote-tracking branch 'origin/new/bug_8971' into 3.10.x 2012-11-20 16:59:03 +01:00
Paul Poulain da8ffabf34 Merge remote-tracking branch 'origin/new/bug_9023' into 3.10.x 2012-11-20 16:58:48 +01:00
Paul Poulain 21b486a629 Merge remote-tracking branch 'origin/new/bug_9020' into 3.10.x 2012-11-20 16:45:38 +01:00
Paul Poulain 78f2d1ea3f Merge remote-tracking branch 'origin/new/bug_8975' into 3.10.x 2012-11-20 16:45:09 +01:00
Paul Poulain e49206fbbd Merge remote-tracking branch 'origin/new/bug_7932' into 3.10.x 2012-11-20 16:29:04 +01:00
Paul Poulain bb40553c0d Merge remote-tracking branch 'origin/new/bug_7368' into 3.10.x 2012-11-20 16:28:13 +01:00
Paul Poulain 1c843e94e1 Merge remote-tracking branch 'origin/new/bug_8997' into 3.10.x 2012-11-20 16:27:48 +01:00
Paul Poulain 3d7d041295 Merge remote-tracking branch 'origin/new/bug_8880' into 3.10.x 2012-11-20 16:27:30 +01:00
Paul Poulain bca7a6dcd5 Merge remote-tracking branch 'origin/new/bug_8750' into 3.10.x 2012-11-20 16:26:38 +01:00
Paul Poulain da8f95113f Merge remote-tracking branch 'origin/new/bug_9058' into 3.10.x 2012-11-20 16:26:04 +01:00
Paul Poulain ce31c74b5c Merge remote-tracking branch 'origin/new/bug_9107' into 3.10.x 2012-11-20 16:24:43 +01:00
Paul Poulain 4ada0a41a2 Merge remote-tracking branch 'origin/new/bug_9046' into 3.10.x 2012-11-20 16:24:12 +01:00
Paul Poulain 7433ac41ea Merge remote-tracking branch 'origin/new/bug_9085' into 3.10.x 2012-11-20 16:23:24 +01:00
Paul Poulain 6667ea9e2d Merge remote-tracking branch 'origin/new/bug_9066' into 3.10.x 2012-11-20 16:22:49 +01:00