[% USE raw %]
[% USE To %]
[% USE Asset %]
[% USE Branches %]
[% USE KohaDates %]
[% USE TablesSettings %]
[% USE AuthorisedValues %]
<script>
const letters = [% To.json(letters) | $raw %];
const default_view = "[%- IF Koha.Preference('DefaultToLoggedInLibraryOverdueTriggers') -%][% Branches.GetLoggedInBranchcode %][%- ELSE -%]*[%- END -%]";
</script>
return {
initialized: false,
libraries: null,
selectedLibrary: "*",
selectedLibrary: default_view,
circRules: null,
numberOfTabs: [1],
tabSelected: "Notice 1",
error => {}
)
},
async getCircRules(params = {}, pageLoad) {
async getCircRules(params = {}) {
params.effective = false
if (pageLoad) {
params.library_id = "*"
}
const client = APIClient.circRule
await client.circRules.getAll({}, params).then(
rules => {
-