<commit_before># search_result.coffee
#
# Plugin to provide a summary list of search results. It subscribes to the
# 'search' data type:
#  @publish('search', [search_obj])

module 'opac.search_result', imports(
	'eg.fieldmapper'
	'eg.eg_api'
	'template'
	'plugin'
), (fm, eg, _) ->

	summary_list = '''
	<div class="summary_bar"></div>
	<div class="summary_list"></div>
	'''

	tpl_summary_info = _.template '''
	<div class="summary_info" id="title_id_<%= title_id %>">
		<div class="art_box">
			<img class="cover_art" title="View details and place a hold for this title" />
		</div>
		<div class="info_box">
			<div class="info_line">
				<a class="link title" title="View details and place a hold for this title" />
				<a class="link author" title="Search other titles by this author" />
				<span class="pub_date" />
				<span class="resource_types" />
			</div>
			<div class="status_line">
				<span class="counts_avail" /> of <span class="counts_total" /> available.
				<span class="callnumber" title="Location and call number of this title" />
			</div><commit_msg>Add more hover text to search result list<commit_after># search_result.coffee
#
# Plugin to provide a summary list of search results. It subscribes to the
# 'search' data type:
#  @publish('search', [search_obj])

module 'opac.search_result', imports(
	'eg.fieldmapper'
	'eg.eg_api'
	'template'
	'plugin'
), (fm, eg, _) ->

	summary_list = '''
	<div class="summary_bar"></div>
	<div class="summary_list"></div>
	'''

	tpl_summary_info = _.template '''
	<div class="summary_info" id="title_id_<%= title_id %>">
		<div class="art_box">
			<img class="cover_art" title="View details and place a hold for this title" />
		</div>
		<div class="info_box">
			<div class="info_line">
				<a class="link title" title="View details and place a hold for this title" />
				<a class="link author" title="Search other titles by this author" />
				<span class="pub_date" title="Publication date" />
				<span class="resource_types" title="Format" />
			</div>
			<div class="status_line">
				<span class="counts_avail" /> of <span class="counts_total" /> available.
				<span class="callnumber" title="Location and call number of this title" />
			</div>
{'fraction_non_alphanumeric': 0.16050495942290352, 'fraction_numerical': 0.0, 'mean_word_length': 4.346987951807229, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4486608', 'n_tokens_mistral': 815, 'n_tokens_neox': 742, 'n_words': 213}