Hi, I want to add a header to the request, specifically X-Robots-Tag "noindex" when open the url of an item's file e.g. http://localhost:8080/xmlui/bitstream/handle/123456789/9876/name-of-file.pdf?sequence=2&isAllowed=y
I'm aware that custom changes to java classes must be placed in [dspace-source]/dspace/modules/* and changes of dspace-api must be placed in [dspace-source]/dspace/modules/additions. In my case i want to add a new class no modify a existing one to dspace-xmlui that's why i placed new .java file in [dspace-source]/dspace/modules/xmlui/src/main/java/org/dspace/app/xmlui/cocoon/servlet/multipart and the configuration of my filter (web.xml file) is in [dspace-source]/dspace/modules/xmlui/src/main/webapp/WEB-INF. The web.xml file is a copy of the file placed in [dspace-source]/dspace-xmlui/src/main/webapp only with the addition of my servlet configuration. I'm having doubts like: The way i´m adding a new java class for a servlet is enterely correct? Do i need to extend a DSpace servlet class, if i want to use servlet filters for a custom class? Is there a specific folder to place a .java class for servlets ? Greetings. Rodrigo. PD. This servlet filter is for avoiding Google Analytics indexation for url's of files (i already add the rel="nofollow" but google analytics still indexing the .pdf url's, and I have also already configured my robots file) -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-community/3d98af92-eca9-45c7-9fec-bea40e2dd896%40googlegroups.com.
