add series handling
This commit is contained in:
		
							
								
								
									
										11
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								index.html
									
									
									
									
									
								
							@@ -14,6 +14,9 @@
 | 
				
			|||||||
    var publicSpreadsheetUrl = 'https://docs.google.com/spreadsheets/d/1w5Dc57wV0_rrKFsG7KM-qdPWEpqYk6lFu3JzAA0cSv0/pubhtml';
 | 
					    var publicSpreadsheetUrl = 'https://docs.google.com/spreadsheets/d/1w5Dc57wV0_rrKFsG7KM-qdPWEpqYk6lFu3JzAA0cSv0/pubhtml';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function init() {
 | 
					    function init() {
 | 
				
			||||||
 | 
					      $("#reloadLink").unbind('click');
 | 
				
			||||||
 | 
					      $("#reloadLink").on("click", function() { init(); });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Tabletop.init({
 | 
					      Tabletop.init({
 | 
				
			||||||
        key: publicSpreadsheetUrl,
 | 
					        key: publicSpreadsheetUrl,
 | 
				
			||||||
        callback: showInfo,
 | 
					        callback: showInfo,
 | 
				
			||||||
@@ -49,7 +52,7 @@
 | 
				
			|||||||
      $('#current').html(rendered);
 | 
					      $('#current').html(rendered);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    window.addEventListener('DOMContentLoaded', init)
 | 
					    window.addEventListener('DOMContentLoaded', init);
 | 
				
			||||||
  </script>
 | 
					  </script>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
@@ -58,6 +61,7 @@
 | 
				
			|||||||
      <h1>Library</h1>
 | 
					      <h1>Library</h1>
 | 
				
			||||||
      <a target="_blank" href="https://docs.google.com/spreadsheets/d/1w5Dc57wV0_rrKFsG7KM-qdPWEpqYk6lFu3JzAA0cSv0/edit">spreadsheet</a>
 | 
					      <a target="_blank" href="https://docs.google.com/spreadsheets/d/1w5Dc57wV0_rrKFsG7KM-qdPWEpqYk6lFu3JzAA0cSv0/edit">spreadsheet</a>
 | 
				
			||||||
      <a target="_blank" href="https://github.com/deltamualpha/my-library">github</a>
 | 
					      <a target="_blank" href="https://github.com/deltamualpha/my-library">github</a>
 | 
				
			||||||
 | 
					      <a id="reloadLink" href="#">reload</a>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id="current">No Book Selected</div>
 | 
					    <div id="current">No Book Selected</div>
 | 
				
			||||||
    <div id="books"></div> <!-- Table goes here -->
 | 
					    <div id="books"></div> <!-- Table goes here -->
 | 
				
			||||||
@@ -93,12 +97,15 @@
 | 
				
			|||||||
      <h2>{{author}}</h2>
 | 
					      <h2>{{author}}</h2>
 | 
				
			||||||
      <span>{{isbn-13}}</span><br/>
 | 
					      <span>{{isbn-13}}</span><br/>
 | 
				
			||||||
      <span>{{publisher}}, {{year}}</span><br/>
 | 
					      <span>{{publisher}}, {{year}}</span><br/>
 | 
				
			||||||
 | 
					      {{#series}}
 | 
				
			||||||
 | 
					        <span>{{series}}, Volume {{volume}}</span><br/>
 | 
				
			||||||
 | 
					      {{/series}}
 | 
				
			||||||
      <span>{{format}}</span>
 | 
					      <span>{{format}}</span>
 | 
				
			||||||
      <div class="description">
 | 
					      <div class="description">
 | 
				
			||||||
        <p>{{description}}</p>
 | 
					        <p>{{description}}</p>
 | 
				
			||||||
        {{#notes}}
 | 
					        {{#notes}}
 | 
				
			||||||
          <span>Notes:</span>
 | 
					          <span>Notes:</span>
 | 
				
			||||||
          <p>{{.}}</p>
 | 
					          <p>{{notes}}</p>
 | 
				
			||||||
        {{/notes}}
 | 
					        {{/notes}}
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    {{/book}}
 | 
					    {{/book}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user