From: Terran McCanna Date: Thu, 5 Jan 2017 19:03:41 +0000 (-0500) Subject: New Book Lists X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7de176256b04ea86742fe5e1942e47729beffeb6;p=evergreen%2Fpines.git New Book Lists Adding functionality to PINES home page so that patrons can select a library and see a list of new materials. New Book Lists: Additional tweaks for author and image display Signed-off-by: Terran McCanna New Book Lists: More fixes Changed title and added 'On Order' message for new records that aren't available for holds or checkout yet. New Book Lists: Final correction to title links This was already applied to production during the upgrade process - adding to GIT here for future reference. Signed-off-by: Terran McCanna Conflicts: Open-ILS/xsl/ATOM2XHTML.xsl New Book List Selector I created a new library dropdown based on the existing org selector dropdown which dynamically creates the library list for the new book selector. This replaces the manually-coded new book list selector I originally put in place in order to get the feature rolled out. Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates/opac/parts/homesearch.tt2 b/Open-ILS/src/templates/opac/parts/homesearch.tt2 index 7a31511fbc..fee093b7a6 100644 --- a/Open-ILS/src/templates/opac/parts/homesearch.tt2 +++ b/Open-ILS/src/templates/opac/parts/homesearch.tt2 @@ -2,19 +2,30 @@ -
+
[% l('Library Locations') %]
[% l('Library Locations') %]

[% l('PINES Library Locations Note') %]

-
+ +
+ [% l('New Arrivals') %]
+ [% l('New Library Materials') %]
+
+
+ [% INCLUDE build_org_selector_newitems show_loc_groups=1 %] +
+
+ +
[% l('PINES Catalog Help') %]
[% l('PINES Catalog Help') %]

[% l('PINES Help Note') %]

+
[% PROCESS carousels %] diff --git a/Open-ILS/src/templates/opac/parts/org_selector.tt2 b/Open-ILS/src/templates/opac/parts/org_selector.tt2 index 3f83690f22..11fba81c95 100644 --- a/Open-ILS/src/templates/opac/parts/org_selector.tt2 +++ b/Open-ILS/src/templates/opac/parts/org_selector.tt2 @@ -135,3 +135,137 @@ BLOCK build_org_selector; [%- END %] [%- END %] + + +[% # PINES Customization for New Library Materials + # Build second org selector that uses shortname instead of id + +BLOCK build_org_selector_newitems; + node_stack = [{org => org_unit || ctx.aouct_tree || ctx.aou_tree}]; + inherited_vis = ctx.get_cgf('opac.org_unit.non_inherited_visibility').enabled == 'f'; + + IF !name; + name = loc_name; + END; + IF !value; + value = loc_value; + END; + + # if the selected org unit is out of hiding scope, + # disable the ou-hide scoping altogether. + hiding_disabled = ctx.org_hiding_disabled(value); + + -%] + + +[%- END %] + diff --git a/Open-ILS/web/images/books.jpg b/Open-ILS/web/images/books.jpg new file mode 100644 index 0000000000..6becb9b22c Binary files /dev/null and b/Open-ILS/web/images/books.jpg differ diff --git a/Open-ILS/web/opac/extras/os.css b/Open-ILS/web/opac/extras/os.css index 50ce529a12..3dcb855288 100644 --- a/Open-ILS/web/opac/extras/os.css +++ b/Open-ILS/web/opac/extras/os.css @@ -24,8 +24,10 @@ div#searchdiv { right: 0; */ /*width:11em;*/ - background-color: lightgray; + /*background-color: lightgray; border:2px solid lightblue; + */ + display:none; /* border-right: 0px; border-top: 0px; @@ -39,15 +41,26 @@ html>body div#searchdiv { position: fixed; } */ - +div#header { + height:100px; + background: url(/report-creator/images/pinetree-banner.png) repeat top left; + border: 0px; + } +/* div#header img { position: absolute; top: 0; right: 0; } +*/ h1, div#header p, form p { margin: 0; padding: 0; + font-style: italic; + font-size: 16pt; + font-family: Georgia, serif; + color: #339966; + font-weight: normal; } form { margin: 1em 0 0 3em; @@ -56,14 +69,18 @@ form { input { margin-right: 0.5em; } +dl { + margin-left: 30px; + } dt { margin-top: 1.2em; + margin-bottom: 10px; } dd { font-style: italic; margin: 0; width: 80%; - margin-left: 1em; + /* margin-left: 1em; */ } dd.desc { font-style: normal; @@ -73,6 +90,17 @@ dd.url { font-style: normal; margin-left: 0; } +.booktitle { + font-weight:bold; + } +.jacket { + margin: 5px 10px 5px 0px; + border: 1px solid #ccc; + width: 70px; + height: 100px; + float: left; + } + #footer { text-align: center; } diff --git a/Open-ILS/xsl/ATOM2XHTML.xsl b/Open-ILS/xsl/ATOM2XHTML.xsl index 3484f1508b..66ff174947 100644 --- a/Open-ILS/xsl/ATOM2XHTML.xsl +++ b/Open-ILS/xsl/ATOM2XHTML.xsl @@ -59,7 +59,7 @@ To-do list: Results to of - Search Results + Newly Purchased Library Materials Search Results for « previous @@ -71,12 +71,12 @@ To-do list: On-line resources: (untitled) view full entry - by - Subjects: - from - comments - download - enclosure + By + + + + + @@ -165,6 +165,7 @@ To-do list:

+
@@ -299,6 +306,7 @@ To-do list: + + + + + + + + - + + + + + + + + + + + +
+ @@ -343,6 +373,8 @@ To-do list: + +
@@ -354,7 +386,7 @@ To-do list:
- + @@ -415,7 +447,12 @@ To-do list:
- + + + + + (ON ORDER) + /
@@ -441,6 +478,7 @@ To-do list: + - unAPI + +
@@ -498,7 +540,7 @@ To-do list: - + @@ -547,6 +589,8 @@ To-do list: + + + diff --git a/Open-ILS/xsl/MARC21slim2ATOM.xsl b/Open-ILS/xsl/MARC21slim2ATOM.xsl index dd0c7e1497..925e603ab6 100644 --- a/Open-ILS/xsl/MARC21slim2ATOM.xsl +++ b/Open-ILS/xsl/MARC21slim2ATOM.xsl @@ -39,9 +39,8 @@ - - + @@ -49,6 +48,7 @@ + + @@ -106,19 +107,30 @@ + + + + + + URN:TCN: + + + + +