three little fixes bib-auth-browse
authorLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 3 May 2013 21:27:40 +0000 (17:27 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Fri, 3 May 2013 21:27:40 +0000 (17:27 -0400)
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/sql/Pg/030.schema.metabib.sql
Open-ILS/src/sql/Pg/upgrade/YYYY.schema.bib-auth-browse.sql
Open-ILS/src/templates/opac/browse.tt2

index 8dbac47..09d6daa 100644 (file)
@@ -478,6 +478,7 @@ BEGIN
                 output_row.field = idx.id;
                 output_row.source = rid;
                 output_row.value = BTRIM(REGEXP_REPLACE(browse_text, E'\\s+', ' ', 'g'));
+                output_row.authority := NULL;
 
                 IF idx.authority_xpath IS NOT NULL AND idx.authority_xpath <> '' THEN
                     authority_text := oils_xpath_string(
index 460983e..5769f56 100644 (file)
@@ -182,6 +182,7 @@ BEGIN
                 output_row.field = idx.id;
                 output_row.source = rid;
                 output_row.value = BTRIM(REGEXP_REPLACE(browse_text, E'\\s+', ' ', 'g'));
+                output_row.authority := NULL;
 
                 IF idx.authority_xpath IS NOT NULL AND idx.authority_xpath <> '' THEN
                     authority_text := oils_xpath_string(
index c6ae787..d08e137 100644 (file)
@@ -53,7 +53,7 @@
                 [% BLOCK browse_pager %]
                 <div class="browse-pager">
                     [% IF ctx.more_back %]
-                        <a class="opac-button" href="[% mkurl('', {boffset => CGI.param('boffset') - blimit}) %]">&larr; [%l ('Back') %]</a>
+                        <a class="opac-button" href="[% mkurl('', {boffset => boffset - blimit}) %]">&larr; [%l ('Back') %]</a>
                     [% END %]
                     [% IF browse.english_pager; # XXX how to apply i18n here?
                         current_qtype = CGI.param('qtype') || 'title' %]
@@ -66,7 +66,7 @@
                     [% END %]
 
                     [% IF ctx.more_forward %]
-                        <a class="opac-button" href="[% mkurl('', {boffset => CGI.param('boffset') + blimit}) %]">[%l ('Forward') %] &rarr;</a>
+                        <a class="opac-button" href="[% mkurl('', {boffset => boffset + blimit}) %]">[%l ('Forward') %] &rarr;</a>
                     [% END %]
                 </div>
                 [% END %]
@@ -83,7 +83,7 @@
                 [% ELSE %]
                     [% IF ctx.browse_leading_article_warning %]
                     <div class="browse-leading-article-warning">
-                            [% l("Your browse term seems to begin with an article. You might better results by omitting the article.") %]
+                            [% l("Your browse term seems to begin with an article. You might get better results by omitting the article.") %]
                     </div>
                     [% END %]
                     <ul class="browse-result-list">