@@ -333,30 +333,32 @@ require(["core/pubsubhub"], function( respecEvents ) {
333
333
roleInfo [ title ] = { "name" : title , "fragID" : pnID , "parentRoles" : parentRoles , "localprops" : attrs } ;
334
334
// is there a namefrom indication? If so, add this one to
335
335
// the list
336
- $ . each ( container . querySelectorAll ( ".role-namefrom" ) , function ( i , node ) {
337
- var reqRef = container . querySelector ( ".role-namerequired" ) ;
338
- var req = "" ;
339
- if ( reqRef && reqRef . innerText === "True" ) {
340
- req = " (name required)" ;
341
- }
342
-
343
- if ( $ ( node ) . find ( "li" ) . length ) {
344
- // there is a list; put it in both lists
345
- fromAuthor += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + req + "</li>" ;
346
- if ( ! isAbstract ) {
347
- fromContent += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + "</li>" ;
336
+ if ( ! isAbstract ) {
337
+ $ . each ( container . querySelectorAll ( ".role-namefrom" ) , function ( i , node ) {
338
+ var reqRef = container . querySelector ( ".role-namerequired" ) ;
339
+ var req = "" ;
340
+ if ( reqRef && reqRef . innerText === "True" ) {
341
+ req = " (name required)" ;
348
342
}
349
- } else {
350
- // it is a text node; use that
351
- if ( node . textContent . indexOf ( "author" ) !== - 1 ) {
343
+
344
+ if ( $ ( node ) . find ( "li" ) . length ) {
345
+ // there is a list; put it in both lists
352
346
fromAuthor += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + req + "</li>" ;
353
- } else if ( node . textContent . indexOf ( "content" ) !== - 1 ) {
354
347
if ( ! isAbstract ) {
355
348
fromContent += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + "</li>" ;
356
349
}
350
+ } else {
351
+ // it is a text node; use that
352
+ if ( node . textContent . indexOf ( "author" ) !== - 1 ) {
353
+ fromAuthor += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + req + "</li>" ;
354
+ } else if ( node . textContent . indexOf ( "content" ) !== - 1 ) {
355
+ if ( ! isAbstract ) {
356
+ fromContent += "<li><a href=\"#" + pnID + "\" class=\"role-reference\"><code>" + content + "</code></a>" + "</li>" ;
357
+ }
358
+ }
357
359
}
358
- }
359
- } ) ;
360
+ } ) ;
361
+ }
360
362
if ( container . nodeName . toLowerCase ( ) == "div" ) {
361
363
// change the enclosing DIV to a section with notoc
362
364
var sec = document . createElement ( "section" ) ;
0 commit comments