 			# We don't show the holding list if there are no holdings as
 			# indicated by an empty copy_location list.
 			if copy_location.length is 0
-				@parent().empty()
+				$plugin.empty().trigger 'create'
 				return
 
 			@publish 'opac.title_hold', [title_id]

						, (ids) ->
							for copy_id in ids
								$holding.openils "due dates ##{copy_id}", 'search.asset.copy.fleshed2.retrieve', copy_id, show_due_date
		return @
)(jQuery)


		# We try to build the view of holdings of a possible hold target.
		# If a holding is checked out, we will try to get its due date.
		($plugin = @html(holding_details).trigger('create'))
		.find('[data-role="listview"]')
		.openils "holding details ##{title_id}", 'search.biblio.copy_location_counts.summary.retrieve',
			id: title_id
