From d0379ed325873d7afaf59e0a42b731f53e2d1873 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 28 Nov 2007 21:13:29 -0600 Subject: [PATCH] If LibraryName was not specified, the opac layout was broken. Adding a default ("Koha Online Catalog") to the template in case LibraryName is empty. Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/XISBN.pm | 1 + koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/maintenance.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-MARCdetail.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tmpl | 2 +- .../opac-tmpl/prog/en/modules/opac-addbybiblionumber.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tmpl | 4 ++-- koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tmpl | 2 +- .../opac-tmpl/prog/en/modules/opac-authorities-home.tmpl | 2 +- .../opac-tmpl/prog/en/modules/opac-authoritiesdetail.tmpl | 2 +- .../prog/en/modules/opac-authoritiessearchresultlist.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-browser.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-detailprint.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-dictionary.tmpl | 2 +- .../opac-tmpl/prog/en/modules/opac-full-serial-issues.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-main.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-passwd.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-readingrecord.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-reserve.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-review.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasketform.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-serial-issues.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-tags_subject.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-topissues.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-userdetails.tmpl | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 2 +- 35 files changed, 36 insertions(+), 35 deletions(-) diff --git a/C4/XISBN.pm b/C4/XISBN.pm index ab934a1e28..74c2956b01 100755 --- a/C4/XISBN.pm +++ b/C4/XISBN.pm @@ -75,6 +75,7 @@ sub get_xisbns { if ( C4::Context->preference('ThingISBN') ) { my $url = "http://www.librarything.com/api/thingISBN/".$isbn; $thing_response = _get_url($url,'thingisbn'); + undef $thing_response if $thing_response == 1; } # XISBN diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index 187cd7c4e7..f65a1abcca 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -1,5 +1,5 @@
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl index a06afc20b2..6a90fae56a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/kohaerror.tmpl @@ -1,4 +1,4 @@ - Catalog -- An Error Has Occurred +Koha Online Catalog › An Error Has Occurred diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/maintenance.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/maintenance.tmpl index ef8853a9a5..245624da04 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/maintenance.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/maintenance.tmpl @@ -1,5 +1,5 @@ - -- Library Catalog +Koha Online -- Library Catalog diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl index 487cd2e371..cc1595dc8f 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-ISBDdetail.tmpl @@ -1,4 +1,4 @@ - Catalog › ISBD View +Koha Online Catalog › ISBD View