contrib/Conifer.git
10 years agoMerge branch 'rel_2_7_mergery' into rel_2_7_mergery_tpac
Dan Scott [Sun, 11 Jan 2015 03:27:25 +0000 (22:27 -0500)]
Merge branch 'rel_2_7_mergery' into rel_2_7_mergery_tpac

10 years agoLP1406451: Prevent some catalogue pages from being indexed
Dan Scott [Sun, 11 Jan 2015 03:09:48 +0000 (22:09 -0500)]
LP1406451: Prevent some catalogue pages from being indexed

Tell search engines that they should not index search results
pages, call number browsing pages, and the like. We really
just want them to focus on records and the library pages.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7_mergery' into rel_2_7_mergery_tpac
Dan Scott [Sun, 11 Jan 2015 02:37:09 +0000 (21:37 -0500)]
Merge branch 'rel_2_7_mergery' into rel_2_7_mergery_tpac

10 years agoLP1406451 Set rel=canonical for record and library pages
Dan Scott [Wed, 31 Dec 2014 05:33:41 +0000 (00:33 -0500)]
LP1406451 Set rel=canonical for record and library pages

Search engines use the "<link rel=canonical>" convention to determine that, no
matter how many variations on a URL you might generate through the likes of
appending &query= parameters, etc, those URLs are all the same as the value of
the href attribute in the <link> element.

Start with a simple implementation that, first, provides a placeholder in the
TPAC base where any page-specific <meta> or <link> (or really, any other <head>
contents) should go; then denotes the current page URL (stripped of all query
params) as the canonical URL for record and library pages.

This should help prevent search engines from crawling endless variations of the
same page, lowering load on Evergreen servers and potentially improving the
ranking of the canonical URLs.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoLP1406025: Provide graceful human output for HTTP errors
Dan Scott [Sun, 28 Dec 2014 03:35:37 +0000 (22:35 -0500)]
LP1406025: Provide graceful human output for HTTP errors

For the expected HTTP errors of HTTP_GONE (record deleted)
and HTTP_NOT_FOUND (record never existed), return the HTML
pages that we used to return (red border warning that the
record was deleted, or just an empty template for
non-existing records) so that the user can at least try
another search. However, the HTTP status code gets set to
410 or 404 as expected so that machines can react
accordingly.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoLP#1031335 No-op the escape_email_header helper
Dan Scott [Wed, 7 Jan 2015 23:22:22 +0000 (18:22 -0500)]
LP#1031335 No-op the escape_email_header helper

As suggested by Mike Rylander, keep the escape_email_header helper
around to avoid breaking templates that already adopted it, but make it
a no-op as the SendEmail reactor now encodes the email headers of
interest by default.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoAdd and use a patron search that overrides opt-in invisibility
Dan Scott [Wed, 14 Sep 2011 20:02:14 +0000 (16:02 -0400)]
Add and use a patron search that overrides opt-in invisibility

Something like this is required for API calls that need to operate
against a number of libraries in a given instance that are using opt-in;
otherwise, attempts to search for users will fail and you may end up
creating near-duplicates etc.

The implementation adds an
open-ils.actor.search.patron.advanced.opt_in_override method to
open-ils.actor, which, if invoked, checks to see if the caller has the
OPT_IN_OVERRIDE permission. If so, then the crazy_search ignores the
normal opt-in limits and searches all pertinent users in the database.

As a global permission, OPT_IN_OVERRIDE is a blunt instrument. Others
might want to put together a more refined version that uses OU depths to
define boundaries.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm

Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm

10 years agoAdd and use a patron search that overrides opt-in invisibility
Dan Scott [Wed, 14 Sep 2011 20:02:14 +0000 (16:02 -0400)]
Add and use a patron search that overrides opt-in invisibility

Something like this is required for API calls that need to operate
against a number of libraries in a given instance that are using opt-in;
otherwise, attempts to search for users will fail and you may end up
creating near-duplicates etc.

The implementation adds an
open-ils.actor.search.patron.advanced.opt_in_override method to
open-ils.actor, which, if invoked, checks to see if the caller has the
OPT_IN_OVERRIDE permission. If so, then the crazy_search ignores the
normal opt-in limits and searches all pertinent users in the database.

As a global permission, OPT_IN_OVERRIDE is a blunt instrument. Others
might want to put together a more refined version that uses OU depths to
define boundaries.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm

Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm

10 years agoJust inherit the width for results table
Dan Scott [Wed, 7 Jan 2015 21:25:56 +0000 (16:25 -0500)]
Just inherit the width for results table

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoBetter use of screen real estate, methinks
Dan Scott [Wed, 7 Jan 2015 21:21:49 +0000 (16:21 -0500)]
Better use of screen real estate, methinks

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoRevert "Hide fake barcode electronic resources in Laurentian locations"
Dan Scott [Wed, 7 Jan 2015 21:02:53 +0000 (16:02 -0500)]
Revert "Hide fake barcode electronic resources in Laurentian locations"

This reverts commit d7930ddc97c0205cbeb368f73783579ec1796291.

Because we no longer have fake barcodes at Laurentian.

10 years agoTrim down Conifer results drastically
Dan Scott [Wed, 7 Jan 2015 20:37:05 +0000 (15:37 -0500)]
Trim down Conifer results drastically

Because who really cares about ISSN, ISBN, physical description,
etc on the search results page?

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoRevert "Prevent URIs when we have OpenURLs in search results"
Dan Scott [Mon, 5 Jan 2015 15:33:56 +0000 (10:33 -0500)]
Revert "Prevent URIs when we have OpenURLs in search results"

This reverts commit d99a89da9723afe8e9364c310dd551c113961f5a.

10 years agoHide fake barcode electronic resources in Laurentian locations
Dan Scott [Sun, 4 Jan 2015 21:11:37 +0000 (16:11 -0500)]
Hide fake barcode electronic resources in Laurentian locations

Because we have asset.uri for a reason.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoRemove "Bib Call Number" search from Conifer
Dan Scott [Sun, 4 Jan 2015 20:59:38 +0000 (15:59 -0500)]
Remove "Bib Call Number" search from Conifer

Because it's not really useful at all.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoLP1406013: Improve schema.org expression for electronic resources
Dan Scott [Sat, 27 Dec 2014 22:06:18 +0000 (17:06 -0500)]
LP1406013: Improve schema.org expression for electronic resources

Specify the URL from which an electronic resource is available as the
schema:url of the associated schema:Offer. Also, if we have descriptive
link text and/or a note about the electronic resource, mark it up with
schema:description.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoLP1405812: Relate contributors to the id.loc.gov relator vocab
Dan Scott [Fri, 26 Dec 2014 16:57:37 +0000 (11:57 -0500)]
LP1405812: Relate contributors to the id.loc.gov relator vocab

If we have relator codes (subfield 4), then we can specify the
nature of the contribution being played much more accurately
for machines than just schema:contributor by including the
relator code as a second value of the @property.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7_mergery' of git.evergreen-ils.org:contrib/Conifer into rel_2_7_...
Dan Scott [Fri, 26 Dec 2014 13:46:32 +0000 (08:46 -0500)]
Merge branch 'rel_2_7_mergery' of git.evergreen-ils.org:contrib/Conifer into rel_2_7_mergery_tpac

10 years agoMerge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery
Dan Scott [Fri, 26 Dec 2014 13:45:36 +0000 (08:45 -0500)]
Merge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery

10 years agoMore fr-CA translations for the TPAC
Dan Scott [Tue, 23 Dec 2014 21:02:46 +0000 (16:02 -0500)]
More fr-CA translations for the TPAC

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoLP#1319964 "Summaries & More" displays improperly in TPAC
Michael Peters [Mon, 8 Dec 2014 17:08:21 +0000 (12:08 -0500)]
LP#1319964 "Summaries & More" displays improperly in TPAC

Commit 14eb3d30 added HTML-escaping of OPAC extras display
labels, meaning that if an ampersand in such a label is
desired, it should be entered in the template just as an ampersand.

Signed-off-by: Michael Peters <mpeters@emeralddata.net>
[Amended original commit to tweak message and remove unecessary changes
 to .po files, which are rebuilt when a release is rolled.]

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
10 years agoMore translations; thanks Dahlal!
Dan Scott [Fri, 19 Dec 2014 19:34:31 +0000 (14:34 -0500)]
More translations; thanks Dahlal!

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'feature/tpac_osul_2_7' into rel_2_7_mergery_tpac
Dan Scott [Fri, 19 Dec 2014 17:05:23 +0000 (12:05 -0500)]
Merge branch 'feature/tpac_osul_2_7' into rel_2_7_mergery_tpac

10 years agoMerge branch 'rel_2_7_mergery_tpac' of git.evergreen-ils.org:contrib/Conifer into...
Dan Scott [Fri, 19 Dec 2014 17:03:36 +0000 (12:03 -0500)]
Merge branch 'rel_2_7_mergery_tpac' of git.evergreen-ils.org:contrib/Conifer into rel_2_7_mergery_tpac

10 years agoUpdate link to refworks.com
Dan Scott [Fri, 19 Dec 2014 17:03:01 +0000 (12:03 -0500)]
Update link to refworks.com

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoFix thinko in URI linking
Dan Scott [Thu, 18 Dec 2014 06:12:29 +0000 (01:12 -0500)]
Fix thinko in URI linking

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'feature/tpac_osul_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 17 Dec 2014 21:39:38 +0000 (16:39 -0500)]
Merge branch 'feature/tpac_osul_2_7' into rel_2_7_mergery_tpac

10 years agoDisable metarecords
Dan Scott [Wed, 17 Dec 2014 21:39:10 +0000 (16:39 -0500)]
Disable metarecords

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into feature/tpac_osul_2_7
Dan Scott [Wed, 17 Dec 2014 21:38:23 +0000 (16:38 -0500)]
Merge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into feature/tpac_osul_2_7

10 years agoAdd the ability to link out to sameAs entities
Dan Scott [Tue, 16 Dec 2014 04:29:35 +0000 (23:29 -0500)]
Add the ability to link out to sameAs entities

Look for standard identifiers with known URIs, such as
LCCNs, OCLC numbers, and URIs identified in 024 fields,
and add http://schema.org/sameAs properties to the record.
This helps us link out to the broader linked data world,
and should help those consuming our data to better
understand what resources we have to offer.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoForward-port 2.7.1-2.7.2 upgrade script
Ben Shum [Wed, 17 Dec 2014 21:04:33 +0000 (16:04 -0500)]
Forward-port 2.7.1-2.7.2 upgrade script

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_usudbury_2_7' into rel_2_7...
Dan Scott [Wed, 17 Dec 2014 21:04:10 +0000 (16:04 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_usudbury_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_uhearst_2_7' into rel_2_7_...
Dan Scott [Wed, 17 Dec 2014 21:04:02 +0000 (16:04 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_uhearst_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_sjcg_2_7' into rel_2_7_mer...
Dan Scott [Wed, 17 Dec 2014 21:03:54 +0000 (16:03 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_sjcg_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_osul_2_7' into rel_2_7_mer...
Dan Scott [Wed, 17 Dec 2014 21:03:29 +0000 (16:03 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_osul_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_nosm_2_7' into rel_2_7_mer...
Dan Scott [Wed, 17 Dec 2014 21:03:20 +0000 (16:03 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_nosm_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_huntington_2_7' into rel_2...
Dan Scott [Wed, 17 Dec 2014 21:03:04 +0000 (16:03 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_huntington_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_hsn_2_7' into rel_2_7_merg...
Dan Scott [Wed, 17 Dec 2014 21:02:55 +0000 (16:02 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_hsn_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_eresources_highlander_2_7...
Dan Scott [Wed, 17 Dec 2014 21:02:35 +0000 (16:02 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_eresources_highlander_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_conifer_2_7' into rel_2_7_...
Dan Scott [Wed, 17 Dec 2014 21:02:15 +0000 (16:02 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_conifer_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_boreal_2_7' into rel_2_7_m...
Dan Scott [Wed, 17 Dec 2014 21:02:02 +0000 (16:02 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_boreal_2_7' into rel_2_7_mergery_tpac

10 years agoMerge remote-tracking branch 'remotes/conifer/feature/tpac_algoma_2_7' into rel_2_7_m...
Dan Scott [Wed, 17 Dec 2014 21:01:07 +0000 (16:01 -0500)]
Merge remote-tracking branch 'remotes/conifer/feature/tpac_algoma_2_7' into rel_2_7_mergery_tpac

10 years agoDisable metarecords feature/tpac_sjcg_2_7
Dan Scott [Wed, 17 Dec 2014 20:56:43 +0000 (15:56 -0500)]
Disable metarecords

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoDisable metarecords
Dan Scott [Wed, 17 Dec 2014 20:55:44 +0000 (15:55 -0500)]
Disable metarecords

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoDisable metarecords; merge config.tt2 changes
Dan Scott [Wed, 17 Dec 2014 20:53:42 +0000 (15:53 -0500)]
Disable metarecords; merge config.tt2 changes

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge config.tt2 changes into Algoma skin feature/tpac_algoma_2_7
Dan Scott [Wed, 17 Dec 2014 20:42:12 +0000 (15:42 -0500)]
Merge config.tt2 changes into Algoma skin

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoDisable metarecords; enable ISO dates
Dan Scott [Wed, 17 Dec 2014 20:19:57 +0000 (15:19 -0500)]
Disable metarecords; enable ISO dates

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7_mergery_alt' of git.evergreen-ils.org:contrib/Conifer into...
Dan Scott [Wed, 17 Dec 2014 05:03:33 +0000 (00:03 -0500)]
Merge branch 'rel_2_7_mergery_alt' of git.evergreen-ils.org:contrib/Conifer into rel_2_7_mergery_tpac

10 years agoUpdate the Conifer 2.4-2.7 upgrade script
Dan Scott [Wed, 17 Dec 2014 04:15:37 +0000 (23:15 -0500)]
Update the Conifer 2.4-2.7 upgrade script

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery
Dan Scott [Wed, 17 Dec 2014 05:02:21 +0000 (00:02 -0500)]
Merge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/record/summary.tt2

10 years agoUpdate the Conifer 2.4-2.7 upgrade script
Dan Scott [Wed, 17 Dec 2014 04:15:37 +0000 (23:15 -0500)]
Update the Conifer 2.4-2.7 upgrade script

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery
Dan Scott [Wed, 17 Dec 2014 04:08:44 +0000 (23:08 -0500)]
Merge branch 'rel_2_7' of git.evergreen-ils.org:Evergreen into rel_2_7_mergery

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/templates/opac/parts/record/summary.tt2

10 years agoLP#1402905 Use stricter matching for UPC values
Dan Scott [Tue, 16 Dec 2014 04:23:49 +0000 (23:23 -0500)]
LP#1402905 Use stricter matching for UPC values

Per http://www.loc.gov/marc/bibliographic/bd024.html we
should be checking to see if either the ind1 is "1" or
if there's a subfield 2 with a value of "upc" before
assuming that any "Other standard identifier" 024 field
is a UPC value.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#921142: Bring back automatic padding of short fixed fields in the GUI MARC editor
Mike Rylander [Fri, 18 May 2012 12:30:08 +0000 (08:30 -0400)]
LP#921142: Bring back automatic padding of short fixed fields in the GUI MARC editor

Bring back automatic padding of short fixed fields in the GUI MARC
editor. Also, use onblur instead of oninput, so that we've already lost
focus and don't care if that happens again.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1394356: Stamping upgrade script for patron purge post code fix
Ben Shum [Tue, 16 Dec 2014 20:15:57 +0000 (15:15 -0500)]
LP#1394356: Stamping upgrade script for patron purge post code fix

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1394356 Patron purge circs retain post code
Bill Erickson [Fri, 28 Nov 2014 21:29:57 +0000 (16:29 -0500)]
LP#1394356 Patron purge circs retain post code

When purging a patron, clear the address data after circulation
anonymization to ensure the usr_post_code is retained.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1400376: Stamping upgrade script for fix to metabib.record_attr
Ben Shum [Tue, 16 Dec 2014 20:01:53 +0000 (15:01 -0500)]
LP#1400376: Stamping upgrade script for fix to metabib.record_attr

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1400376: Don't allow NULL attrs to polute an HSTORE as a key
Mike Rylander [Tue, 16 Dec 2014 01:32:51 +0000 (20:32 -0500)]
LP#1400376: Don't allow NULL attrs to polute an HSTORE as a key

That causes the HSTORE to blow up, which is bad for circs that
want to succeed.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1389403: Stamping upgrade script for normalizer detection to call number browse
Ben Shum [Tue, 16 Dec 2014 19:54:28 +0000 (14:54 -0500)]
LP#1389403: Stamping upgrade script for normalizer detection to call number browse

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1389403 Add normalizer detection to call number browse
Dan Wells [Fri, 4 Oct 2013 14:02:39 +0000 (10:02 -0400)]
LP#1389403 Add normalizer detection to call number browse

When finding the pivot for call number browse, we currently rely on
simple label matching (rather than normalized label matching), since
we do not know at the time of the search which normalizer we should
use.

Rather than blindly using the label, let's select the pivot in two
phases.  First, we will do what we do know, getting as close as
possible by label alone.  If we find an exact match, we are done (same
as the current code).  If we don't find an exact match, we take the
normalizer setting from the closest label match, normalize our input,
then search again.

This method *greatly* improves the overall accuracy of call number
searching whenever the call number being browsed for does not exist,
while causing no harm to accuracy when it does exist (since it will
either match the label or normalize to the same call number anyway).

Eventually, we may want to add interface elements for selecting the
call number type, probably defaulting to the default call number type
for the org unit being searched, but even with that in place, this
"auto-detection" logic should still be valuable.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1401286: Cleaner display of URIs in search results
Dan Scott [Wed, 10 Dec 2014 22:05:38 +0000 (17:05 -0500)]
LP#1401286: Cleaner display of URIs in search results

Right now a record with an 856 like:

856 40 $zAvailable online $uhttp://publications.gc.ca $9LUSYS

shows up in search results with an HTML display like:

<a href="http://publications.gc.ca">http://publications.gc.ca</a> - Available online

rather than the much cleaner:

<a href="http://publications.gc.ca">Available online</a>

My simplistic approach is to check to see if the link text == the href,
and if so, and we have a note to display, to use the note as the text of
the link instead.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1400082 - avoid uninitialized var warning at TPAC login
Dan Scott [Sun, 7 Dec 2014 13:51:33 +0000 (08:51 -0500)]
LP#1400082 - avoid uninitialized var warning at TPAC login

Give username a default value of '', which makes the regex happy (avoiding an
uninit warning in Apache logs if no value was entered) and still counts as de
nada for the purposes of the actual login dance.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1401271: Add missing dependency for Date::Manip perl module
Jason Stephenson [Sat, 29 Nov 2014 15:34:53 +0000 (10:34 -0500)]
LP#1401271: Add missing dependency for Date::Manip perl module

This commit adds lines to distro-specific Makefiles to install
Perl Date::Manip packages so that Date::Manip::Date is
avaliable for marc_export. Somehow, this got missed or removed.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoLP#1400100 - Avoid extra </div> when OpenURL is enabled
Dan Scott [Sun, 7 Dec 2014 15:17:42 +0000 (10:17 -0500)]
LP#1400100 - Avoid extra </div> when OpenURL is enabled

When the OpenURL resolver is enabled, the record summary.tt2 page always
inserts a </div>, whether or not there actually are any OpenURL results to
point at (which is the condition that triggers the opening <div>).

This has the effect of resulting in the generated RDFa not including anything
below the OpenURL section, effectvely preventing the schema.org/Offer types
from being associated with the record. Which is not good for the semantic web
of library data.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoUpdate 2.6-2.7.0-upgrade-db.sql to reflect that it actually starts from 2.6.3 and up.
Ben Shum [Fri, 5 Dec 2014 21:02:04 +0000 (16:02 -0500)]
Update 2.6-2.7.0-upgrade-db.sql to reflect that it actually starts from 2.6.3 and up.

So, actually, the 2.7 upgrade path needs to include everything up to 2.6.3 to get all
the fixes.

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoRe-order parts of 0887 upgrade script
Ben Shum [Fri, 5 Dec 2014 20:59:40 +0000 (15:59 -0500)]
Re-order parts of 0887 upgrade script

Based on feedback from dbs, in PostgreSQL 9.1, the order to which we
fix up these functions matters.  So drop if exists first, then create
new.

Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoForward-port 2.6.3 upgrade script
Dan Wells [Wed, 5 Nov 2014 19:22:26 +0000 (14:22 -0500)]
Forward-port 2.6.3 upgrade script

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
10 years agoAdd a nice fr-CA update. Getting there.
Dan Scott [Thu, 11 Dec 2014 22:21:47 +0000 (17:21 -0500)]
Add a nice fr-CA update. Getting there.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
10 years agoMerge branch 'tpac_conifer_2_7' into rel_2_7_mergery_tpac
Dan Scott [Thu, 11 Dec 2014 22:06:49 +0000 (17:06 -0500)]
Merge branch 'tpac_conifer_2_7' into rel_2_7_mergery_tpac

10 years agoDo not show Consortial counts. Because annoying.
Dan Scott [Thu, 11 Dec 2014 22:05:27 +0000 (17:05 -0500)]
Do not show Consortial counts. Because annoying.

Probably could/should do this via org hiding?

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoLP#1401286: Cleaner display of URIs in search results
Dan Scott [Wed, 10 Dec 2014 22:05:38 +0000 (17:05 -0500)]
LP#1401286: Cleaner display of URIs in search results

Right now a record with an 856 like:

856 40 $zAvailable online $uhttp://publications.gc.ca $9LUSYS

shows up in search results with an HTML display like:

<a href="http://publications.gc.ca">http://publications.gc.ca</a> - Available online

rather than the much cleaner:

<a href="http://publications.gc.ca">Available online</a>

My simplistic approach is to check to see if the link text == the href,
and if so, and we have a note to display, to use the note as the text of
the link instead.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_eresources_highlander_2_7' into...
Dan Scott [Wed, 10 Dec 2014 22:39:12 +0000 (17:39 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_eresources_highlander_2_7' into rel_2_7_mergery_tpac

11 years agoPrevent URIs when we have OpenURLs in search results feature/tpac_eresources_highlander_2_7
Dan Scott [Wed, 10 Dec 2014 22:38:18 +0000 (17:38 -0500)]
Prevent URIs when we have OpenURLs in search results

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_eresources_highlander_2_7' into...
Dan Scott [Wed, 10 Dec 2014 22:33:51 +0000 (17:33 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_eresources_highlander_2_7' into rel_2_7_mergery_tpac

11 years agoLogic error in uri highlander for Conifer
Dan Scott [Wed, 10 Dec 2014 22:24:56 +0000 (17:24 -0500)]
Logic error in uri highlander for Conifer

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoLP#1401177: Stamping upgrade script of unique_mr_attrs.sql.
Jason Stephenson [Wed, 10 Dec 2014 21:03:11 +0000 (16:03 -0500)]
LP#1401177: Stamping upgrade script of unique_mr_attrs.sql.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
11 years agoLP#1401177: uniquify attrs across a metarecord
Mike Rylander [Wed, 10 Dec 2014 18:51:51 +0000 (13:51 -0500)]
LP#1401177: uniquify attrs across a metarecord

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
11 years agoMerge branch 'feature/tpac_huntington_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 20:33:31 +0000 (15:33 -0500)]
Merge branch 'feature/tpac_huntington_2_7' into rel_2_7_mergery_tpac

11 years agoAdd a simple, long-overdue theme for Huntington feature/tpac_huntington_2_7
Dan Scott [Tue, 22 Jan 2013 17:51:51 +0000 (12:51 -0500)]
Add a simple, long-overdue theme for Huntington

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_usudbury_2_7' into rel_2_7_mergery...
Dan Scott [Wed, 10 Dec 2014 20:30:29 +0000 (15:30 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_usudbury_2_7' into rel_2_7_mergery_tpac

11 years agoTweaks for USudbury 2.7 catalogue feature/tpac_usudbury_2_7
Dan Scott [Wed, 10 Dec 2014 20:25:30 +0000 (15:25 -0500)]
Tweaks for USudbury 2.7 catalogue

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoUniversity of Sudbury basic skin
Dan Scott [Mon, 27 Aug 2012 15:56:22 +0000 (11:56 -0400)]
University of Sudbury basic skin

Logos and one link; not even touching colours yet.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_hsn_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 20:10:55 +0000 (15:10 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_hsn_2_7' into rel_2_7_mergery_tpac

11 years agoFix logo link for HSN
Dan Scott [Wed, 10 Dec 2014 20:10:32 +0000 (15:10 -0500)]
Fix logo link for HSN

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_hsn_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 20:08:53 +0000 (15:08 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_hsn_2_7' into rel_2_7_mergery_tpac

11 years agoTweaks for HSN 2.7 skin
Dan Scott [Wed, 10 Dec 2014 20:08:15 +0000 (15:08 -0500)]
Tweaks for HSN 2.7 skin

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAss HRSRH skin: logo, colours, links
Dan Scott [Fri, 3 Aug 2012 21:24:26 +0000 (17:24 -0400)]
Ass HRSRH skin: logo, colours, links

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_sjcg_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 18:53:10 +0000 (13:53 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_sjcg_2_7' into rel_2_7_mergery_tpac

11 years agoTweaks for 2.7
Dan Scott [Wed, 10 Dec 2014 18:52:30 +0000 (13:52 -0500)]
Tweaks for 2.7

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoAdd SJCG TPAC skin
Dan Scott [Fri, 3 Aug 2012 21:24:26 +0000 (17:24 -0400)]
Add SJCG TPAC skin

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge branch 'feature/tpac_uhearst_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 17:34:08 +0000 (12:34 -0500)]
Merge branch 'feature/tpac_uhearst_2_7' into rel_2_7_mergery_tpac

11 years agoClean up old catalogue links from UHearst skin feature/tpac_uhearst_2_7
Dan Scott [Wed, 10 Dec 2014 17:33:33 +0000 (12:33 -0500)]
Clean up old catalogue links from UHearst skin

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge branch 'feature/tpac_uhearst_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 17:30:54 +0000 (12:30 -0500)]
Merge branch 'feature/tpac_uhearst_2_7' into rel_2_7_mergery_tpac

11 years agoAdd TPAC UHearst colours, logos, and links
Dan Scott [Fri, 3 Aug 2012 21:24:26 +0000 (17:24 -0400)]
Add TPAC UHearst colours, logos, and links

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_nosm_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 14:10:14 +0000 (09:10 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_nosm_2_7' into rel_2_7_mergery_tpac

11 years agoTweak NOSM skin for 2.7
Dan Scott [Wed, 10 Dec 2014 14:09:48 +0000 (09:09 -0500)]
Tweak NOSM skin for 2.7

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge remote-tracking branch 'conifer/feature/tpac_boreal_2_7' into rel_2_7_mergery_tpac
Dan Scott [Wed, 10 Dec 2014 13:55:55 +0000 (08:55 -0500)]
Merge remote-tracking branch 'conifer/feature/tpac_boreal_2_7' into rel_2_7_mergery_tpac

11 years agoSlight tweaks to Boreal skin for 2.7
Dan Scott [Wed, 10 Dec 2014 13:55:06 +0000 (08:55 -0500)]
Slight tweaks to Boreal skin for 2.7

Signed-off-by: Dan Scott <dscott@laurentian.ca>
11 years agoMerge branch 'tpac_algoma_2_7' into rel_2_7_mergery_tpac
Dan Scott [Tue, 9 Dec 2014 20:57:54 +0000 (15:57 -0500)]
Merge branch 'tpac_algoma_2_7' into rel_2_7_mergery_tpac

11 years agoMake use of the brave new css overrides
Dan Scott [Tue, 9 Dec 2014 20:57:14 +0000 (15:57 -0500)]
Make use of the brave new css overrides

Signed-off-by: Dan Scott <dscott@laurentian.ca>