In the examples in the SolrMarc documentation, the pattern map is listed before the "first" option… i.e.:

 

format_facet = 007[0-1]:000[6-7]:000[6], (map.format), first

 

Is it possible that this is the cause of your problem?  Does changing things to "id = 011a, (pattern_map.id), first" make a difference?

 

- Demian

 

From: Cornelison, Lee - 1150 - MITLL [mailto:cornelison@ll.mit.edu]
Sent: Thursday, December 17, 2009 9:55 AM
To: 'vufind-tech@lists.sourceforge.net'
Subject: [VuFind-Tech] Sirsi 011 data and REGEX?

 

I now have the 011 value from the Sirsi MARC data being loaded into solr with the leading ‘u’ intact.

In the snippet below, I set the marc.properties code different ways, to have a REGEX that would strip off the leading ‘u’ from my 011 data,

  so that 011 $au378964 is indexed as just  3878964

 

I had a working pattern  u(.*)=>$1  )  before I upgraded to the latest SVN trunk, so maybe someone can suggest a more exact pattern to use now:

 

Pattern 1:

#id = 011a, first

id = 011a, first, (pattern_map.id)

pattern_map.id.pattern_0 = u(.*)=>$1

Pattern 2:

 

#id = 011a, first

id = 011a, first, (pattern_map.id)

pattern_map.id.pattern_0 = .(.*)=>$1

 

Resulting code in hitlist page:

    <div id="recordu378964" class="result alt record2">

   

    <div class="yui-ge">

      <div class="yui-u first">

                <img src="/vufind/bookcover.php?isn=9780789742292&amp;size=small" class="alignleft" alt="Cover Image"/>

                <div class="resultitem">

          <div class="resultItemLine1">

          <a href="http://libwebmirror.llan.ll.mit.edu/vufind/Record/u378964" class="title">Mac OS X Snow Leopard in depth /</a>

                    </div>

 

          <div class="resultItemLine2">

                    by

                    <a href="http://libwebmirror.llan.ll.mit.edu/vufind/Author/Home?author=McFedries%2C%20Paul.">McFedries, Paul.</a>

                       

                    </div>

          <div class="resultItemLine3">

          <b>Call Number:</b> <span id="callnumberu378964">Loading</span><br>

          <b>Located:</b> <span id="locationu378964">Loading</span>

         

                                <div class="status" id="statusu378964">

              <span class="unknown" style="font-size: 8pt;">Loading...</span>

            </div>

                    </div>

                                    <span class="iconlabel book">Book</span>

                              </div>

      </div>

   

      <div class="yui-u">

        <div id="saveLinku378964">

          <a href="http://libwebmirror.llan.ll.mit.edu/vufind/Record/u378964/Save" onClick="getLightbox('Record', 'Save', 'u378964', '', 'Add to favorites', 'Record', 'Save', 'u378964'); return false;" class="fav tool">Add to favorites</a>

                  </div>

      </div>

    </div>

Lee Cornelison
Library Database Administrator

MIT Lincoln Laboratory

244 Wood Street SM-730F

Lexington, MA 02420-9176

cornelison@ll.mit.edu

voice: 1.781.981.7176