Commit Graph

14268 Commits

Author SHA1 Message Date
Robin Sheat 89538c1943 Bug 6521 - allow blank cardnumbers to not trigger "already in use"
Now a blank cardnumber will get stored as a null in the database, which
is a value that allows duplicates. As such, if cardnumbers aren't
mandatory, then you can actually save a user with it being blank.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 785af7310d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-27 07:32:01 -04:00
Ian Walls d1af75ae4a Bug 6525: hold filled emails not going out
When the message name was updated from "Hold Filled" to "Hold_Filled" for T::T compatibility,
the line in _koha_notify_reserve that looked up the letter code by the message name no longer
matched, so none of the messages were sent.  This patch just replaces the space with an underscore
to get the names aligned properly.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 26965cf1df)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-27 07:31:40 -04:00
Frédérick Capovilla 8809f35c46 Bug 6453 Corrects the barcode comparisons in inventory.pl
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 59c42cd7f3)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-27 07:31:13 -04:00
Ian Walls 651aadc014 Bug 6497: MARC URLs not showing up in details pages under normal view
Part one:  followup to the original patch.  The variable name for the URL itself was wrong, so despite
getting the link to show up, the href was the catalog page itself, NOT the 856$u.  Updating "MARCurl.MARCurl"
to "MARCurl.MARCURL" fixes this issue.

To test:  go to the OPAC, and see that the URL in the link is the same as the URL in the MARC

Part two:  this problem is present on the staff side, as well.  This patch implements both parts of the fix
(renaming "MARCurlS" to "MARCURLS" and "MARCurl.MARCurl" to "MARCurl.MARCURL")

To test:  go to the staff client, and check that a)URLs show up and b)they link to the URL in the MARC record

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 59ac64db97)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:06:01 -04:00
Chris Cormack cf7a961c0e Bug 6518 : Fixing XSS issues on opac
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 126d6247b2)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:05:49 -04:00
Chris Cormack 4b147dc0e3 Bug 6350 : Updating history
(cherry picked from commit 99a7916b11)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:05:30 -04:00
Jeremy Crabtree 6ececf96cd Bug 5094 auth_by_bind authentication can fail even if given a correct password and userid
When using

<replicate>0</replicate> <!-- add new users from LDAP to Koha database -->
<update>0</update> <!-- update existing users in Koha database ->
<auth_by_bind>1</auth_by_bind> <!-- set to 1 to authenticate by
binding instead of password comparison, e.g., to use Active Directory -->

Auth_with_ldap attempts to lookup the userid in the LDAP directory to
fill $userldapentry despite it being unneeded in this case.  The information
retrieved will be thrown away, thus there is no need to retrieve it.
This can cause authentication to fail overall even if the initial bind with the
user's credentials succeeded

Signed-off-by: Joe Atzberger <ohiocore@gmail.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 7bb178e30b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:05:16 -04:00
Ian Walls 2bab0aa8ac Bug 6512: time missing from item circulation history
Re-enables the display of the seentime in circ/bookcount.tt; a DEFAULT was set, but
the value was never actually called into the template.

This patch also moves the time to the right side of the date, and removes the ??:?? default,
because otherwise, it's just silly

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit fbfb68a444)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:04:52 -04:00
Dobrica Pavlinusic 7e052ff23b Bug 4993 checkpw_ldap - do bind just once
When using auth_by_bind, search was always done as anonymous user.
This is a problem if we want to fetch LDAP values which have ACL
permissions only for users.

This change moves bind from search_method back into checkpw_ldap,
making code cleaner and easier to understand

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 322a5ef481)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:04:41 -04:00
Chris Cormack f672ea58dc Bug 5714 follow up removing the debugging message
(cherry picked from commit abdd5e8ced)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:04:30 -04:00
Frédéric Demians f7f38ee0ba Bug 6050 Followup, edit a last function call
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3b8f1318e0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:04:16 -04:00
Colin Campbell 069dff58e8 Bug 6050 Make calls to GetItemsInfo consistent
Do not misleadingly document or pass an unused second parameter
makes all calls use the single parameter call as the C4
routines already did

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 2ab00242d0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-19 16:03:48 -04:00
Ian Walls 4d5b3367e5 Bug 6497: MARC URLs not showing up in OPAC detail page with XSLT off
Renames T:T variable to match what's exported from opac-detail.pl.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit b5dcd096bf)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 21:07:10 -04:00
Chris Nighswonger af9b446aff Updating Version Number to 3.04.01.001 2011-06-13 21:06:14 -04:00
Chris Nighswonger 554075bc4e 5860 Fixing stocknumber index
Fixing code for 3.3.0.42 update.
Adding code at end of update script if install past that point already.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a3717c1fe9)

Conflicts:

	installer/data/mysql/updatedatabase.pl

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 21:05:26 -04:00
Frédérick Capovilla 6b05210f6b Bug 5684 : Remove all items fields from a Z39.50 record imported for acquisition.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f6486e6390)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 21:01:39 -04:00
Katrin Fischer f826e385b1 Bug 5653: Follow-up, correction to nb-NO sample creator data
Corrects callnumber to itemcallnumber in Norwegian sample data.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ab60ba41ce)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 21:00:50 -04:00
Galen Charlton ee02c805fc bug 5653: use itemcallnumber in bib label layouts
The sample bib label layouts and the hard-coded default
format_string for new layouts used 'callnumber' when they
should have used 'itemcallnumber', preventing call numbers
from being printed on spine labels that use the system-supplied
layouts.  Besides correcting the sample data, this patch
now also enshrines 'callnumber' as an alias for 'itemcallnumber'.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
After applying patch it works for new and old layouts (itemcallnumber and callnumber).

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit d2f49e1976)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:59:37 -04:00
Fridolyn SOMERS f6b7775a51 BUG4319 waiting items cannot be reserved
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 98f2780227)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:58:52 -04:00
Janusz Kaczmarek 06786915ee Bug 6353: Erroneous prefixes before the singleBranchMode preference removed
Patch resent due to errors in formating in previous e-mail

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Checked:
- library facet
- library limit on advanced search
- library shown in item level hold table

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3cf27546c9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:58:38 -04:00
Frédérick Capovilla c1f561e27c Bug 6355: Correct GetLateOrders so it ignores cancelled orders
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

Testing plan copied from bug:
- Create a new basket for a bookseller
- Create two new order in this basket. The orders must have a price or else
they won't be shown in the "Late orders" report.
- Delete one of the two orders.
- Close the basket
- Check for late orders and use "0 days ago" as a filter date.
- The deleted item appears in the report.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ecda6f7305)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:58:25 -04:00
Janusz Kaczmarek c5670b5a5d Bug 6357 : Displaying the unavailability of items corrected
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ead90e1179)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:58:14 -04:00
Frédérick Capovilla 701c1d4c7d Bug 6363 : Make the "Item Location" selectbox appears correctly in inventory.pl
The "Item Location" selectbox didn't appear when the only available MARC
framework was the default framework.

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 2bdd8ebd1e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:58:02 -04:00
Owen Leonard 7dc903a217 Fix for Bug 6375, Markup and style corrections for overdue report
[2011.05.21] F. Demians - I confirm the bug and solution

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f7d2379764)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:57:50 -04:00
Owen Leonard fd77f4ab1f Fix for Bug 6377 - fines should be red on patron search
Adding classes for credit (green) and debit (red)

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a17e971250)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:57:36 -04:00
Fridolyn SOMERS 9397f93225 BUG6389 Administration menu like Tools menu
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 6443fae16d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:57:23 -04:00
Owen Leonard 33f2b99d2e Fix for Bug 6402, Lists sorted by year appear to be empty
If you create a list, populate it with titles, and then change the sort to
"year" it will appear as if your list is empty. The SQL in VirtualShelves.pm's
GetShelfContents tries to accept "year" as a sort by but 'year' is not a valid
column name.

The SQL pulls biblioitems.publicationyear. Changing this to
'biblioitems.publicationyear as year,'

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a13194f2cd)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:57:11 -04:00
Galen Charlton de1c83f8bb bug 6409: fix pagination of SQL report output when parameters are used
Fixes bug where paging through output of an SQL report that includes
one or more parameters fails by asking you for the parameter values
and again and sending you back to the first page of results.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 577ce72e91)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:56:58 -04:00
Srdjan Janković 3423d19d99 bug_6433: exception handling
Signed-off-by: Magnus Enger <magnus@enger.priv.no>
(cherry picked from commit 5829cef6d8)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:56:45 -04:00
Fridolyn SOMERS dfece27c8e BUG 6388 Broken pager images in branch_transfer_limits.tt
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 529842ab6c)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:56:14 -04:00
Magnus Enger 669f73bc08 Bug 6459 : Needless call to C4::Context->dbh in C4::Templates::themelanguage()
As far as I can tell, $dbh is never used again in the scope in which it is
created. This patch simply removes the line.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a54716e50d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:56:02 -04:00
Janusz Kaczmarek b76bb054f0 Bug 6462 - Authority type is not displayed in OPAC
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 1b5805e336)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:55:48 -04:00
Janusz Kaczmarek fc474e09d5 Bug 6463 - Authorities browsing error when using auth. plugins
[2011.06.05] I confirm the solution. On my test UNIMARC installation, I haven't
an error 500 but I have a wrong result pages navigation bar which doesn't limit
search result on the selected authority type.

Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 86096350a9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:55:30 -04:00
Owen Leonard ac0f1e734f Fix for Bug 6487 - No error explanation if patron expiration date is missing
The script tries to parse the patron expiration date without
checking that it is a valid date. If expiration date is empty
it doesn't get caught along with past expiration dates.

I wonder if this line was supposed to catch this problem:

Line 233: if ( $warning_year*$warning_month*$warning_day==0

This patch adds "!$borrower->{'dateexpiry'} ||" to that line.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 84a8c9a522)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:55:18 -04:00
Colin Campbell 431d672593 Remove a typo from serials-edit template
Rogue 'i' removed from template would show up in display

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 716442708b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:53:16 -04:00
Elliott Davis 2b118de375 Bug 6491 Added: id in opac-privacy around the privacy policy div container Testing: An ID should appear in the container for the privacy rules saying userprivacy
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit bc8984f5d6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:53:03 -04:00
Frédéric Demians 92a68bf833 Bug 6464 Check inconsistent placeholders in translated strings
Display a warning for strings that don't have the same count of %s placeholders
that the English original strings. Don't warn for not translated string and
'fuzzy' string because those strings are not installed, and this is the
translator responsability to examine them.

Based on Frère Sébastien Marie work.

Signed-off-by: Frère Sébastien Marie <semarie-koha@latrappe.fr>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 2281350b6e)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:52:51 -04:00
Chris Cormack 4f9077c5ac Updating upgrade information to note the fact language templates need
to be rebuilt
(cherry picked from commit e071651533)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:52:35 -04:00
Ricardo Dias Marques acff05dd80 Updating INSTALL.opensuse file with the changes by Freek de Kruijf
Freek de Kruijf (from @opensuse.org) has adapted the installation
guide (that I - Ricardo Dias Marques - had created) about installing
"Koha 3.0.0 in openSUSE 11.0" and he kindly updated it with the
information about installing the same version of Koha (3.0.0),
but on a more recent version of openSUSE (openSUSE 11.3 instead
of openSUSE 11.0).

He also has put his version on the Koha Wiki:

Koha 3.0.0 on openSUSE 11.3
http://wiki.koha-community.org/wiki/Koha_3.0.0_on_openSUSE_11.3

This commit updates the INSTALL.opensuse to have the content of
that wiki page (last modified on 16-Oct-2010), changing only
things that are related to converting the format from a wiki
page to text format (replacing some HTML tags by some markers
and replacing screenshots by their descriptions).

This commit may be applied to the "master" branch and it can
also be "cherry-picked" to the "3.2.x" branch.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 24d3e5b257)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:52:22 -04:00
Katrin Fischer 60c2a242f5 Bug 6472: HidePatronName on detail page broken
TT issue

To test:
- Check out an item to a patron
- Go to detail page of the title in intranet
- Normal view will show cardnumber when HidePatronName is activated
- Normal view will show patron's name, when HidePatronName is off

Hold page was not broken.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 4cf1046816)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:52:06 -04:00
Fridolyn SOMERS fc607b88cd BUG6067 When Add Duplicate changing framework would loose data
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit c78a926046)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:51:53 -04:00
Jared Camins-Esakov 4384d61f3a Bug 5868 follow-up: missing subfields in subject index
Index 658 (curriculum) as subject, and add some missing subfields to the subject
index.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit e594e8c8b9)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:51:39 -04:00
Nicole C. Engard 3c074eab97 Bug 5268: Change all occurances of 'debar' to 'restrict'
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 54d4277125)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:49:15 -04:00
Owen Leonard 786482019e Fix for Bug 6446, batch item deletion interface problems
Scoping error in T:T variable caused incorrect column display
in batch delete and batch edit interfaces.
After applying this patch header cells should align correctly
with content and checkbox column should appear.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 529b6ab9fe)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:48:58 -04:00
Frédérick Capovilla 59df93142b Bug 6444 Corrects encoding problems in subscription-add.pl
When searching for a vendor, if the vendor has accented character in its
name, the vendor's name that's added in the form of subscription-add.pl
is encoded incorrectly.

[2011.06.01] F. Demians. Port it to 3.4

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ddcf63d29b)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:48:42 -04:00
Chris Nighswonger f024b7f5a7 Bug 2246 - (Partial) Label printing doesn't work with Unicode characters
This patch provides a very partial fix for this bug in that it reduces
the number of pdf generation failures due to a "wide character" error.
It does not ensure that all unicode characters will print correctly as
this is dependent upon many other issues mentioned in this bug and
various posts to the developer list.

What this code does is test to see if the pdf stream is utf8 encoded
and if it is, explicitly declares it to be so. Unicode chars will still
print incorrectly, but the pdf will be created and should open properly
in whatever pdf reader.

You may test this by adding any character with a diacritical to the
title of a bib and then attempting to generate a label pdf with the
title of that bib. Before the patch is applied the resulting pdf
should contain an error mentioning a wide character issue. After the
patch is applied, the pdf should be valid.

No documentation changes are necessary as a result of this patch.

This patch should be backported to 3.2.x.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 939d0ab639)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:46:15 -04:00
Owen Leonard f06005ee1d Fix for Bug 6337 - Variable scope errors in staff client cart print view
Also removing "Return to cart" link from the print view,
redundant now that the print view prints and redirects
automatically.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ded47a7793)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:45:58 -04:00
Nicole C. Engard 4ec7f0db98 bug 6442 change opacnav wording so it's more accurate
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit ee05848331)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:45:45 -04:00
ruth@bywatersolutions.com 6806b03119 Bug 6397: fix variable name in template that mis-aligns table
This patch repairs the detail table when enumeration and chronology is present.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit bf503688a0)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:45:30 -04:00
Owen Leonard 5f6391882d Fix for Bug 5714 - Unescaped ampersands in OPAC facets
In the OPAC the "query_cgi" variable passed to the template
outputs a string like this:

idx=kw&q=thing

The ampersand is unescaped. Adding an "|html" filter to
the variable. Also correcting some TT markup which
added a new validation error (an unopened <div>).

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit a53ae578b4)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
2011-06-13 20:45:17 -04:00