Skip to content

Commit

Permalink
Fix 'view' bug when shelflist matches; reset count on new search.
Browse files Browse the repository at this point in the history
  • Loading branch information
kefo committed Sep 23, 2024
1 parent fd9e858 commit 6598e9f
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions src/components/panels/edit/modals/ShelfListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@
</div>

<div class="shelf-listing-work-area">
<input v-model="classNumber" class="number-input" placeholder="Class" @keyup="search" type="text" />
<input v-model="cutterNumber" class="number-input" @keyup="search" placeholder="Cutter" type="text" />
<input v-model="classNumber" class="number-input" placeholder="Class" @keyup="hitCount=10; search()" type="text" />
<input v-model="cutterNumber" class="number-input" @keyup="hitCount=10; search()" placeholder="Cutter" type="text" />
<button class="number-input" @click="save" :disabled="(!activeShelfListData.componentGuid)">Save</button>

<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
Expand Down Expand Up @@ -303,33 +303,17 @@
<td>{{ r.title }}</td>
<td v-if="displaySubjects">{{ r.subject }}</td>
<td>{{ r.pubdate }}</td>
<td><a v-if="r.bibid.trim() != ''" style="color: inherit; text-decoration: none;" target="_blank" :href="r.lookup">view</a></td>
<td><a v-if="r.bibid.trim() != ''" style="color: inherit; text-decoration: none;" target="_blank" :href="this.bfdbbase + 'resources/works/' + r.bibid">view</a></td>
</tr>
</template>





</template>







</tbody>


</table>
<button v-if="searching==false && results.length > 0" class="number-input" ref="moreButton" @click="hitCount += 20; search()">More</button>
<button v-if="searching==false && results.length > 0" class="number-input" ref="moreButton" @click="hitCount += 20; search()">Next 20</button>
</div>


</div>


</div>


Expand Down

0 comments on commit 6598e9f

Please sign in to comment.