From: senator Date: Wed, 9 Feb 2011 21:11:28 +0000 (-0500) Subject: misc work on the results page, including: X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0b2533407f8fc0f61d61b5bf8abf2b8d08dbfa15;p=evergreen%2Fequinox.git misc work on the results page, including: hold placement link, result prev/next page links on top and bottom, edition and physical description, add in previously missing filtersort template --- diff --git a/Open-ILS/web/css/skin/default/opac/style.css b/Open-ILS/web/css/skin/default/opac/style.css index 1dc531fa6b..1dc5d31fcd 100644 --- a/Open-ILS/web/css/skin/default/opac/style.css +++ b/Open-ILS/web/css/skin/default/opac/style.css @@ -623,22 +623,18 @@ div.select-wrapper:hover { margin:0; } -#results_header_nav1 { +.results_header_nav1 { padding: 5px 7px 6px 0px; border-bottom: 1px dotted #ccc; } -#results_header_nav1 .h1 { +.results_header_nav1 .h1 { font-size:14px; font-weight:bold; color:#074079; } -#start_end_links_span { - font-size: 11px; -} - -#start_end_links_span2 { +.start_end_links_span { font-size: 11px; } @@ -652,9 +648,8 @@ div.select-wrapper:hover { margin-top: 20px; } -#result_numbers1 { - font-size: 11px; - padding-left:15px; +.result_numbers { + font-size: 11px; padding-left:15px; white-space: nowrap; width: 320px; } .result_table_subtable { width: 100%; border-collapse: collapse; border: 0; } @@ -892,3 +887,4 @@ div.select-wrapper:hover { #rdetail_copy_info_table { font-size: 8pt; } #rdetail_copy_info_table td { padding: 3px; } .search_page_nav_link { cursor: pointer; } +#opac.result.sort { width: 160px; } diff --git a/Open-ILS/web/templates/default/opac/parts/marc_misc.tt2 b/Open-ILS/web/templates/default/opac/parts/marc_misc.tt2 index 4b5708eb6c..6f678b295c 100644 --- a/Open-ILS/web/templates/default/opac/parts/marc_misc.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/marc_misc.tt2 @@ -10,6 +10,16 @@ args.author = xml.findnodes('//*[@tag="100"]/*[@code="a"]').textContent; args.publisher = xml.findnodes('//*[@tag="260"]/*[@code="b"]').textContent; args.pubdate = xml.findnodes('//*[@tag="260"]/*[@code="c"]').textContent; + args.edition = xml.findnodes('//*[@tag="250"]/*[@code="a"]').textContent || + xml.findnodes('//*[@tag="534"]/*[@code="b"]').textContent || + xml.findnodes('//*[@tag="775"]/*[@code="b"]').textContent; + phys = xml.findnodes( + '//*[@tag="300"]/*[@code="a" or @code="b" or @code="c" or @code="e"]' + ); + phys_content = []; + FOR p IN phys; phys_content.push(p.textContent); END; + args.phys_desc = phys_content.join(""); + # clean up the ISBN args.isbn_clean = args.isbn.replace('\ .*', ''); diff --git a/Open-ILS/web/templates/default/opac/parts/result/filtersort.tt2 b/Open-ILS/web/templates/default/opac/parts/result/filtersort.tt2 new file mode 100644 index 0000000000..cee0f8294e --- /dev/null +++ b/Open-ILS/web/templates/default/opac/parts/result/filtersort.tt2 @@ -0,0 +1,19 @@ + + + diff --git a/Open-ILS/web/templates/default/opac/parts/result/header.tt2 b/Open-ILS/web/templates/default/opac/parts/result/header.tt2 index c7e2f587a5..67f6193bf0 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/header.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/header.tt2 @@ -11,12 +11,12 @@ IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END; %]
-
+[% BLOCK results_count_header %] +
-
Search Results + [% l("Results") %] [% ctx.result_start %]  - @@ -31,20 +31,20 @@ - + [% IF page > 0 %] - Previous [% END %] - - + [% IF (page + 1) < page_count %] - Next @@ -55,3 +55,6 @@
+[% END %] +[% ctx.results_count_header = PROCESS results_count_header; + ctx.results_count_header %] diff --git a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 index ab5b9e6cf8..1474fb6cdc 100644 --- a/Open-ILS/web/templates/default/opac/parts/result/table.tt2 +++ b/Open-ILS/web/templates/default/opac/parts/result/table.tt2 @@ -73,18 +73,18 @@ [% attrs.isbn %] - + Edition: - + [% attrs.edition %] - + Phys. Desc.: - + [% args.phys_desc %] @@ -139,7 +139,7 @@
place holdPlace Hold @@ -204,60 +204,8 @@
-
- - - - - - - -
- -
- -
- - - - - - - -
- - [% l("Results") %] - -  - - -  [% l("of") %] - - (page - -  [% l("of") %] - - - - - - Previous - - - - Next - - -
-
+ [% ctx.results_count_header %]
- diff --git a/Open-ILS/web/templates/default/opac/results.tt2 b/Open-ILS/web/templates/default/opac/results.tt2 index c24eb35efb..25eafc88ae 100644 --- a/Open-ILS/web/templates/default/opac/results.tt2 +++ b/Open-ILS/web/templates/default/opac/results.tt2 @@ -18,7 +18,7 @@
- Another SearchAnother Search @@ -38,16 +38,14 @@
Sort by
- - - + [% INCLUDE "default/opac/parts/result/filtersort.tt2" %]
-
View
+