[open-ils-commits] r19752 - in trunk/Open-ILS: src/sql/Pg xul/staff_client/server/cat (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Mar 15 13:15:05 EDT 2011
Author: miker
Date: 2011-03-15 13:15:01 -0400 (Tue, 15 Mar 2011)
New Revision: 19752
Modified:
trunk/Open-ILS/src/sql/Pg/reingest-1.6-2.0.pl
trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
Log:
teach the 1.6-2.0 reingest generator about "tnf"-tag rows for title sorting
Modified: trunk/Open-ILS/src/sql/Pg/reingest-1.6-2.0.pl
===================================================================
--- trunk/Open-ILS/src/sql/Pg/reingest-1.6-2.0.pl 2011-03-15 15:52:38 UTC (rev 19751)
+++ trunk/Open-ILS/src/sql/Pg/reingest-1.6-2.0.pl 2011-03-15 17:15:01 UTC (rev 19752)
@@ -77,6 +77,21 @@
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.
Modified: trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-03-15 15:52:38 UTC (rev 19751)
+++ trunk/Open-ILS/xul/staff_client/server/cat/marcedit.js 2011-03-15 17:15:01 UTC (rev 19752)
@@ -2440,7 +2440,9 @@
);
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 = [];
@@ -2493,7 +2495,7 @@
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') } ) );
More information about the open-ils-commits
mailing list