Content-Type: multipart/related; boundary="------------080700060408000907010900" --------------080700060408000907010900 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit There is also a standard custom indexing routine available in the default indexer named removeTrailingPunct  that will strip most/all punctuation at the end of sub-fields.

topic_facet = custom, removeTrailingPunct(600x:610x:611x:630x:648x:650a:650x:651x:655x)

-Bob


Demian Katz wrote:

You can solve the problem using pattern maps in your marc_local.properties file:

 

topic_facet = 600x:610x:611x:630x:648x:650a:650x:651x:655x, (pattern_map.strip_trailing_dot)
genre_facet = 600v:610v:611v:630v:648v:650v:651v:655a:655v, (pattern_map.strip_trailing_dot)
geographic_facet = 600z:610z:611z:630z:648z:650z:651a:651z:655z, (pattern_map.strip_trailing_dot)
era = 600d:610y:611y:630y:648a:648y:650y:651y:655y, (pattern_map.strip_trailing_dot)
pattern_map.strip_trailing_dot.pattern_0 = (.*)\\.=>$1
pattern_map.strip_trailing_dot.pattern_1 = (.*[^\\.]*)=>$1

 

This may not be the best long-term solution for the problem, but it works for me.  There is a JIRA ticket open in search of a better solution (http://vufind.org/jira/browse/VUFIND-184) -- you might want to watch that to be aware of future developments.

 

- Demian

 

From: Michael Beccaria [mailto:mbeccaria@paulsmiths.edu]
Sent: Tuesday, January 26, 2010 10:03 AM
To: vufind-general@lists.sourceforge.net
Cc: Elizabeth Resseguie
Subject: [VuFind-General] Subject Headings

 

Our cataloger and I started noticing that some of the subject headings were showing up with periods, while others were not. This, apparently as it was explained to me, was caused because in Marc records at the end of a subject string they place a period. If a subject shows up in the middle of the string, it will be indexed without a period, but if it shows up at the end of a string, it will have one. For example:

 

650 0 |a Permaculture  |z Global. 

 

Vs.

 

650 0 |a Permaculture. 

 

The 1st “Permaculture” would index without a period, the 2nd with.

 

Is there a way in the properties file to do a replace or some other function to strip out periods or does this require writing a custom indexer function?

Thanks,

 

Mike Beccaria

Systems Librarian

Head of Digital Initiatives

Paul Smith's College

518.327.6376

Logo Color.tif

PSC appreciates your feedback regarding our customer service. 

Please take a moment  to Tell us your Experience!  

 


------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com

_______________________________________________ VuFind-General mailing list VuFind-General@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vufind-general

--------------080700060408000907010900 Content-Type: image/jpeg Content-Transfer-Encoding: base64 Content-ID: /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0NDh0VFhEYIx8l JCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/2wBDAQoLCw4NDhwQEBw7KCIo Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozv/wAAR CAAjAQUDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl 5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk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