Hi Lewatle,

At this time, DSpace does not have a custom Javascript "widget" which 
allows you to embed the searchbox in another page.  It would be possible to 
write though, as that widget would just need to make the same REST API 
calls (to the DSpace backend) that are made from the search box in the 
DSpace user interface.  Those REST API endpoint calls can be seen in your 
browser's DevTools as described 
here: 
https://wiki.lyrasis.org/display/DSDOC7x/REST+API#RESTAPI-FindingwhichRESTAPIEndpointtouse

So, someone who has a little expertise with Javascript could write a small 
tool that makes those same REST API calls to run a search in DSpace.  It 
isn't possible though to just copy the existing searchbox out of DSpace 
into a different website (as the existing searchbox code is written in 
Angular and would only work on another site that uses Angular).

Tim

On Friday, January 26, 2024 at 3:20:50 AM UTC-6 joem...@gmail.com wrote:

> Dear All, 
>
> How to get code for DSpace search box and use it on any website.
> [image: dspace 7 search.png]
> Regards,
> Lewatle 
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/01fa9a1a-9509-4d6c-9cd2-136421632d9en%40googlegroups.com.

Reply via email to