Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-29 Thread Charles Kinney
 mErRYo merryob...@yahoo.com wrote:

 Well i created new sidebar facet and search filter now which is working
fine.
 Steps mentioned in manual were right but the only problem i was facing
that it
 doesn't implicitly mention to rebuild solr index also, though it has solr
index maintenance topic after it.

 After doing editing in discovery.xml file i ran command i.e.
update-discovery-index with -b parameter
 to recreate my solr index and it worked fine after sometime i also ran
same command with -o parameter
 for solr search core optimization.

I echo the implied suggestion that the documentation expressly note the
need for or uses of update-discovery-index.

*update-discovery-index* *-f*  was recently useful for me. Via an sql update,
I corrected some data values in my postgresql database. The new values
showed up correctly in the Discovery facet only after reindexing with the
-f parameter, whereas reindexing without parameters or with -o or  -b
did not do so.
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-28 Thread mErRYo
Well i created new sidebar facet and search filter now which is working fine. 
Steps mentioned in manual were right but the only problem i was facing that it 
doesn't implicitly mention to rebuild solr index also, though it has solr index 
maintenance topic after it. 

After doing editing in discovery.xml file i ran command i.e. 
update-discovery-index with -b parameter to recreate my solr index and it 
worked fine after sometime i also ran same command with -o parameter for solr 
search core optimization.


--- On Wed, 1/23/13, mErRYo merryob...@yahoo.com wrote:

 From: mErRYo merryob...@yahoo.com
 Subject: Re: [Dspace-tech] How customize v 3.0 Discovery search filter 
 drop-down labels
 To: heli...@centrum.sk
 Cc: dspace-tech@lists.sourceforge.net
 Date: Wednesday, January 23, 2013, 1:48 PM
 I already did this but no effect any
 other idea
 
 --- On Wed, 1/23/13, helix84 heli...@centrum.sk
 wrote:
 
  From: helix84 heli...@centrum.sk
  Subject: Re: [Dspace-tech] How customize v 3.0
 Discovery search filter drop-down labels
  To: mErRYo merryob...@yahoo.com
  Cc: dspace-tech@lists.sourceforge.net
  Date: Wednesday, January 23, 2013, 12:19 PM
  Here is the official documentation of
  those configuration options:
  https://wiki.duraspace.org/display/DSDOC3x/Discovery#Discovery-SearchfilterssidebarfacetsCustomization
  
  The only difference I can see is that you used the
  DiscoverySearchFilterFacet class, while the
 documentation
  tells you to
  use the DiscoverySearchFilter class. Try changing that.
 Also
  try
  running update-discovery-index after changing the
  configuration,
  although I don't think that's necessary.
  
  I'm in fact using DiscoverySearchFilterFacet myself,
 but my
  search
  filters are also facets and I'm using XMLUI.
  
  
  Regards,
  ~~helix84
  
  Compulsory reading: DSpace Mailing List Etiquette
  https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
  
 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012,
 HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your
 skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by
 Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-23 Thread mErRYo
I already did this but no effect any other idea

--- On Wed, 1/23/13, helix84 heli...@centrum.sk wrote:

 From: helix84 heli...@centrum.sk
 Subject: Re: [Dspace-tech] How customize v 3.0 Discovery search filter 
 drop-down labels
 To: mErRYo merryob...@yahoo.com
 Cc: dspace-tech@lists.sourceforge.net
 Date: Wednesday, January 23, 2013, 12:19 PM
 Here is the official documentation of
 those configuration options:
 https://wiki.duraspace.org/display/DSDOC3x/Discovery#Discovery-SearchfilterssidebarfacetsCustomization
 
 The only difference I can see is that you used the
 DiscoverySearchFilterFacet class, while the documentation
 tells you to
 use the DiscoverySearchFilter class. Try changing that. Also
 try
 running update-discovery-index after changing the
 configuration,
 although I don't think that's necessary.
 
 I'm in fact using DiscoverySearchFilterFacet myself, but my
 search
 filters are also facets and I'm using XMLUI.
 
 
 Regards,
 ~~helix84
 
 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-22 Thread helix84
Hi Charles,

sorry for the late response, I had to test it.

As you correctly found out, the string comes from
xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued

The reason why it didn't show up immediately after you changed it in
messages.xml and restarted Tomcat is that you have previously viewed
that page and Cocoon (the framework XMLUI is built on) caches pages
for you. So the old string from before you made the change was still
there. At a later time (when you did a change to the underlying DRI by
adding a filter) the cached version was updated and you started to see
the new string.

To prevent this in the future, don't forget to clear your Cocoon cache:
https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-22 Thread mErRYo
Is there anyone who can tell how to do this thing in JSPUI also. I have 
Dspace3.0 jspui with discovery. I want to add filters only without sidebar 
facet. I acheived to add filter but it is not working. I added abstract 
(dc.description.abstract) filter but when i do filter on this field it returns 
nothing. I added this filter in dspace/config/spring/api/discovery.xml file. 
My abstract filter settings in discovery.xml file is as follows.

!--The search filters which can be used on the discovery search page--
property name=searchFilters
list
ref bean=searchFilterTitle /
ref bean=searchFilterAuthor /
ref bean=searchFilterSubject /
ref bean=searchFilterIssued /
ref bean=searchFilterAbstract /
/list
/property

and, 

!--Search filter configuration beans--
bean id=searchFilterAbstract 
class=org.dspace.discovery.configuration.DiscoverySearchFilterFacet
property name=indexFieldName value=abstract/
property name=metadataFields
list
valuedc.description.abstract/value
/list
/property
/bean

I need urgent reply on it. I also want to know if it is mandatory to have 
sidebar facet of a field enable for respective filter option to work or one can 
create as many filter he wants without having sidebar facet.


--- On Tue, 1/22/13, helix84 heli...@centrum.sk wrote:

 From: helix84 heli...@centrum.sk
 Subject: Re: [Dspace-tech] How customize v 3.0 Discovery search filter 
 drop-down labels
 To: c...@umich.edu
 Cc: dspace-tech@lists.sourceforge.net
 Date: Tuesday, January 22, 2013, 2:22 PM
 Hi Charles,
 
 sorry for the late response, I had to test it.
 
 As you correctly found out, the string comes from
 xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued
 
 The reason why it didn't show up immediately after you
 changed it in
 messages.xml and restarted Tomcat is that you have
 previously viewed
 that page and Cocoon (the framework XMLUI is built on)
 caches pages
 for you. So the old string from before you made the change
 was still
 there. At a later time (when you did a change to the
 underlying DRI by
 adding a filter) the cached version was updated and you
 started to see
 the new string.
 
 To prevent this in the future, don't forget to clear your
 Cocoon cache:
 https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache
 
 
 Regards,
 ~~helix84
 
 Compulsory reading: DSpace Mailing List Etiquette
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 
 --
 Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012,
 HTML5, CSS,
 MVC, Windows 8 Apps, JavaScript and much more. Keep your
 skills current
 with LearnDevNow - 3,200 step-by-step video tutorials by
 Microsoft
 MVPs and experts. ON SALE this month only -- learn more at:
 http://p.sf.net/sfu/learnnow-d2d
 ___
 DSpace-tech mailing list
 DSpace-tech@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/dspace-tech
 List Etiquette: 
 https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
 

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-22 Thread helix84
Here is the official documentation of those configuration options:
https://wiki.duraspace.org/display/DSDOC3x/Discovery#Discovery-SearchfilterssidebarfacetsCustomization

The only difference I can see is that you used the
DiscoverySearchFilterFacet class, while the documentation tells you to
use the DiscoverySearchFilter class. Try changing that. Also try
running update-discovery-index after changing the configuration,
although I don't think that's necessary.

I'm in fact using DiscoverySearchFilterFacet myself, but my search
filters are also facets and I'm using XMLUI.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-22 Thread helix84
On Wed, Jan 23, 2013 at 12:06 AM, Charles Kinney cbkinn...@gmail.comwrote:


 On Tue, Jan 22, 2013 at 2:22 AM, helix84 heli...@centrum.sk wrote:


 https://wiki.duraspace.org/display/DSPACE/TechnicalFaq#TechnicalFaq-ClearingCocoon(XMLUI)cache


 Thanks very much, especially for the tip on how to clear the Cocoon cache.
 It will be handy as I customize the
 interface.

 Some observations/questions that arose in my working with this small
 problem:

 1.  The two following messages.xml files appear to differ in their
 contents and use. The first is cited several times in the documentation. I
 didn't see references to the second, which holds text for the Discovery
 interface; I discovered it essentially via trial-and-error. I'm a newbie
 and may be doing builds incorrectly or inexpertly but my experience so far
 is that because the second messages files is not in an overlay directory, I
 must rebuild from the source directory to apply changes made it.

 [dspace]/modules/xmlui/src/main/webapp/i18n/messages.xml

  [dsource]
 /dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml


 2. The theme in [dsource]
 /dspace-xmlui/src/main/webapp/themes/dri2xhtml-alt appears to be used for 
 elements
 of the Discovery interface, including the list of items in Advanced Search;
 therefore, although I am using Mirage, I should also copy this theme to my
 overlay directory if I am going to make changes.


 3.  For text in emails notifications, even in the XMLUI Mirage interface,
 some text is drawn from:

 [dsource]/dspace-api/src/main/resources/Messages.properties

 Therefore, for customizations one may work with messages.properties and
 multiple messages.xml files. Changes to messages.properties also appear
 to require a rebuild from the source directory.

 Is it reasonable that future DSpace versions would rely on only one file
 for text customization?

 Thanks.


1. You're right, the strings are both in the main messages file and several
smaller ones for optional modules:
[dspace-source]/dspace-xmlui/src/main/resources/aspects/Discovery/i18n/messages.xml
[dspace-source]/dspace-xmlui/src/main/resources/aspects/SwordClient/i18n/messages.xml
[dspace-source]/dspace-xmlui/src/main/resources/aspects/statisticsElasticSearch/i18n/messages.xml
[dspace-source]/dspace-xmlui/src/main/resources/aspects/XMLWorkflow/i18n/messages.xml

You can also modify them in the installed directory, which would require
only a restart, not a rebuild:
[dspace]/webapps/xmlui/i18n/messages.xml
[dspace]/webapps/WEB-INF/classes/aspects/Discovery/i18n/messages.xml
[dspace]/webapps/WEB-INF/classes/aspects/SwordClient/i18n/messages.xml
[dspace]/webapps/WEB-INF/classes/aspects/statisticsElasticSearch/i18n/messages.xml
[dspace]/webapps/WEB-INF/classes/aspects/XMLWorkflow/i18n/messages.xml

If you decide to make changes there, don't forget to synchronize with the
source versions because they will be replaced during the next rebuild.


2. That is correct, Mirage imports the dri2xhtml-alt theme and overlays its
templates where needed, just as your theme should import the Mirage theme
and overlay its templates (this is described in the Manakin theme
tutorial). So you need both themes.


3. In fact the email templates are stored in
[dspace-source]/dspace/config/emails/. You may be right about some text
coming from Messages.properties, which is meant to be the file with both
strings for DSpace in general and strings specific for JSPUI. I know, I
know.

The reason given why there are so many smaller files instead of one or two
large files is that strings belong with their modules and should be
maintained with them. Of course, this makes things easier for the developer
who has strings in one place, but harder for the translator, who has to go
around hunting for them, so I'm a strong proponent of unification, but any
progress in this area has yet to be made. There are many things which
should be improved in the i18n area, most of them should be captured here:
https://wiki.duraspace.org/display/DSPACE/i18n+Improvements+Proposal

There has been some early work at introducing a new format for
translations, which could be used for everything, but this hasn't been even
discussed yet.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
--
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] How customize v 3.0 Discovery search filter drop-down labels

2013-01-18 Thread Charles Kinney
More precisely, the problem is this. The messages.xml file that ends up in

/webapps/xmlui/WEB-INF/classes/aspects/Discovery/i18n/messages.xml

has several locations in which relevant text appears (suffix of 1, 2, 3, 4
appended here to distinguish them).

For example:
message key=xmlui.ArtifactBrowser.AdvancedSearch.type_dc.date.issued
*Date Issued 1*/message
message key=xmlui.ArtifactBrowser.AdvancedSearch.type_dateIssued*Date
Issued 2*/message
message key=xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued*Date
Issued 3*/message
message
key=xmlui.ArtifactBrowser.SimpleSearch.filter.dateIssued.year*Date
Issued 4*/message

However, when the drop-down is initially populated, text does not appear to
come from any of these. Instead -- using this example -- it reads only
Date Issued  However, if I then add a filter, the drop-down entries now
include Date Issued 3;  i.e., the text from the key
SimpleSearch.filter.dateIssued.

Which leads to the question, what is the source of the *initial* entries in
the drop-down?

On Thu, Jan 17, 2013 at 12:38 PM, Charles Kinney cbkinn...@gmail.comwrote:

 A small thing:  how do I customize the labels displayed in the drop-down
 list in Advanced Search?  The search indexes themselves are OK; I would
 like to change at least Subject in the current list of: Title, Author,
 Subject, Date issued.

 Thanks.

 *Environment:*
 OS:Mac OS X 10.7.5 (Lion)
 DSpace:3.0
 Interface: XMLUI Mirage (Discovery enabled)

--
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette