Commit Graph

580 Commits

Author SHA1 Message Date
Henri-Damien LAURENT 758bfba1ee Adding XSLTreultsFilename and XSLTDetailFilename
Thos two system preferences enables the librarian to choose an xslt different from the one provided in Koha
2010-05-15 01:31:54 +02:00
Nahuel ANGELINETTI cd14fd421c (bug #4491) fix weird code in search scripts
This change some code a bit strange, that generate strange effetcs.
Now we use $cgi->param to get the values.
2010-05-14 09:48:00 +02:00
Nahuel ANGELINETTI b27c5296b7 (bug #4195) fix OAI repository
this fix the OAI repository, to don't return resumptionToken if there is no more record.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2010-03-08 23:07:29 +01:00
Matthias Meusburger 59f8b71a62 MT 2116: Addons to the CSV export
Fix encoding selection
2010-03-08 23:07:27 +01:00
Sébastien Hinderer 12c60fac6a Bugfix in errors/*.pl and opac/errors/*.pl
The scripts did not define the status printed on the first line of
HTTP headers correctly: they were sending 200 OK,
which was confusing for browsers.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2010-02-15 16:43:48 +01:00
Henri-Damien LAURENT a9015abe77 Adding RIS and bibtex export
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-02-10 14:01:30 +01:00
Matthias Meusburger 76655b5b94 MT2116: Addons to the CSV export
Adds the ability to customize CSV exports through the use of a YAML file.

The following customizations are available :
  - Preprocessing
  - Postprocessing
  - Field-by-field processing

The YAML field should be stored in the tools/csv-profiles/ directory and
named after the id of the CSV profile you want to customize.
An example file is provided in that directory.
2010-02-10 14:01:29 +01:00
Matthias Meusburger 523735ef6b MT2116 : Addons to the CSV Export
Add encoding selection
Add authorised values handling
2010-02-10 14:01:29 +01:00
Henri-Damien LAURENT e431b4b077 MT 1587 : CSV export for cart and shelves, with the ability to define different export profiles
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2010-02-10 14:01:28 +01:00
Nahuel ANGELINETTI f3e620372f (bug #4075) add use of getrecordvalue in opac-detail 2010-02-10 14:01:28 +01:00
Nahuel ANGELINETTI 8f0f18d337 [3.0.x] (bug #4055) backport canbook/itembereserved
This backport the functions from 3.2/3.4 to the 3.0 API, because we need to factorize the code.
2010-01-27 14:14:48 +01:00
Henri-Damien LAURENT f37649b732 (Bug 4049) Searching itemtypes returning noise
Fix the problem of searching on partial itemtypes strings
for instance, itemtype="ARTICLE DE PERIODIQUE", itemtype="PERIODIQUE"
searching on itemtype="PERIODIQUE" would also get "ARTICLE DE PERIODIQUE"
2010-01-19 22:08:18 +01:00
Matthias Meusburger 7ffec5b437 MT2631 : adds sysprefs for MARC or ISBD display in OPAC 2010-01-19 22:08:17 +01:00
Henri-Damien LAURENT 3057a7afb9 (bug #3042) Changing XSLT sysprefs to take filename
This change system preferences for XSLT management
bumps kohaversion to 3.0.6.03
If you are using Koha in a non devel mode AND use XSLT, then you HAVE TO adapt the system preference to point to your htdocs

WARNINGS :
    - tested with UNIMARC XSL
    - donot test the presence of the file, if file absent, then BOOM
    - XSL CANNOT be different for intranet and OPAC for result lists.
2010-01-11 13:33:13 +01:00
Nahuel ANGELINETTI 230e51eb20 (bug #3897) hold policies and circcontrol
This patch fix hold policies way to do, make it using circcontrol syspref to know the branch the rule must be based.
2009-12-17 09:14:56 +01:00
Paul Poulain 79b12445f1 MT2432 : Do not show "place hold" link when there's no items 2009-12-10 17:56:57 +01:00
Henri-Damien LAURENT 22d93d10a8 Revert "MT 2298 : Fix hidelostitems"
This reverts commit 481ccf6872.
2009-12-07 11:20:56 +01:00
Henri-Damien LAURENT 2279380b54 Revert "2298 2299 : Search.pm and opac-search.pl"
This reverts commit e1b6555032.
2009-12-07 11:20:56 +01:00
Henri-Damien LAURENT da2eaf0a62 Revert "(MT #2298) Rewrite "only available items""
This reverts commit dfa44a90d4.
2009-12-07 11:20:56 +01:00
Nahuel ANGELINETTI 0d85780201 (bug #3819) variable name typo
This patch fix variable name in opac, that made koha fatal error.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
2009-12-03 22:00:10 +01:00
Nahuel ANGELINETTI 32e13e325a (bug #3819) still fixing holds policies
This patch backports more code from 3.2 to make hold policies working.
2009-12-03 22:00:10 +01:00
Frédéric Demians 9c9de92b0f Bug 3784: Don't fail on opac-detail.pl with invalid biblionumber 2009-12-03 22:00:09 +01:00
Nahuel ANGELINETTI fede858a92 (MT #2298) Rewrite "only available items"
This change the way to show only available items. Now we don't use anymore zebra that delete records with one non-available item, but we check only for non-available items in perl code.
2009-11-23 10:32:43 +01:00
Henri-Damien LAURENT 6a0d798446 2298 2299 : Search.pm and opac-search.pl
Removing filter available and hidelostitems at Biblio level
2009-11-12 22:37:50 +01:00
Nahuel ANGELINETTI edfc190edb MT 2298 : Fix hidelostitems
This patch fixes the opac search, and C4::Search to take care about hidelostitems for items, and not records.
2009-11-12 22:37:50 +01:00
Nahuel ANGELINETTI ff39a7a141 (bug #3772) show place hold button in isbd view
This fix the isbd view to show the "place hold" button.
2009-11-09 18:08:30 +01:00
Nahuel ANGELINETTI 5222f73de0 [followup] (bug #3710) all itemtypes if none selected 2009-11-04 15:03:32 +01:00
Nahuel ANGELINETTI 96da408353 (recent acquisitions) 2009-11-04 15:03:32 +01:00
Henri-Damien LAURENT e9a02522d8 Fix 3741 : Amazon cover image not displayed
Opac detail page would not show amazon cover image any longer
2009-11-02 12:46:11 +01:00
Nahuel ANGELINETTI 65fd1cf419 (bug #3726) fix ISBD url translation 2009-10-22 17:03:51 +02:00
Nahuel ANGELINETTI a3e0c11fe4 (bug #3655) fix news language detection
This patch improve the language detection for news in opac. If the user have no defined language in his browser.
2009-09-25 17:30:54 +02:00
Nahuel ANGELINETTI f87b755228 (bug #3651) sending baskets and shelves
this patch restrict the send of baskets and shelves to authenticated users only, and show their surname/firstname in the e-mail, so the receiver will know who sent the list.
2009-09-21 17:04:25 +02:00
Henri-Damien LAURENT 60549d6584 Removing call to a 3.2 function 2009-09-21 16:31:43 +02:00
Garry Collum fb25629d1c Bug 3602: Fixes a log error for opac-search.pl if expanded_options is not defined.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2009-09-19 23:47:09 +02:00
Nahuel ANGELINETTI 09793f2638 (bug #3575) fix opac-detail.pl
This delete an useless "use C4::Serials"(there are 2).
And fix the opac-detail template, to fix a variable conflict for serials.
2009-09-19 23:47:07 +02:00
Henri-Damien LAURENT b29a7278c3 Markup corrections and opac-IBDdetail.pl fixing 2009-09-17 15:24:54 +02:00
Henri-Damien LAURENT fd4ed72988 Bug Fixing Amazon.pm would not compile
missing call of C4::External::Amazon in opac-ISBDdetail.pl
@aws was not defined
2009-09-16 23:22:00 +02:00
Nahuel ANGELINETTI 6190a20d09 (bug #3459) fix opac-topissue to take care of ccode
This bugfix, add a conditionnal sql request, that get the "ccode" document type if AdvancedSearchTypes is positionned to ccode.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-16 23:19:45 +02:00
Garry Collum f26bf903de Bug 2505: Enabled warnings in opac-topissues.pl
Fixed resulting warnings and fixed a small bug with the timeLimit drop-down box.  It would not retain its value on subsequent pages if 'no Limit' was selected as an option.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
2009-09-16 23:19:44 +02:00
Chris Cormack 78f813b11c Fixing merge error in opac-detail.pl 2009-09-16 23:19:43 +02:00
Kyle M Hall cce047707f Bugfix 2339 - Place hold button display with AllowOnShelfHolds OFF
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:42 +02:00
Garry Collum 0a679ab023 Bug 3428: Alphabetizes the collection codes in the Advanced Search.
If the advancedSearchTypes = CCODE, the code descriptions are not alphabetized, as opposed to itemtypes, which are alphabetized.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:41 +02:00
Joe Atzberger 6a02281f7d Bug 2539. Remove unintegrated "spsuggest" code from search scripts.
The intent of kohaspsuggest is very confused.  It wanted to simultaneously
log every search query, and get spelling suggestions from a totally different
database_host:db_user:db_password:database.  The implementation seems
never have really made it into 3.0, however, since the only trace of the
tables it wants to query are in misc/migration_tools/22_to_30/phrase_log.sql

The job misc/spellcheck_suggest/make_spellcheck_suggest.pl does not even
target the same remote DB as the syspref tells the search code to do.  Instead, it hits the
local DB and, not finding the tables that have no way of existing in a 3.0
install, it CREATES its own tables spontaneously, using MyISAM storage, no less.
This script should be drastically overhauled, or more likely just removed.

Other fixes:
Commented out unconditional warn!
Also reduced bizarre whitespace amounts in catalogue/search.pl and
fixed warning as recommended by perl -wc:
    Scalar value @newresults[0] better written as $newresults[0]

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:41 +02:00
Joe Atzberger 93d637d0e5 Cleanup opac-search.pl
Use GetBranchesLoop.  Use elsif.  Use $format w/ a fallback "" value.

More to come.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:41 +02:00
Jane Wagner cf7cc284e8 Revision to my earlier patch for displaying the user name on checked-out items
My earlier patch (using the new syspref OPACShowCheckoutName mistakenly
displayed the Koha borrower number instead of the patron barcode number
in the OPAC display; this revises the script/template to use barcode.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:39 +02:00
Garry Collum 2482b27d61 Bug 3317: Author displaying inconsistently or not at all. Revision to previous patch.
Revision to previous patch for bug 3317.  Removes the EXPR command from opac-basket.tmpl, which was polluting the apache logs.

NTS: Don't use EXPR.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:39 +02:00
Galen Charlton d1c1150e31 bug 3219: handle variation in Amazon responses
An Amazon ItemLookup response can sometimes have
more than one Item element, where the ones after
the first appear to be cross references to items
that have the same ISBN.  Changed parsing so that
those responses are no longer treated like pseudohashes.

This fixes the following crash:

[error] detail.pl: Pseudo-hashes are deprecated at /catalogue/detail.pl line
213., referer: /cgi-bin/koha/catalogue/detail.pl

Which may lead to a nasty:
[error] Out of memory!, referer: /cgi-bin/koha/catalogue/detail.pl

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:37 +02:00
Chris Cormack 82b3646e2e Fixing a bug that crept in with a cherry-pick 2009-09-16 23:19:36 +02:00
Galen Charlton dad23d185c quell warning if format parameter isn't passed to opac-search.pl
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:35 +02:00
Chris Cormack 17e6dc4b2d Whoops extra } crept in when fixing a merge conflict, removing it
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
2009-09-16 23:19:34 +02:00