Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render markdown on Admin Collection show page #2708

Closed
pgwillia opened this issue Jan 13, 2022 · 1 comment
Closed

Render markdown on Admin Collection show page #2708

pgwillia opened this issue Jan 13, 2022 · 1 comment
Labels

Comments

@pgwillia
Copy link
Member

pgwillia commented Jan 13, 2022

This is still an issue.
image

Need to decorate the @collection used in the show method

def show
search_query_index = UserSearchService.new(
base_restriction_key: Item.solr_exporter_class.solr_name_for(:member_of_paths, role: :pathing),
value: @collection.path,
params: params,
current_user: current_user
)
@results = search_query_index.results
@search_models = search_query_index.search_models
respond_to do |format|
format.html { render template: 'collections/show' }
end
end

#2674

Just confirming that this is in production? Feature flag has been enabled but I don't seem to be able to get any formatting to render, e.g. the hyperlink at the bottom of this description: https://era.library.ualberta.ca/admin/communities/e4fdd15f-c21d-4612-a2f7-bfec3fdfc1de/collections/089d2213-9263-4b07-b3c4-05e18d6260dd

Originally posted by @seanluyk in #1322 (comment)

@pgwillia
Copy link
Member Author

Fixed in production!
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant