Revert to stock TPAC templates where possible
authorDan Scott <dscott@laurentian.ca>
Thu, 8 Sep 2016 06:18:13 +0000 (02:18 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 8 Sep 2016 06:18:13 +0000 (02:18 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates_conifer/opac/parts/advanced/numeric.tt2 [deleted file]
Open-ILS/src/templates_conifer/opac/parts/base.tt2 [deleted file]
Open-ILS/src/templates_conifer/opac/parts/qtype_selector.tt2 [deleted file]
Open-ILS/src/templates_conifer/opac/parts/record/extras.tt2 [deleted file]
Open-ILS/src/templates_conifer/opac/parts/result/table.tt2 [deleted file]
Open-ILS/src/templates_laurentian/opac/parts/record/copy_counts.tt2 [deleted file]
Open-ILS/src/templates_laurentian/opac/parts/record/subjects.tt2 [deleted file]

diff --git a/Open-ILS/src/templates_conifer/opac/parts/advanced/numeric.tt2 b/Open-ILS/src/templates_conifer/opac/parts/advanced/numeric.tt2
deleted file mode 100644 (file)
index 4644600..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<form action="[% ctx.opac_root %]/results" method="get">
-    <div class="header_middle">[% l("Numeric Search") %]</div>
-    <input type="hidden" name="contains" value="contains" />
-    <input type="hidden" name="_special" value="1" />
-    <div id='adv_numeric_block'>
-            <label for="numeric_qtype"><strong>[% l("Field:") %]</strong></label>
-                <select id="numeric_qtype" name="qtype">
-                    <!-- TODO: Pull labels from config.metabib_field.label -->
-                    <option value="identifier|isbn">[% l('ISBN') %]</option>
-                    <option value="identifier|issn">[% l('ISSN') %]</option>
-                    <option value="cnbrowse">[% l('Call Number (Shelf Browse)') %]</option>
-                    <option value="identifier|lccn">[% l('LCCN') %]</option>
-                    <option value="identifier|tcn">[% l('TCN') %]</option>
-                    <option value="item_barcode">[% l('Item Barcode') %]</option>
-                </select>
-       
-                <input type="text" name="query" size="16" autofocus placeholder='[% l("Identifier") %]' />
-           <br/>
-            [%- lib_select_id="numeric_search_library" -%]
-            <label for="[% lib_select_id %]"><strong>[% l("Search Library:") %]</strong>
-                  [% PROCESS "opac/parts/org_selector.tt2";
-                     INCLUDE build_org_selector id=lib_select_id show_loc_groups=1
-                  %]
-            </label>
-           <br/>
-                <input type="submit" alt="[% l('Search') %]"
-                    value="[% l('Search') %]" class="opac-button" />
-    </div>
-</form>
diff --git a/Open-ILS/src/templates_conifer/opac/parts/base.tt2 b/Open-ILS/src/templates_conifer/opac/parts/base.tt2
deleted file mode 100644 (file)
index b4a83dc..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<!DOCTYPE html>
-<html lang='[% ctx.locale.replace('_', '-') %]'>
-    <head>
-        <meta charset="utf-8" />
-        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
-        [% IF ctx.refresh %]
-        <meta http-equiv="refresh" content="[% ctx.refresh %]" />
-        [% ELSIF ctx.authtime AND !ctx.is_staff %]
-        <meta http-equiv="refresh" content="[% ctx.authtime %]; url=[% ctx.home_page %]" />
-        [% END %]
-        <meta name = "viewport" content = "initial-scale = 1.0">
-        <link rel="stylesheet" type="text/css" href="[% ctx.media_prefix %]/css/skin/default/opac/semiauto.css" />
-        <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style.css" />
-        <link rel="stylesheet" type="text/css" href="[% ctx.opac_root %]/css/style_overrides.css" />
-        [%- libname = ctx.get_aou(ctx.search_ou).name;
-            libname = libname | html;
-            libsname = ctx.get_aou(ctx.search_ou).shortname; %]
-        <title>[% l('[_1] - [_2]', ctx.page_title, libname) %]</title>
-        <link rel="unapi-server" type="application/xml" title="unAPI" href="/opac/extras/unapi" />
-        [%-# Hook for page-specific metadata such as <meta name="robots" content="noindex"> %]
-        [% metalinks; -%]
-        <link type="application/opensearchdescription+xml" rel='search' title="[% l('[_1] OpenSearch', libname) %]" href="/opac/extras/opensearch/1.1/[% libsname | uri %]/-/osd.xml" />
-        [% IF want_dojo %]
-        <style type="text/css">
-            @import "[% ctx.media_prefix %]/js/dojo/dijit/themes/tundra/tundra.css";
-        </style>
-        [% END %]
-
-        [% INCLUDE 'opac/parts/goog_analytics.tt2' %]
-        [% PROCESS 'opac/parts/stripe.tt2' %]
-    </head>
-    <body[% IF want_dojo; ' class="tundra"'; END %]>
-        [%#Each content page needs (at minimum) an <h2> describing the content%]
-        [% content %] 
-        <h2 class="sr-only">[% l('Additional Resources') %]</h2>
-        [% INCLUDE 'opac/parts/footer.tt2' %]
-        [% INCLUDE 'opac/parts/js.tt2' %]
-        [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
-            [%- INCLUDE 'opac/parts/chilifresh.tt2' %]
-        [%- END %]
-    </body>
-</html>
diff --git a/Open-ILS/src/templates_conifer/opac/parts/qtype_selector.tt2 b/Open-ILS/src/templates_conifer/opac/parts/qtype_selector.tt2
deleted file mode 100644 (file)
index 4ed9e63..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-[%  query_types = [
-    {value => "keyword", label => l("Keyword")},
-    {value => "title", label => l("Title"), plural_label => l("Titles"), browse => 1},
-    {value => "jtitle", label => l("Journal Title")},
-    {value => "author", label => l("Author"), plural_label => l("Authors"), browse => 1},
-    {value => "subject", label => l("Subject"), plural_label => l("Subjects"), browse => 1},
-    {value => "series", label => l("Series"), plural_label => l("Series"), browse => 1}
-] %]
-<select name="[% name || 'qtype' %]"[% IF id; ' id="'; id ; '"' ; END -%]
-    title="[% l('Select query type:') %]">
-    [%  query_type = query_type || CGI.param('qtype') || search.default_qtypes.0;
-      FOR qt IN query_types;
-        NEXT IF browse_only AND NOT qt.browse -%]
-    <option value='[% qt.value | html %]'[%
-        query_type == qt.value ? ' selected="selected"' : ''
-    %]>[% IF plural AND qt.plural_label;
-        qt.plural_label | html;
-    ELSE;
-        qt.label | html;
-    END %]</option>
-    [% END -%]
-</select>
diff --git a/Open-ILS/src/templates_conifer/opac/parts/record/extras.tt2 b/Open-ILS/src/templates_conifer/opac/parts/record/extras.tt2
deleted file mode 100644 (file)
index 8a87a3d..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-[%
-    arrow_img = ctx.media_prefix _ '/images/rdetail_arrow.png';
-    arrow_down_img = ctx.media_prefix _ '/images/rdetail_arrow_down.png';
-%]
-<div>
-    <div id='rdetail_extras_div' style='width: 100%;'> 
-        [%
-            IF ctx.google_books_preview;
-                label = l('Google Preview');
-                name = 'google_preview';
-                href = 'javascript:GBDisplayPreview();';
-        %]
-        <div id="gbp_extra" class="rdetail_extras hide_me">
-            <div class="rdetail_extras_hr"></div>
-            <div id="gbp_extra_links" class="rdetail_extras_link">
-                <a id='gbp_arrow_link' name='[% name %]' href='[% href %]'><img alt='[% label %]' src='[% arrow_img %]'/></a>
-                <a id='gbp_arrow_down_link' name='[% name %]' href='[% href %]' class='hide_me'><img alt='[% label %]' src='[% arrow_down_img %]'/></a>
-                <a name='[% name %]_lbl' href='[% href %]' class="rdetail_extras_lbl">[% label %]</a></div>
-        </div>
-        <div id="gbp_extra_container" class='rdetail_extras_div'></div>
-        [%  END %]
-
-        [%  # Hidden extras are not yet implemented.  Some may require JS
-
-        MACRO tab_is_active(tab) BLOCK;
-            exp_name = 'expand_' _ tab;
-            IF ctx.$exp_name OR ctx.expand_all; 1; END;
-        END;
-
-        # Let's see if we should hide the content cafe / simple summary content
-        hide_summary = 1;
-        IF attrs.summaries.0; hide_summary = 0; ELSE;
-            # Expose content cafe if it's reasonable to do so.
-            # This approach only works when using embedded content cafe.
-            IF ENV.OILS_CONTENT_CAFE_USER; 
-                ident = attrs.isbn_clean || attrs.upc; 
-                IF ident; hide_summary = 0; END;
-            END;
-        END;
-
-        # if no added content is available, hide the main tab.
-        # if any content is available, use the first tab as the default display tab.
-        default_ac = '';
-        IF !tab_is_active('addedcontent');
-            hide_ac = 1;
-            FOR type IN ctx.added_content.keys;
-                IF ctx.added_content.$type.status != '2'; # not available
-                    hide_ac = 0;
-                END;
-                IF ctx.added_content.$type.status == '1';
-                    SET default_ac = type UNLESS default_ac;
-                END;
-            END;
-        END;
-
-        extras = [
-            {name => 'summaryplus',  label => l('Summaries &amp; More'), hide => hide_summary}, 
-            {name => 'annotation', label => l('Annotation'), hide => 1}, 
-            {name => 'awards',  label => l('Awards, Reviews, & Suggested Reads'), hide => 1},
-            {name => 'excerpt',  label => l('Excerpt'), hide => 1},
-            {name => 'issues',   label => l('Issues Held'), hide => !(ctx.have_holdings_to_show || ctx.have_mfhd_to_show)},
-            {name => 'preview',  label => l('Preview'), hide => 1}, 
-            {name => 'addedcontent',  label => l('Additional Content'), hide => 1},  # hide if all content is known to not exist
-            {name => 'cnbrowse', label => l('Shelf Browser')},
-            {name => 'marchtml', label => l('MARC Record')}
-        ];
-
-        FOREACH extra IN extras;
-            IF extra.hide; NEXT; END; 
-            name = extra.name;
-        %]
-        <div class="rdetail_extras">
-            <div class="rdetail_extras_hr"></div>
-            <div class="rdetail_extras_link">
-                [%  
-                    IF tab_is_active(name);
-                        href = mkurl('', {}, ['expand', 'ac']);
-                        img_url = arrow_down_img;
-                    ELSE;
-                        IF name == 'addedcontent' AND default_ac;
-                            href = mkurl('', {expand => name, ac => default_ac}) _ '#' _ name; 
-                        ELSE;
-                            href = mkurl('', {expand => name}) _ '#' _ name; 
-                        END;
-                        img_url = arrow_img;
-                    END;
-                %]
-                <a name='[% name %]' href='[% href %]' rel="nofollow" property=""><img alt='[% extra.label %]' src='[% img_url %]'/></a>
-                <a name='[% name %]_lbl' href='[% href %]' class="rdetail_extras_lbl" rel="nofollow" property="">[% extra.label %]</a>
-            </div>
-        </div>
-        <div class='rdetail_extras_div'>
-            [%  IF tab_is_active(name);
-                    IF name == 'marchtml';
-                        ctx.marchtml;
-                    ELSE;
-                        # Load the template for the selected extra
-                        INCLUDE "opac/parts/record/${name}.tt2";
-                    END;
-                END; 
-            %]
-        </div>
-        [% END %]
-    </div>
-</div>
diff --git a/Open-ILS/src/templates_conifer/opac/parts/result/table.tt2 b/Open-ILS/src/templates_conifer/opac/parts/result/table.tt2
deleted file mode 100644 (file)
index b45ea10..0000000
+++ /dev/null
@@ -1,405 +0,0 @@
-[%  PROCESS "opac/parts/misc_util.tt2";
-
-    USE ResolverResolver;
-
-    ctx.result_start = 1 + ctx.page_size * page;
-    ctx.result_stop = ctx.page_size * (page + 1);
-    IF ctx.result_stop > ctx.hit_count; ctx.result_stop = ctx.hit_count; END;
-
-    result_count = ctx.result_start;
-
-%]
-
-[% PROCESS "opac/parts/result/paginate.tt2" %] 
-[% ctx.results_count_header = PROCESS results_count_header;
-    ctx.results_count_header %]
-[% IF ctx.bookbag %]
-<div id="result-bookbag-heading">
-    <div class="result-bookbag-name">[% ctx.bookbag.name | html %]</div>
-    <div class="result-bookbag-description">[% ctx.bookbag.description | html %]</div>
-</div>
-[% END %]
-<div id="result_table_div">
-    <div class="facet_sidebar_hidden" id="facet_sidebar">
-    <h3 class="sr-only">[% l('Saved Searches') %]</h3>
-    [% INCLUDE "opac/parts/staff_saved_searches.tt2" %]
-    <h3 class="sr-only">[% l('Search Results facets') %]</h3>
-    [% INCLUDE 'opac/parts/result/facets.tt2' %]
-    <h3 class="sr-only">[% l('Search Results List') %]</h3>
-    </div>
-            <div id="result_block" class="result_block_visible">
-                <table id="result_table_table" title="[% l('Search Results') %]"
-                  class="table_no_border_space table_no_cell_pad">
-                    <thead class="sr-only">
-                      <tr>
-                        <th>[% l('Search result number') %]</th>
-                        <th>[% l('Book jacket cover art') %]</th>
-                        <th>[% l('Item details and Actions') %]</th>
-                      </tr>
-                    </thead>
-                    <tbody id="result_table">
-                    [%  FOR rec IN ctx.records;
-                            attrs = {marc_xml => rec.marc_xml};
-                            PROCESS get_marc_attrs args=attrs;
-                            IF CGI.param('detail_record_view');
-                                attrs.title = attrs.title_extended;
-                            END;
-                            # note: rec.id refers to the record identifier, regardless
-                            # of the type of record. i.e. rec.id = mmr_id ? mmr_id : bre_id
-                            IF rec.mmr_id;
-                                IF rec.mr_constituent_count > 1;
-                                    # metarecords link to record list page
-                                    record_url = mkurl(ctx.opac_root _ '/results', 
-                                        {metarecord => rec.mmr_id}, ['page']);
-                                ELSE;
-                                    # for MR, bre_id refers to the master and in
-                                    # this case, only, record
-                                    record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id);
-                                END;
-                                hold_type = 'M';
-                            ELSE;
-                                record_url = mkurl(ctx.opac_root _ '/record/' _ rec.bre_id);
-                                hold_type = 'T';
-                            END;
-                    -%]
-                        <tr class="result_table_row">
-                                            <td class="results_row_count" name="results_row_count">[%
-                                                    result_count; result_count = result_count + 1
-                                                %].</td>
-                                            <td class='result_table_pic_header'>
-                                                <a href="[% record_url %]"><img alt="[% l('Book cover') %]"
-                                                        name='item_jacket' class='result_table_pic' width="55"
-                                                        src='[% ctx.media_prefix %]/opac/extras/ac/jacket/small/r/[% rec.bre_id | uri %]' /></a><br />
-                                            </td>
-                                            <td class='result_table_title_cell' name='result_table_title_cell'>
-                                               <div class="result_metadata">
-                                                    [% IF rec.mmr_id %]
-                                                    <abbr class="unapi-id" 
-                                                      title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:metabib-metarecord/[% rec.mmr_id %]'>
-                                                    </abbr>
-                                                    [% ELSE %]
-                                                    <abbr class="unapi-id" 
-                                                      title='tag:[% ctx.hostname %],[% date.format(date.now, '%Y') %]:biblio-record_entry/[% rec.bre_id %]'>
-                                                    </abbr>
-                                                    [% END %]
-                                                    <a class='record_title search_link' name='record_[% rec.id %]'
-                                                        href="[% record_url %]"
-                                                        [% html_text_attr('title', l('Display record details for "[_1]"', attrs.title)) %]>
-                                                        [% attrs.title | html %]
-                                                     </a>
-                                                     [% IF rec.mr_constituent_count.defined && rec.mr_constituent_count > 1 %]
-                                                     <span title="[% l('This group contains [_1] records', rec.mr_constituent_count) %]">
-                                                      ([% rec.mr_constituent_count %])
-                                                     </span>
-                                                     [% END %]
-
-[%-
-FOR entry IN attrs.graphic_titles;
-    FOR alt IN entry.graphic;
-        diratt = "";
-        IF alt.dir;
-            diratt = ' dir="' _ alt.dir _ '"';
-        END;
--%]
-<div class="graphic880"[% diratt %]>
-    [% alt.value | html %]
-</div>
-[%-
-    END;
-END;
--%]
-                                                    <div>
-                                                        <a title="[% l("Perform an Author Search") %]"
-                                                                class="record_author"
-                                                                href="[%- 
-                                                                    authorquery = attrs.author | replace('[#"^$\+\-,\.:;&|\[\]()]', ' ');
-                                                                    mkurl(ctx.opac_root _ '/results', {qtype => 'author', query => authorquery}, general_search_parms.merge(expert_search_parms, browse_search_parms, facet_search_parms))
-                                                                    -%]" rel="nofollow" property="">[% attrs.author | html %]</a>
-[%-
-FOR entry IN attrs.graphic_authors;
-    FOR alt IN entry.graphic;
-        diratt = "";
-        IF alt.dir;
-            diratt = ' dir="' _ alt.dir _ '"';
-        END;
--%]
-<div class="graphic880"[% diratt %]>
-    [% alt.value | html %]
-</div>
-[%-
-    END;
-END;
--%]
-
-                                                    </div>
-                                                    <div class='result_table_title_cell'>
-                                                    [%- IF attrs.format_label; %]
-                                                        [% FOR format IN attrs.all_formats %]
-                                                            <img title="[% format.label | html %]" 
-                                                                alt="[% format.label | html %]" 
-                                                                src="[% format.icon %]" /> 
-                                                            [% format.label | html %]
-                                                        [% END %]
-                                                    [%- END %]
-                                                    [%- UNLESS CGI.param('detail_record_view')
-                                                            OR (show_more_details.default == 'true'
-                                                            OR show_more_details.default == 'hide');
-                                                            IF attrs.pubdate;
-                                                                pubdate_clean = attrs.pubdate | html;
-                                                                l(" ([_1])", pubdate_clean);
-                                                            ELSIF attrs.copyright;
-                                                                copyright_clean = attrs.copyright | html;
-                                                                l(" ([_1])", copyright_clean);                                                                
-                                                            END;
-                                                        END
-                                                    -%]
-                                                    </div>
-                                                    <table 
-                                                       role="presentation"
-                                                       title="[% l('Record Holdings Summary') %]"
-                                                       class="table_no_border_space table_no_cell_pad table_no_border results_info_table">
-
-                                                        [% IF CGI.param('detail_record_view')
-                                                            OR (show_more_details.default == 'true'
-                                                            OR show_more_details.default == 'hide');
-                                                        -%]
-                                                        <!-- These fields are visible when viewing the results page in 'detailed' mode -->
-
-                                                        [% IF attrs.publisher %]
-                                                            <tr name="results_pub_tr">
-                                                                <td valign="top">
-                                                                    <strong>[% l('Publisher:') %]</strong>
-                                                                </td>
-                                                                <td>[% attrs.pubplace | html; %] [% attrs.publisher | html; %] [% attrs.pubdate | html; %]
-[%-
-FOR entry IN attrs.graphic_pubinfos;
-    FOR alt IN entry.graphic;
-        diratt = "";
-        IF alt.dir;
-            diratt = ' dir="' _ alt.dir _ '"';
-        END;
--%]
-<div class="graphic880"[% diratt %]>
-    [% alt.value | html %]
-</div>
-[%-
-    END;
-END;
--%]
-</td>
-                                                            </tr>
-                                                        [% ELSIF attrs.producer %]
-                                                            <tr name="results_pub_tr">
-                                                                <td valign="top">
-                                                                    <strong>[% l('Producer:') %]</strong>
-                                                                </td>
-                                                                <td>[% attrs.prodplace | html; %] [% attrs.producer | html; %] [% attrs.proddate | html; %]</td>
-                                                            </tr>
-                                                        [% ELSIF attrs.distributor %]
-                                                            <tr name="results_pub_tr">
-                                                                <td valign="top">
-                                                                    <strong>[% l('Distributor:') %]</strong>
-                                                                </td>
-                                                                <td>[% attrs.distplace | html; %] [% attrs.distributor | html; %] [% attrs.distdate | html; %]</td>
-                                                            </tr>
-                                                        [% ELSIF attrs.manufacturer %]
-                                                            <tr name="results_pub_tr">
-                                                                <td valign="top">
-                                                                    <strong>[% l('Manufacturer:') %]</strong>
-                                                                </td>
-                                                                <td>[% attrs.manplace | html; %] [% attrs.manufacturer | html; %] [% attrs.mandate | html; %]</td>
-                                                            </tr>
-                                                        [% END %]
-                                                        [%- IF openurl.enabled == 'true';
-                                                            FOREACH issn IN args.issns;
-                                                                NEXT IF issn == '';
-                                                                res_urls = ResolverResolver.resolve_issn(issn, openurl.baseurl);
-                                                                FOREACH res IN res_urls;
-                                                        %]
-                                                        <tr name="results_issn_tr">
-                                                            <td valign="top">
-                                                                <strong><a href="[% res.target_url %]">
-                                                                [% res.public_name | html %]</a></strong>
-                                                            </td>
-                                                            <td>[% res.target_coverage | html %]
-                                                            [%- IF res.target_embargo != '';
-                                                                    ' - ';
-                                                                    res.target_embargo | html;
-                                                                END;
-                                                            -%]
-                                                            </td>
-                                                        </tr>
-                                                                [% END %]
-                                                            [% END %]
-                                                        [% END %]
-
-                                                        [% FOR uri IN args.uris %]
-                                                            <tr name='bib_uri_list' class='result_table_title_cell'>
-                                                                <td valign='top'>
-                                                                    <strong>[% l('Electronic resource') %]</strong>
-                                                                </td>
-                                                                <td><a href="[% uri.href %]">[% uri.link | html %]</a>[% ' - ' _ uri.note | html IF uri.note %]</td>
-                                                            </tr>
-                                                            [% END %]
-                                                            [%- IF args.holdings.size > 0;
-                                                                FOREACH copy IN args.holdings;
-                                                                    IF copy.part_label != '';
-                                                                        has_parts = 'true';
-                                                                        LAST;
-                                                                    END;
-                                                                END;
-                                                            %]
-                                                            <tr name='bib_cn_list' class='result_table_title_cell'>
-                                                                <td colspan='2'>
-                                                                    <table title="[% l('Record Holdings Details') %]"
-                                                                           class='result_holdings_table'>
-                                                                        <thead><tr>
-                                                                            <th>[% l('Library') %]</th>
-                                                                            <th>[% l('Shelving location') %]</th>
-                                                                            <th>[% l('Call number') %]</th>
-                                                                            [%- IF has_parts == 'true'; %]
-                                                                            <th>[% l('Part') %]</th>
-                                                                            [%- END %]
-                                                                            <th>[% l('Status') %]</th>
-                                                                        </tr></thead>
-                                                                        <tbody>
-                                                                [% FOR copy IN args.holdings %]
-                                                                        <tr>
-                                                                            <td>
-[%- copy_info = copy;
-    INCLUDE "opac/parts/library_name_link.tt2"; %]
-                                                                            </td>
-                                                                            <td>[% copy.location | html %]</td>
-                                                                            <td>[% copy.label | html %]</td>
-                                                                            [%- IF has_parts == 'true'; %]
-                                                                            <td>[% copy.part_label %]</td>
-                                                                            [%- END %]
-                                                                            <td>[% copy.status | html %]</td>
-                                                                        </tr>
-                                                                [% END %]
-                                                                        </tbody>
-                                                                    </table>
-                                                                </td>
-                                                            </tr>
-                                                            [%- has_parts = 'false';
-                                                                END;
-                                                             %]
-                                                        [% END %] <!-- END detail_record_view -->
-                                                    </table>
-                                                    [% PROCESS "opac/parts/result/copy_counts.tt2" %]
-                                                    [% IF rec.user_circulated %]
-                                                    <div class="result_item_circulated">
-                                                        <img src="[% ctx.media_prefix %]/images/green_check.png" alt="[% l('Checked Out Before') %]"/>
-                                                        <span>[% l('I have checked this item out before') %]</span>
-                                                    </div>
-                                                    [% END %]
-                                                    [% IF ctx.bookbag;
-                                                        rec_id = rec.id;
-                                                        FOR note IN ctx.bookbag_items_by_bre_id.$rec_id.notes %]
-                                                    <div class="result-bookbag-item-note">
-                                                        [% note.note | html %]
-                                                    </div>
-                                                        [% END %]
-                                                    [% END %]
-                                                </div>
-                                                <div class="result_table_utils_cont">
-                                                    <div class="result_table_utils">
-[%- search_ou = ctx.search_ou;
-    num_holdable_copies = attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size || 0;
-    IF ctx.place_unfillable ||
-        ( num_holdable_copies > 0
-            && (ctx.holds_block.enabled != 'true' || attrs.org_copy_counts.$search_ou.available == 0)
-        )
-%]
-                                                        <div class="results_aux_utils place_hold"><a
-                                                                href="[% mkurl(ctx.opac_root _ '/place_hold',
-                                                                    {hold_target => rec.id, hold_type => hold_type, 
-                                                                      hold_source_page => mkurl()}, ['query','tag','subfield','term','_special','sort','page']) %]"
-                                                                [% html_text_attr('title', l('Place Hold on [_1]', attrs.title)) %]
-                                                                    class="no-dec" rel="nofollow" property=""><img
-                                                                src="[% ctx.media_prefix %]/images/green_check.png"
-                                                                alt=""/><span class="result_place_hold">[% l('Place Hold') %]</span></a>
-                                                        </div>
-[%- END -%]
-                                                        <div class="results_aux_utils result_util">
-                                                            [%  IF ctx.user;
-                                                                INCLUDE "opac/parts/bookbag_actions.tt2";
-                                                            %]
-                                                            [%  ELSE;
-                                                                operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
-                                                                label = (operation == "add") ?  l("Add to my list") : l("Remove from my list");
-                                                                title_label = (operation == "add") ? 
-                                                                  l("Add [_1] to my list", attrs.title) : 
-                                                                  l("Remove [_1] from my list", attrs.title);
-                                                                href = mkurl(ctx.opac_root _ '/mylist/' _ operation, 
-                                                                        {record => rec.id, anchor => 'record_' _ rec.id}, 1);
-                                                            %]      
-                                                            <a href="[% href %]" class="no-dec" 
-                                                                [% html_text_attr('title', title_label) %] rel="nofollow" property="">
-                                                                <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
-                                                                [% label %]
-                                                            </a>
-                                                            [% END %]
-                                                        </div>
-                                                        [% IF ENV.OILS_CONTENT_CAFE_USER %]
-                                                        [% ident = attrs.isbn_clean || attrs.upc %]
-                                                        <div class="results_aux_utils result_util">
-                                                            <a target='_blank' 
-                                                               [% html_text_attr('title', l('Reviews and More for [_1]', attrs.title)) %]
-                                                                href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- 
-                                                                    ENV.OILS_CONTENT_CAFE_USER %]&amp;Password=[%-
-                                                                    ENV.OILS_CONTENT_CAFE_PASS %]&amp;ItemKey=[% ident | uri %]&amp;Options=Y" rel="nofollow" property="">
-                                                                <img src='[% ctx.media_prefix %]/images/starz.png' alt="[% l('Ratings Icon') %]"/> 
-                                                                <span class="results_reviews">[% l('Reviews &amp; More') %]</span>
-                                                            </a>
-                                                        </div>
-                                                        [% END %]
-                                                    </div>
-                                                </div>
-
-                                            </td>
-
-                                        </tr>
-                                        [%- IF ENV.OILS_CHILIFRESH_ACCOUNT %]
-                                        <tr>
-                                            <td/>
-                                            <td align='center'> <!-- Chilifresh reviews link --> 
-                                                <span class="chili_review" id="isbn_[% attrs.isbn_clean | html %]"> </span>
-                                            </td>
-                                        </tr>
-                                        <tr>
-                                            <td/>
-                                            <td colspan='5'> <!-- Chilifresh reviews panel -->
-                                                <div id="chili_review_[% attrs.isbn_clean | html %]" style="display: none;" align="center"></div>
-                                            </td>
-                                        </tr>
-                                        [%- END %]
-                    [% END %]
-                    </tbody>
-                </table>
-            </div>
-</div>
-<div class="result_footer_nav1">
-    [% ctx.results_count_header %]
-</div>
-<script>
-resultBlock = document.getElementById('result_block');
-resultButton = document.getElementById('return_to_hits');
-facetSidebar = document.getElementById('facet_sidebar');
-facetButton =  document.getElementById('refine_hits');
-function getFacety() {
-    resultBlock.setAttribute('class', 'result_block_hidden');
-    resultButton.setAttribute('class', 'results_header_btns result_block_visible');
-    facetSidebar.setAttribute('class', 'facet_sidebar_visible');
-    facetButton.setAttribute('class', 'result_block_hidden');
-    window.location.hash = 'return_to_hits';
-}
-function getResulty() {
-    resultBlock.setAttribute('class', 'result_block_visible');
-    resultButton.setAttribute('class', 'result_block_hidden');
-    facetSidebar.setAttribute('class', 'facet_sidebar_hidden');
-    facetButton.setAttribute('class', 'results_header_btns result_block_visible');
-    window.location.hash = 'refine_hits';
-}
-</script>
diff --git a/Open-ILS/src/templates_laurentian/opac/parts/record/copy_counts.tt2 b/Open-ILS/src/templates_laurentian/opac/parts/record/copy_counts.tt2
deleted file mode 100644 (file)
index eaa0808..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<span id="rdetail_copy_counts">
-    <h2>[% l('Available copies') %]</h2>
-    <ul>
-    [%- depths = ctx.copy_summary.size;
-        depth = 1;
-        displayed_ous = {};
-        WHILE depth < depths;
-            ou_avail = ctx.copy_summary.$depth.available;
-            ou_id = ctx.copy_summary.$depth.org_unit;
-            cp_org_unit = ctx.get_aou(ou_id);
-            skip_me = !ou_hiding_disabled AND !ctx.org_within_hiding_scope(ou_id);
-            IF (cp_org_unit.opac_visible == 'f' AND !ctx.is_staff) OR skip_me;
-                depth = depth + 1;
-                NEXT;
-            END;
-            ou_name = cp_org_unit.name;
-            displayed_ous.$ou_name = 1;
-    %]
-    <li>
-    [% l('[quant,_1,copy,copies] at [_2].', ou_avail, ou_name) | html %]
-    [%- this_depth = ctx.get_aou(ou_id).ou_type.depth;
-        IF ou_avail > 0 && this_depth != ctx.copy_depth %]
-    <a href="[% mkurl('', {copy_depth => this_depth}, ['copy_offset']); %]"
-       title="[% l('Show copies at [_1]', ou_name); %]">
-       [%- l('(Show)'); %]</a>
-    [%- END; %]
-    </li>
-    [%- depth = depth + 1;
-        END;
-
-        depth = attrs.plib_copy_counts.size - 1;
-        ou_name = ctx.get_aou(attrs.plib_copy_counts.$depth.org_unit).name;
-        ou_id = attrs.plib_copy_counts.$depth.org_unit;
-        UNLESS depth < 0 || displayed_ous.exists(ou_name);
-    %]
-    [%- IF attrs.plib_copy_counts.$depth.count > 0; %]
-    <li class="preferred">
-    [%-
-        l('[_1] of [quant,_2,copy,copies] available at [_3].',
-            attrs.plib_copy_counts.$depth.available,
-            attrs.plib_copy_counts.$depth.count,
-            ou_name) | html
-    %] <a href="[% mkurl('', {locg => ou_id}, ['copy_offset']); %]"
-       title="[% l('Show copies at [_1]', ou_name); %]">[%
-       l('(Show preferred library)');
-    %]</a></li>
-    [%- END %]
-    [%- END %]
-    </ul>
-</span>
diff --git a/Open-ILS/src/templates_laurentian/opac/parts/record/subjects.tt2 b/Open-ILS/src/templates_laurentian/opac/parts/record/subjects.tt2
deleted file mode 100644 (file)
index 9ff5a0a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-[% 
-    subjects = [
-        {
-            label => l('Subject: '),
-            xpath => '//*[@tag="600" or @tag="610" or @tag="611" or @tag="630" or @tag="650" or @tag="651"]'
-        }, {
-            label => l('Genre: '),
-            xpath => '//*[@tag="655"]'
-        }, {
-            label => l('Topic Heading: '),
-            xpath => '//*[@tag="690"]'
-        }, {
-            label => l('Geographic Setting: '),
-            xpath => '//*[@tag="691"]'
-        }, {
-            label => l('Biographical Subject: '),
-            xpath => '//*[@tag="692"]'
-        }, {
-            label => l('Character Attributes: '),
-            xpath => '//*[@tag="693"]'
-        }, {
-            label => l('Setting: '),
-            xpath => '//*[@tag="698"]'
-        }, {
-            label => l('Time Period: '),
-            xpath => '//*[@tag="699"]'
-        }
-    ];
-
-    BLOCK render_subject;
-        xpath = xpath || '//*[starts-with(@tag,"6")]';
-        FOR node IN ctx.marc_xml.findnodes(xpath);
-            '<span property="about">';
-            all_terms = [];
-            graphics = [];
-            FOR subfield IN node.childNodes;
-                NEXT UNLESS subfield.nodeName == "subfield";
-                code = subfield.getAttribute('code');
-                IF code == '6';
-                   linked_fields = [subfield.textContent()];
-                   target_field = node.getAttribute('tag');
-                   get_linked_880s;
-                END;
-                NEXT UNLESS code.match('[a-z]');
-                IF code.match('[vxyz]'); " &gt; "; END;
-                # at this point, we actually have a partial term to use.
-                single_term = subfield.textContent | html;
-                all_terms.push(subfield.textContent.replace('\-', ' ').replace('[#"^$\+,\.:;&|\[\]()]', ''));
-                total_term = all_terms.join(" ").replace('\s+$', '');
-            %]
-<a href="[% mkurl(ctx.opac_root _ '/results', {qtype=>'subject', query=>total_term}, stop_parms.merge(expert_search_parms, general_search_parms, browse_search_parms, facet_search_parms)) %]">[% single_term %]</a>
-            [%- END;
-            IF all_terms.size; "<br/>"; END;
-            FOREACH link880 IN graphics;
-                '<div class="graphic880"' _ link880.dir _ '>';
-                link880.value | html;
-                '</div>';
-            END;
-            '</span>';
-        END;
-    END 
-%]
-
-[%  BLOCK render_all_subjects;
-    FOREACH subj IN subjects;
-        content = PROCESS render_subject(xpath=subj.xpath);
-        IF content.match('\S');
-%]
-        <table class='rdetail_subject'>
-            <tbody>
-                <tr>
-                    <td class='rdetail_subject_type'>[% subj.label %]</td>
-                    <td class='rdetail_subject_value'>[% content %]</td>
-                </tr>
-            </tbody>
-        </table>
-        [%- END; %]
-    [%- END; %]
-[%- END %]
-
-[%-  subject_html = PROCESS render_all_subjects;
-    IF subject_html.length > 0;
-%]
-<h2 class='rdetail_related_subjects'>[% l('Search for related items by subject') %]</h2>
-[%- subject_html %]
-[%- END %]