sub header {
print OUT q {
+\qecho First, make sure that the rows needed for title sorting are
+\qecho available.
+
+BEGIN;
+DELETE FROM metabib.real_full_rec WHERE tag = 'tnf';
+INSERT INTO metabib.real_full_rec (record, tag, subfield, value)
+ SELECT record,
+ 'tnf',
+ 'a',
+ SUBSTRING(value, COALESCE(NULLIF(REGEXP_REPLACE(ind2,'[^0-9]','','g'),''),'0')::int + 1)
+ FROM metabib.real_full_rec
+ WHERE tag = '245'
+ AND subfield = 'a';
+COMMIT;
+
\qecho Do a partial reingest to fully populate metabib.facet_entry
\qecho and update the keyword indexes to reflect changes in the default
\qecho NACO normalization. This can be time consuming on large databases.
);
sf_popup.appendChild( createComplexXULElement( 'menuseparator' ) );
- dojo.query('record', records).forEach(function(record) {
+ var recs = dojo.query('record', records)
+ for (var i = 0; i < recs.length; i++) {
+ var record = recs[i];
var main_text = '';
var see_from = [];
var see_also = [];
buildAuthorityPopup(entry_text, record, auth_org, auth_id, sf_popup, target, sf, "font-style: italic; margin-left: 2em;");
});
- });
+ }
if (sf_popup.childNodes.length == 0) {
sf_popup.appendChild(createLabel( { value : $('catStrings').getString('staff.cat.marcedit.no_authority_match.label') } ) );