File tree Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Expand file tree Collapse file tree 5 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 2020}
2121
2222function check ( index , value ) {
23- $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '"/>' ) ;
24- $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
23+ $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '">‍</div>' ) ;
2524 var suffix = ( document . getElementById ( "mitSammlungen" ) . checked ) ? "&with=collections" : "" ;
2625 var numberOfDigits = value . replace ( / \D / g, '' ) . length ;
2726 if ( numberOfDigits >= 9 ) {
3736 $ ( '#query-' + index ) . append ( render ( '0' , value ) ) ;
3837 }
3938 }
39+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
4040 updateStatus ( ) ;
4141 } ) ;
4242 } else {
4343 $ ( '#query-' + index ) . append ( 'KEINE ISBN' ) ;
44+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
4445 updateStatus ( ) ;
4546 }
4647}
5859
5960// Statusanzeige aktualisieren
6061function updateStatus ( ) {
61- var status = parseInt ( $ ( '#total' ) . text ( ) ) - $ ( '# ausgabe div:empty ') . length ;
62+ var status = $ ( '#ausgabe div[data-isbn] ' ) . length ;
6263 $ ( '#status' ) . html ( status ) ;
6364}
6465//-->
Original file line number Diff line number Diff line change 2121}
2222
2323function check ( index , value ) {
24- $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '"/>' ) ;
25- $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
24+ $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '">‍</div>' ) ;
2625 var numberOfDigits = value . replace ( / \D / g, '' ) . length ;
2726 if ( numberOfDigits >= 9 ) {
2827 var verbund = $ ( "#verbund :selected" ) . text ( ) ;
4645 $ ( '#query-' + index ) . append ( render ( '0' , value ) ) ;
4746 }
4847 }
48+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
4949 updateStatus ( ) ;
5050 } ) ;
5151 } else {
5252 $ ( '#query-' + index ) . append ( 'KEINE ISBN' ) ;
53+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
5354 updateStatus ( ) ;
5455 }
5556}
6768
6869// Statusanzeige aktualisieren
6970function updateStatus ( ) {
70- var status = parseInt ( $ ( '#total' ) . text ( ) ) - $ ( '# ausgabe div:empty ') . length ;
71+ var status = $ ( '#ausgabe div[data-isbn] ' ) . length ;
7172 $ ( '#status' ) . html ( status ) ;
7273}
7374//-->
Original file line number Diff line number Diff line change 2121}
2222
2323function check ( index , value ) {
24- $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '"/>' ) ;
25- $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
24+ $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '">‍</div>' ) ;
2625 var selectedLibrary = document . getElementById ( "bibliothek" ) . value ;
2726 //var sruBase = libraries[selectedLibrary].sru;
2827 var sruBase = selectedLibrary ;
4140 $ ( '#query-' + index ) . append ( render ( '0' , value ) ) ;
4241 }
4342 }
43+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
4444 updateStatus ( ) ;
4545 } ) ;
4646 } else {
4747 $ ( '#query-' + index ) . append ( 'KEINE ISBN' ) ;
48+ $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
4849 updateStatus ( ) ;
4950 }
5051}
6768
6869// Statusanzeige aktualisieren
6970function updateStatus ( ) {
70- var status = parseInt ( $ ( '#total' ) . text ( ) ) - $ ( '# ausgabe div:empty ') . length ;
71+ var status = $ ( '#ausgabe div[data-isbn] ' ) . length ;
7172 $ ( '#status' ) . html ( status ) ;
7273}
7374
Original file line number Diff line number Diff line change 2727}
2828
2929function check ( index , value , verbuende ) {
30- $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '"/ >' ) ;
30+ $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '">‍</div >' ) ;
3131 $ ( '#query-' + index ) . attr ( "data-isbn" , value ) ;
3232 value = value . replace ( / ^ ( [ \w - ] * ) .* $ / , '$1' ) ;
3333 if ( value . length > 0 ) {
Original file line number Diff line number Diff line change 2020}
2121
2222function check ( index , value ) {
23- $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '"/>' ) ;
24- $ ( '#query-' + index ) . attr ( "data-ppn" , value ) ;
23+ $ ( '#ausgabe' ) . append ( '<div id="query-' + index + '">‍</div>' ) ;
2524 value = value . replace ( / ^ ( [ \w - ] * ) .* $ / , '$1' ) ;
2625 if ( value . length > 0 ) {
2726 var verbund = $ ( "#verbund :selected" ) . text ( ) ;
4544 } else {
4645 $ ( '#query-' + index ) . append ( "---" ) ;
4746 }
47+ $ ( '#query-' + index ) . attr ( "data-ppn" , value ) ;
4848 updateStatus ( ) ;
4949 } ) ;
5050 } else {
5151 $ ( '#query-' + index ) . append ( 'KEINE PPN' ) ;
52+ $ ( '#query-' + index ) . attr ( "data-ppn" , value ) ;
5253 updateStatus ( ) ;
5354 }
5455}
5556
5657
5758// Statusanzeige aktualisieren
5859function updateStatus ( ) {
59- var status = parseInt ( $ ( '#total' ) . text ( ) ) - $ ( '# ausgabe div:empty ') . length ;
60+ var status = $ ( '#ausgabe div[data-ppn] ' ) . length ;
6061 $ ( '#status' ) . html ( status ) ;
6162}
6263</ script >
You can’t perform that action at this time.
0 commit comments