<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Customizing advanced search in Alfresco 5.2 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22665#M9877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;i´m currently migrating a share and repo project from version 4.2.0 to 5.2 and i´m facing some issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;One of those is that i´ve extended&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;org/alfresco/slingshot/search/search.get.js (i needed to customize advanced search, since i wanted to search documents with the effectivity aspect within a date range which &amp;nbsp;was between cm:from and cm:to)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;What i did was that i created a new search.get.js with the custom query i wanted and placed it on my alfresco installation in this directory (because it couldnt be extended via amp):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;tomcat\shared\classes\alfresco\extension\templates\webscripts\org\alfresco\slingshot\search&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;i also created a .xml file which called this file and placed it on :&lt;SPAN&gt;tomcat\shared\classes\alfresco\extension&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;&lt;SPAN&gt;this solved the issue then.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;&lt;SPAN&gt;But now, doing that doesnt work on v5.2 investigating a bit i found that &amp;nbsp;the&amp;nbsp;search.get.js file is on the share-services.amp, which it didnt exist back in version 4.2, and my question is, how do i do it now?&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;&lt;SPAN&gt;Thanks a lot in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 May 2017 15:16:37 GMT</pubDate>
    <dc:creator>os_cerna</dc:creator>
    <dc:date>2017-05-25T15:16:37Z</dc:date>
    <item>
      <title>Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22665#M9877</link>
      <description>Hello,i´m currently migrating a share and repo project from version 4.2.0 to 5.2 and i´m facing some issues.One of those is that i´ve extended&amp;nbsp;org/alfresco/slingshot/search/search.get.js (i needed to customize advanced search, since i wanted to search documents with the effectivity aspect within a d</description>
      <pubDate>Thu, 25 May 2017 15:16:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22665#M9877</guid>
      <dc:creator>os_cerna</dc:creator>
      <dc:date>2017-05-25T15:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22666#M9878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The approach to overriding web scripts via the shared/classes/alfresco/extension/templates/webscripts path has not changed in 5.2 and is still viable. The fact that share-services is a separate project / AMP also should not have any impact on this, since only a small portion of Share-specific web scripts / APIs have actually been extracted to that project (in an ideal world, everything about sites would be in that project, but those are too entwined in the core to extract).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently see no reason your approach should not work in 5.2 from what you have provided. Either some of the information is not correct or some other addon that you have installed may already be overriding that web script (only one can do that and the shared/classes is basically one of the last places to be checked).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22666#M9878</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-05-25T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22667#M9879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;I have checked the webscript path and i realized i wrote a folder incorrectly, having corrected my mistake i restarted my alfresco server and the advanced search does not search anything (even when i do not search for effectivity) when i inspect the page i found this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="" style="color: #222222;"&gt;"&lt;/SPAN&gt;04250009 Wrapped Exception (with status template): 04250040 Failed to execute script 'classpath*:alfresco/extension/templates/webscripts/org/alfresco/slingshot/search/search.get.js': 04250039 Invalid node ref - does not contain forward slash: true&lt;SPAN class="" style="color: #222222;"&gt;"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;DIV class="" style="border-width: 0px 1px 0px 0px; border-style: initial solid initial initial; border-color: initial #a3a3a3 initial initial;"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class="" style="border: none;"&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;DIV class=""&gt;&lt;TABLE style="background: transparent; border-top: 0px none transparent;"&gt;&lt;TBODY style="color: #222222; background-color: #ffffff;"&gt;&lt;TR class=""&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;At least i know that it has found the script but i do not know why its giving me this error.&lt;/P&gt;&lt;P&gt;Could you please help me again? thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: i´ve attached my custom search file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 17:47:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22667#M9879</guid>
      <dc:creator>os_cerna</dc:creator>
      <dc:date>2017-05-25T17:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22668#M9880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I can not see the file you said you have attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 19:45:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22668#M9880</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-25T19:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22669#M9881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Really?, i´ve attached it again as a downloadable file, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 19:54:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22669#M9881</guid>
      <dc:creator>os_cerna</dc:creator>
      <dc:date>2017-05-25T19:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22670#M9882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 19:57:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22670#M9882</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-25T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22671#M9883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Douglas - Do you not even see the attachment option? Or there's nothing when you download? See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/14101_Attachment.png" style="width: 620px; height: 365px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 20:00:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22671#M9883</guid>
      <dc:creator>kgastaldo</dc:creator>
      <dc:date>2017-05-25T20:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Customizing advanced search in Alfresco 5.2</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22672#M9884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird, I do not see the link at all.&lt;/P&gt;&lt;P&gt;Usually I can see them without any problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 May 2017 20:05:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/customizing-advanced-search-in-alfresco-5-2/m-p/22672#M9884</guid>
      <dc:creator>douglascrp</dc:creator>
      <dc:date>2017-05-25T20:05:32Z</dc:date>
    </item>
  </channel>
</rss>

