diff --git a/kbplus/grails-app/views/licenseDetails/_lic_csv.gsp b/kbplus/grails-app/views/licenseDetails/_lic_csv.gsp index 15048e1..63d35bd 100644 --- a/kbplus/grails-app/views/licenseDetails/_lic_csv.gsp +++ b/kbplus/grails-app/views/licenseDetails/_lic_csv.gsp @@ -4,20 +4,47 @@ [col:'LicenceURL', value:{l, ctx -> raw(l.licenseUrl) }], [col:'LicensorRef', value:{l, ctx -> raw(l.licensorRef) }], [col:'LicenseeRef', value:{l, ctx -> raw(l.licenseeRef) }], + [col:'JiscLicenseId', value:{l, ctx -> raw(l.jiscLicenseId) }], [col:'StartDate', value:{l, ctx -> l.startDate?formatter.format(l.startDate):'' } ], [col:'EndDate', value: {l, ctx -> l.endDate?formatter.format(l.endDate):'' }], [col:'Licence Category', value:{l, ctx -> l.licenseCategory?.value }], - [col:'Licence Status', value:{l, ctx -> l.status?.value } ] - ]}" -/> l.status?.value } ], + [col:'APC/Offsetting Offer', value:{l, ctx -> l.getCustomPropByName('APC/Offsetting Offer')?.value }], + [col:'APC/Offsetting Offer Notes', value:{l, ctx -> raw(l.getCustomPropByName('APC/Offsetting Offer')?.note?.replaceAll('"','\''))}], + [col:'Alumni Access', value:{l, ctx -> l.getCustomPropByName('Alumni Access')?.value }], + [col:'Alumni Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Alumni Access')?.note?.replaceAll('"','\''))}], + [col:'Annual Opt-Out', value:{l, ctx -> l.getCustomPropByName('Annual Opt-Out')?.value }], + [col:'Annual Opt-Out Notes', value:{l, ctx -> raw(l.getCustomPropByName('Annual Opt-Out')?.note?.replaceAll('"','\''))}], + [col:'Concurrent Access', value:{l, ctx -> l.getCustomPropByName('Concurrent Access')?.value }], + [col:'Concurrent Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Concurrent Access')?.note?.replaceAll('"','\''))}], + [col:'Concurrent Users', value:{l, ctx -> l.getCustomPropByName('Concurrent Users')?.value }], + [col:'Concurrent Users Notes', value:{l, ctx -> raw(l.getCustomPropByName('Concurrent Users')?.note?.replaceAll('"','\''))}], + [col:'Enterprise Access', value:{l, ctx -> l.getCustomPropByName('Enterprise Access')?.value }], + [col:'Enterprise Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Enterprise Access')?.note?.replaceAll('"','\''))}], + [col:'ILL - InterLibraryLoans', value:{l, ctx -> l.getCustomPropByName('ILL - InterLibraryLoans')?.value }], + [col:'ILL - InterLibraryLoans Notes', value:{l, ctx -> raw(l.getCustomPropByName('ILL - InterLibraryLoans')?.note?.replaceAll('"','\''))}], + [col:'Include In Coursepacks', value:{l, ctx -> l.getCustomPropByName('Include In Coursepacks')?.value }], + [col:'Include In Coursepacks Notes', value:{l, ctx -> raw(l.getCustomPropByName('Include In Coursepacks')?.note?.replaceAll('"','\''))}], + [col:'Include in VLE', value:{l, ctx -> l.getCustomPropByName('Include in VLE')?.value }], + [col:'Include in VLE Notes', value:{l, ctx -> raw(l.getCustomPropByName('Include in VLE')?.note?.replaceAll('"','\''))}], + [col:'Multi Site Access', value:{l, ctx -> l.getCustomPropByName('Multi Site Access')?.value }], + [col:'Multi Site Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Multi Site Access')?.note?.replaceAll('"','\''))}], + [col:'Notice Period', value:{l, ctx -> l.getCustomPropByName('Notice Period')?.value }], + [col:'Notice Period Notes', value:{l, ctx -> raw(l.getCustomPropByName('Notice Period')?.note?.replaceAll('"','\''))}], + [col:'Partners Access', value:{l, ctx -> l.getCustomPropByName('Partners Access')?.value }], + [col:'Partners Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Partners Access')?.note?.replaceAll('"','\''))}], + [col:'Post Cancellation Access Entitlement', value:{l, ctx -> l.getCustomPropByName('Post Cancellation Access Entitlement')?.value }], + [col:'Post Cancellation Access Entitlement Notes', value:{l, ctx -> raw(l.getCustomPropByName('Post Cancellation Access Entitlement')?.note?.replaceAll('"','\'')) }], + [col:'Remote Access', value:{l, ctx -> l.getCustomPropByName('Remote Access')?.value }], + [col:'Remote Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Remote Access')?.note?.replaceAll('"','\'')) }], + [col:'Text and Data Mining', value:{l, ctx -> l.getCustomPropByName('Text and Data Mining')?.value }], + [col:'Text and Data Mining Notes', value:{l, ctx -> raw(l.getCustomPropByName('Text and Data Mining')?.note?.replaceAll('"','\'')) }], + [col:'Walk In Access', value:{l, ctx -> l.getCustomPropByName('Walk In Access')?.value }], + [col:'Walk In Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Walk In Access')?.note?.replaceAll('"','\'')) }], ]}"/>"${r.col}"${tabchar}"${s}"${tabchar}"${s + ' Notes' }"${tabchar} -"${r.value.call(license, ctx)}"${tabchar}"${r.value}"${tabchar}"${s.value?.call(license, custProp)}"${tabchar}"${s.value}"${tabchar} - \ No newline at end of file +/>"${r.col}"${tabchar} +"${r.value.call(license, ctx)}"${tabchar}"${r.value}"${tabchar} + \ No newline at end of file diff --git a/kbplus/grails-app/views/licenseDetails/_lic_csv_old.gsp b/kbplus/grails-app/views/licenseDetails/_lic_csv_old.gsp new file mode 100644 index 0000000..15048e1 --- /dev/null +++ b/kbplus/grails-app/views/licenseDetails/_lic_csv_old.gsp @@ -0,0 +1,23 @@ +"${r.col}"${tabchar}"${s}"${tabchar}"${s + ' Notes' }"${tabchar} +"${r.value.call(license, ctx)}"${tabchar}"${r.value}"${tabchar}"${s.value?.call(license, custProp)}"${tabchar}"${s.value}"${tabchar} + \ No newline at end of file diff --git a/kbplus/grails-app/views/myInstitutions/_lic_csv.gsp b/kbplus/grails-app/views/myInstitutions/_lic_csv.gsp index 871d657..63d35bd 100644 --- a/kbplus/grails-app/views/myInstitutions/_lic_csv.gsp +++ b/kbplus/grails-app/views/myInstitutions/_lic_csv.gsp @@ -4,24 +4,47 @@ [col:'LicenceURL', value:{l, ctx -> raw(l.licenseUrl) }], [col:'LicensorRef', value:{l, ctx -> raw(l.licensorRef) }], [col:'LicenseeRef', value:{l, ctx -> raw(l.licenseeRef) }], + [col:'JiscLicenseId', value:{l, ctx -> raw(l.jiscLicenseId) }], [col:'StartDate', value:{l, ctx -> l.startDate?formatter.format(l.startDate):'' } ], [col:'EndDate', value: {l, ctx -> l.endDate?formatter.format(l.endDate):'' }], [col:'Licence Category', value:{l, ctx -> l.licenseCategory?.value }], - [col:'Licence Status', value:{l, ctx -> l.status?.value } ] - ]}" -/> l.status?.value } ], + [col:'APC/Offsetting Offer', value:{l, ctx -> l.getCustomPropByName('APC/Offsetting Offer')?.value }], + [col:'APC/Offsetting Offer Notes', value:{l, ctx -> raw(l.getCustomPropByName('APC/Offsetting Offer')?.note?.replaceAll('"','\''))}], + [col:'Alumni Access', value:{l, ctx -> l.getCustomPropByName('Alumni Access')?.value }], + [col:'Alumni Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Alumni Access')?.note?.replaceAll('"','\''))}], + [col:'Annual Opt-Out', value:{l, ctx -> l.getCustomPropByName('Annual Opt-Out')?.value }], + [col:'Annual Opt-Out Notes', value:{l, ctx -> raw(l.getCustomPropByName('Annual Opt-Out')?.note?.replaceAll('"','\''))}], + [col:'Concurrent Access', value:{l, ctx -> l.getCustomPropByName('Concurrent Access')?.value }], + [col:'Concurrent Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Concurrent Access')?.note?.replaceAll('"','\''))}], + [col:'Concurrent Users', value:{l, ctx -> l.getCustomPropByName('Concurrent Users')?.value }], + [col:'Concurrent Users Notes', value:{l, ctx -> raw(l.getCustomPropByName('Concurrent Users')?.note?.replaceAll('"','\''))}], + [col:'Enterprise Access', value:{l, ctx -> l.getCustomPropByName('Enterprise Access')?.value }], + [col:'Enterprise Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Enterprise Access')?.note?.replaceAll('"','\''))}], + [col:'ILL - InterLibraryLoans', value:{l, ctx -> l.getCustomPropByName('ILL - InterLibraryLoans')?.value }], + [col:'ILL - InterLibraryLoans Notes', value:{l, ctx -> raw(l.getCustomPropByName('ILL - InterLibraryLoans')?.note?.replaceAll('"','\''))}], + [col:'Include In Coursepacks', value:{l, ctx -> l.getCustomPropByName('Include In Coursepacks')?.value }], + [col:'Include In Coursepacks Notes', value:{l, ctx -> raw(l.getCustomPropByName('Include In Coursepacks')?.note?.replaceAll('"','\''))}], + [col:'Include in VLE', value:{l, ctx -> l.getCustomPropByName('Include in VLE')?.value }], + [col:'Include in VLE Notes', value:{l, ctx -> raw(l.getCustomPropByName('Include in VLE')?.note?.replaceAll('"','\''))}], + [col:'Multi Site Access', value:{l, ctx -> l.getCustomPropByName('Multi Site Access')?.value }], + [col:'Multi Site Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Multi Site Access')?.note?.replaceAll('"','\''))}], + [col:'Notice Period', value:{l, ctx -> l.getCustomPropByName('Notice Period')?.value }], + [col:'Notice Period Notes', value:{l, ctx -> raw(l.getCustomPropByName('Notice Period')?.note?.replaceAll('"','\''))}], + [col:'Partners Access', value:{l, ctx -> l.getCustomPropByName('Partners Access')?.value }], + [col:'Partners Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Partners Access')?.note?.replaceAll('"','\''))}], + [col:'Post Cancellation Access Entitlement', value:{l, ctx -> l.getCustomPropByName('Post Cancellation Access Entitlement')?.value }], + [col:'Post Cancellation Access Entitlement Notes', value:{l, ctx -> raw(l.getCustomPropByName('Post Cancellation Access Entitlement')?.note?.replaceAll('"','\'')) }], + [col:'Remote Access', value:{l, ctx -> l.getCustomPropByName('Remote Access')?.value }], + [col:'Remote Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Remote Access')?.note?.replaceAll('"','\'')) }], + [col:'Text and Data Mining', value:{l, ctx -> l.getCustomPropByName('Text and Data Mining')?.value }], + [col:'Text and Data Mining Notes', value:{l, ctx -> raw(l.getCustomPropByName('Text and Data Mining')?.note?.replaceAll('"','\'')) }], + [col:'Walk In Access', value:{l, ctx -> l.getCustomPropByName('Walk In Access')?.value }], + [col:'Walk In Access Notes', value:{l, ctx -> raw(l.getCustomPropByName('Walk In Access')?.note?.replaceAll('"','\'')) }], ]}"/>SEARCH TERMS -Institution${tabchar}ValidOn${tabchar}ReferenceSearch${tabchar}LicenceProperty${tabchar}LicencePropertyValue -${institution?.name}${tabchar}${validOn}${tabchar}${keyWord}${tabchar}${propertyFilterType}${tabchar}${propertyFilter} - -"${r.col}"${tabchar}"${s}"${tabchar}"${s + ' Notes' }"${tabchar} +/>"${r.col}"${tabchar} "${r.value.call(license, ctx)}"${tabchar}"${r.value}"${tabchar}"${s.value?.call(license, custProp)}"${tabchar}"${s.value}"${tabchar} +>"${r.value}"${tabchar} \ No newline at end of file diff --git a/kbplus/grails-app/views/myInstitutions/_lic_csv_old.gsp b/kbplus/grails-app/views/myInstitutions/_lic_csv_old.gsp new file mode 100644 index 0000000..871d657 --- /dev/null +++ b/kbplus/grails-app/views/myInstitutions/_lic_csv_old.gsp @@ -0,0 +1,27 @@ +SEARCH TERMS +Institution${tabchar}ValidOn${tabchar}ReferenceSearch${tabchar}LicenceProperty${tabchar}LicencePropertyValue +${institution?.name}${tabchar}${validOn}${tabchar}${keyWord}${tabchar}${propertyFilterType}${tabchar}${propertyFilter} + +"${r.col}"${tabchar}"${s}"${tabchar}"${s + ' Notes' }"${tabchar} +"${r.value.call(license, ctx)}"${tabchar}"${r.value}"${tabchar}"${s.value?.call(license, custProp)}"${tabchar}"${s.value}"${tabchar} + \ No newline at end of file